<commit_before><commit_msg>Adding Grunt and tasks for copy resources, concat, uglify and sass compile<commit_after>/*global module:false*/

module.exports = function(grunt) {

	// Project configuration.
	grunt.initConfig({
		// Metadata.
		pkg: grunt.file.readJSON('package.json'),
		banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
			'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
			'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
			'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
			' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',

		// Task configuration.
		concat: {
			options: {
				banner: '<%= banner %>',
				stripBanners: true
			},
			dist: {
				src: [
					'components/jquery/dist/jquery.min.js',
					'components/**/assets/javascripts/*.min.js',
					'_assets/scripts/*.js'
				],
				dest: 'assets/scripts/app.main.js'
			}
		},
		uglify: {
			options: {
				banner: '<%= banner %>'
			},
			dist: {
				src: 'assets/scripts/app.main.js',
				dest: 'assets/scripts/app.main.min.js'
			}
		},
		sass: {
			dist: {
				options: {
					style: 'compressed'
				},
				files: {
					'assets/stylesheets/main.css': '_assets/stylesheets/main.scss',			 
				}
			}
		},
		watch: {
			sass: {
				files: ['_assets/stylesheets/**'],
				tasks: ['sass']	
			},
			scripts: {
				files: ['_assets/scripts/**'],
				tasks: ['concat', 'uglify']
			}
		},
		copy: {
			bootstrap: {
				files: [
					{expand: true, cwd: 'components/bootstrap-sass/assets/fonts/', src: ['**'], dest: 'assets/fonts/'}
				]
			},
			fontawesome: {
				files: [
					{expand: true, cwd: 'components/fontawesome/fonts/', src: ['**'], dest: 'assets/fonts/'}
				]
			}
		},
		imagemin: {
			options: {
				cache: false
			},
			dist: {
				files: [{
					expand: true,
					cwd: 'assets/images',
					src: '{,*/}*.{png,jpg,jpeg}',
					dest: 'assets/images'
				}]
			}
		}
	});

	// These plugins provide necessary tasks.
	grunt.loadNpmTasks('grunt-contrib-concat');
	grunt.loadNpmTasks('grunt-contrib-uglify');
	grunt.loadNpmTasks('grunt-contrib-copy');
	grunt.loadNpmTasks('grunt-contrib-watch');
	grunt.loadNpmTasks('grunt-contrib-sass');
	grunt.loadNpmTasks('grunt-contrib-imagemin');

};
{'fraction_non_alphanumeric': 0.21400088613203366, 'fraction_numerical': 0.0, 'mean_word_length': 2.7077175697865354, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '5642948', 'n_tokens_mistral': 1068, 'n_tokens_neox': 843, 'n_words': 127}