<commit_before>module.exports = function (grunt) {

	// Project configuration.
	var projectName = 'uiLib';
	var sourceDirectory = 'src/main/';
	var buildDirectory = 'build/' + projectName + '/src/main/';
    var jsSrc = ['javascripts/definePlugin.js',
              'javascripts/components/**/*.js',
                       'javascripts/ui-lib.js'];
    var cssSrc = ['stylesheets/bootstrap.css',
        'stylesheets/buttons.css',
        'stylesheets/common.css',
        'stylesheets/settings.css',

        'javascripts/components/radio-button/radio-button.css',
        'javascripts/components/checkbox/checkbox.css',
        'javascripts/components/accordion/accordion.css',
        'javascripts/components/header/header.css',
        'javascripts/components/dropdown/dropdown.css',
        'javascripts/components/popup/popup.css',
        'javascripts/components/input/input.css',
        'javascripts/components/spinner/spinner.css',


        'javascripts/components/color-picker2/css/color-picker.css',
        'javascripts/components/advanced-dropdown/css/dd.css',
        'javascripts/components/slider2/slider2.css',
        'javascripts/components/glued-position/css/glued-position.css'];


	grunt.initConfig({
		pkg : grunt.file.readJSON('./package.json'),

		concat : {
			options : {
				separator : ';'
			},
			dist : {
                js: {
                    src: jsSrc,
                    dest : 'build/<%= pkg.name %>.all.js',
                    separator: ";"
                },

                css: {
                    src: cssSrc,
                    dest: 'build/<%= pkg.name %>.min.css'
                },

                html: {
                    src: 'html/settings.html',
                    dest: 'build/settings.html'
                }
			}
		},
		
		uglify : {
			options : {
				banner : '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
			},
			build : {
                src: jsSrc,
				dest : 'build/<%= pkg.name %>.min.js'
			}
		},
		cssmin : {
			add_banner : {
				options : {
					banner : '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
				},
				files : {
					'build/<%= pkg.name %>.min.css' : cssSrc
				}
			}
		},
		copy : {
			main : {
				files : [{
						expand : true,
						cwd : 'images',
						src : ['**'],
						dest : 'build/images'
					}, // makes all src relative to cwd
					{
                        expand: true, flatten: true,src: ['html/*.html'], dest: 'build/', filter: 'isFile'
                    }
				]
			}
		},
		jshint : {
			all : {
				options : {
					// Unnecessary semicolon.
					"-W032": true,
					
					"asi" : true,
					"expr" : true,
					"laxcomma" : true,
					"smarttabs" : true,
					"curly" : true,
					"eqeqeq" : false,
					"immed" : true,
					"latedef" : true,
					"newcap" : true,
					"noarg" : true,
					"sub" : true,
					"es5" : true,
					"undef" : true,
					"eqnull" : true,
					"browser" : true,
					"regexdash" : true,
					"loopfunc" : true,
					"node":true,
					"globals" : {
						"Wix":true,
						"jQuery" : true,
						"$":true
					}
				},
				files : {
					src : [
						'javascripts/**/*.js', 
						'!**/~*.js', '!**/jquery.dd.js', 
						'!**/bootstrap-popover.js',
						'!**/bootstrap-tooltip.js'
					]
				}
			}
		},

        karma: {
            unit: {
                configFile: 'karma.conf.js',
                singleRun: true,
                browsers: ['PhantomJS']
            }
        },

        watch: {
            js: {
                files: jsSrc,
                tasks: ["concat:dist:js"]
            },
            css: {
                files: cssSrc,
                tasks: ["concat:dist:css"]
            },
            html: {
                files: ["<%= concat.dist.html.src %>"],
                tasks: ["concat:dist:html"]
            }
        },

		clean : ['build']<commit_msg>Fix copy issues<commit_after>module.exports = function (grunt) {

	// Project configuration.
	var projectName = 'uiLib';
	var sourceDirectory = 'src/main/';
	var buildDirectory = 'build/' + projectName + '/src/main/';
    var jsSrc = ['javascripts/definePlugin.js',
              'javascripts/components/**/*.js',
                       'javascripts/ui-lib.js'];
    var cssSrc = ['stylesheets/bootstrap.css',
        'stylesheets/buttons.css',
        'stylesheets/common.css',
        'stylesheets/settings.css',

        'javascripts/components/radio-button/radio-button.css',
        'javascripts/components/checkbox/checkbox.css',
        'javascripts/components/accordion/accordion.css',
        'javascripts/components/header/header.css',
        'javascripts/components/dropdown/dropdown.css',
        'javascripts/components/popup/popup.css',
        'javascripts/components/input/input.css',
        'javascripts/components/spinner/spinner.css',


        'javascripts/components/color-picker2/css/color-picker.css',
        'javascripts/components/advanced-dropdown/css/dd.css',
        'javascripts/components/slider2/slider2.css',
        'javascripts/components/glued-position/css/glued-position.css'];


	grunt.initConfig({
		pkg : grunt.file.readJSON('./package.json'),

		concat : {
			options : {
				separator : ';'
			},
			dist : {
                js: {
                    src: jsSrc,
                    dest : 'build/<%= pkg.name %>.all.js'
                },

                css: {
                    src: cssSrc,
                    dest: 'build/<%= pkg.name %>.all.css'
                }
			}
		},
		
		uglify : {
			options : {
				banner : '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
			},
			build : {
                src: jsSrc,
				dest : 'build/<%= pkg.name %>.min.js'
			}
		},
		cssmin : {
			add_banner : {
				options : {
					banner : '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
				},
				files : {
					'build/<%= pkg.name %>.min.css' : cssSrc
				}
			}
		},
		copy : {
			main : {
				files : [{
						expand : true,
						cwd : 'images',
						src : ['**'],
						dest : 'build/images'
					}, // makes all src relative to cwd
					{
                        expand: true, flatten: true,src: ['html/*.html'], dest: 'build/', filter: 'isFile'
                    }
				]
			},

            dev : {
                files : [
                    {
                        expand: true, flatten: true,src: ['html/settings.html'], dest: 'build/', filter: 'isFile'
                    }
                ]
            }
		},

		jshint : {
			all : {
				options : {
					// Unnecessary semicolon.
					"-W032": true,
					
					"asi" : true,
					"expr" : true,
					"laxcomma" : true,
					"smarttabs" : true,
					"curly" : true,
					"eqeqeq" : false,
					"immed" : true,
					"latedef" : true,
					"newcap" : true,
					"noarg" : true,
					"sub" : true,
					"es5" : true,
					"undef" : true,
					"eqnull" : true,
					"browser" : true,
					"regexdash" : true,
					"loopfunc" : true,
					"node":true,
					"globals" : {
						"Wix":true,
						"jQuery" : true,
						"$":true
					}
				},
				files : {
					src : [
						'javascripts/**/*.js', 
						'!**/~*.js', '!**/jquery.dd.js', 
						'!**/bootstrap-popover.js',
						'!**/bootstrap-tooltip.js'
					]
				}
			}
		},

        karma: {
            unit: {
                configFile: 'karma.conf.js',
                singleRun: true,
                browsers: ['PhantomJS']
            }
        },

        watch: {
            js: {
                files: jsSrc,
                tasks: ["uglify:build"]
            },
            css: {
                files: cssSrc,
                tasks: ["cssmin:add_banner"]
            },
            html: {
                files: ["<%= concat.dist.html.src %>"],
                tasks: ["copy:dev"]
            }
        },

		clean : ['build']
{'fraction_non_alphanumeric': 0.169050051072523, 'fraction_numerical': 0.001787538304392237, 'mean_word_length': 1.4608859566446748, 'pattern_counts': {'":': 8, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5577955', 'n_tokens_mistral': 3141, 'n_tokens_neox': 2486, 'n_words': 398}