<commit_before>/*!
 * Toro Gruntfile
 * http://jurs.me
 * @author <NAME>
 */

'use strict';

/**
 * Grunt Module
 */
module.exports = function(grunt) {

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

	  // Project object
	  project: {
		  app: 'toro',
		  sass: [
		    '<%= project.src %>sass'
		  ],
		  css: [
		    '<%= project.src %>stylesheets'
		  ],
		  bootstrap_scripts: [
		    'bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/'
		  ],
		  bower: [
		    'bower_components'
		  ]
		},

		tag: {
		  banner: '/*!\n' +
		          ' * <%= pkg.name %>\n' +
		          ' * <%= pkg.title %>\n' +
		          ' * <%= pkg.url %>\n' +
		          ' * @author <%= pkg.author %>\n' +
		          ' * @version <%= pkg.version %>\n' +
		          ' * <%= pkg.license %> licensed.\n' +
		          ' */\n'
		},

		/*========================================
		=            Stylesheet stuff            =
		========================================*/

		// SASS
		sass: {
			options: {
		      style: 'expanded',
		      banner: '<%= tag.banner %>',
		      compass: false,
		      quiet: true
		    },
		  all: {
		    files: {
		      '<%= project.css %>/build/global.css': '<%= project.sass %>/style.scss',
		      '<%= project.css %>/build/backend.css': '<%= project.sass %>/themes/backend.scss'
		    }
		  },
		},

		// CSS AUTOPREFIXER
		autoprefixer: {
	    options: {
	      cascade: true,
	      browsers: ['last 2 version', 'ie 8', 'ie 9']
	    },
	    all: {
	      options: {
	        // Target-specific options go here.
	      },
	      expand: true,
    		ext: '.autoprefixed.css',
    		cwd: '<%= project.css %>/build/',
	      src: ['*.css', '!*.autoprefixed.css'],
	     	dest: '<%= project.css %>/build/autoprefixed/'
	    }
	  },

	  // CSS MINIFIER
		cssmin : {
			options: {
	      // report: 'gzip'
	    },
      css:{
    		expand: true,
    		ext: '.min.css',
      	cwd: '<%= project.css %>/build/autoprefixed/',
        src: ['*.autoprefixed.css', '!*.min.css'],
        dest: '<%= project.css %>/build/min/'
      }
    },

    // CSS TO SCSS
    //copy all css files to sass directory, and rename to .scss
		copy: {
		  OwlCarousel: {
		    files: [
		      {
		        expand: true,
		        cwd: 'bower_components/OwlCarousel/owl-carousel',
		        src: ['**/*.css'],
		        dest: 'sass/owlcarousel/',
		        rename: function(dest, src) {
		          return dest + src.replace(/\.css$/, ".scss");
		        }
		      }
		    ]
		  },
		  fancybox: {
		    files: [
		      {
		        expand: true,
		        cwd: 'bower_components/fancybox/source',
		        src: ['**/*.css'],
		        dest: 'sass/fancybox/',
		        rename: function(dest, src) {
		          return dest + src.replace(/\.css$/, ".scss");
		        }
		      }
		    ]
		  }
		},

		/*-----  End of Stylesheet stuff  ------*/

		/*========================================
		=            Javascript Stuff            =
		========================================*/

		// Concatinate javascripts.
		concat: {
	    options: {
	      separator: ';'
	    },
	    dist: {
	      src: [
	      	// jQuery
	      	'<%= project.bower %>/jQuery/dist/jquery.js',

	      	// Conditionizr

	      	// Modernizr
	      	'<%= project.bower %>/modernizr/modernizr.js',<commit_msg>Fix copy paths<commit_after>/*!
 * Toro Gruntfile
 * http://jurs.me
 * @author <NAME>
 */

'use strict';

/**
 * Grunt Module
 */
module.exports = function(grunt) {

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

	  // Project object
	  project: {
		  app: 'toro',
		  sass: [
		    '<%= project.src %>sass'
		  ],
		  css: [
		    '<%= project.src %>stylesheets'
		  ],
		  bootstrap_scripts: [
		    'bower_components/bootstrap-sass-official/vendor/assets/javascripts/bootstrap/'
		  ],
		  bower: [
		    'bower_components'
		  ]
		},

		tag: {
		  banner: '/*!\n' +
		          ' * <%= pkg.name %>\n' +
		          ' * <%= pkg.title %>\n' +
		          ' * <%= pkg.url %>\n' +
		          ' * @author <%= pkg.author %>\n' +
		          ' * @version <%= pkg.version %>\n' +
		          ' * <%= pkg.license %> licensed.\n' +
		          ' */\n'
		},

		/*========================================
		=            Stylesheet stuff            =
		========================================*/

		// SASS
		sass: {
			options: {
		      style: 'expanded',
		      banner: '<%= tag.banner %>',
		      compass: false,
		      quiet: true
		    },
		  all: {
		    files: {
		      '<%= project.css %>/build/global.css': '<%= project.sass %>/style.scss',
		      '<%= project.css %>/build/backend.css': '<%= project.sass %>/themes/backend.scss'
		    }
		  },
		},

		// CSS AUTOPREFIXER
		autoprefixer: {
	    options: {
	      cascade: true,
	      browsers: ['last 2 version', 'ie 8', 'ie 9']
	    },
	    all: {
	      options: {
	        // Target-specific options go here.
	      },
	      expand: true,
    		ext: '.autoprefixed.css',
    		cwd: '<%= project.css %>/build/',
	      src: ['*.css', '!*.autoprefixed.css'],
	     	dest: '<%= project.css %>/build/autoprefixed/'
	    }
	  },

	  // CSS MINIFIER
		cssmin : {
			options: {
	      // report: 'gzip'
	    },
      css:{
    		expand: true,
    		ext: '.min.css',
      	cwd: '<%= project.css %>/build/autoprefixed/',
        src: ['*.autoprefixed.css', '!*.min.css'],
        dest: '<%= project.css %>/build/min/'
      }
    },

    // CSS TO SCSS
    //copy all css files to sass directory, and rename to .scss
		copy: {
		  OwlCarousel: {
		    files: [
		      {
		        expand: true,
		        cwd: 'bower_components/OwlCarousel/owl-carousel',
		        src: ['**/*.css'],
		        dest: 'sass/vendors/owlcarousel/',
		        rename: function(dest, src) {
		          return dest + src.replace(/\.css$/, ".scss");
		        }
		      }
		    ]
		  },
		  fancybox: {
		    files: [
		      {
		        expand: true,
		        cwd: 'bower_components/fancybox/source',
		        src: ['**/*.css'],
		        dest: 'sass/vendors/fancybox/',
		        rename: function(dest, src) {
		          return dest + src.replace(/\.css$/, ".scss");
		        }
		      }
		    ]
		  }
		},

		/*-----  End of Stylesheet stuff  ------*/

		/*========================================
		=            Javascript Stuff            =
		========================================*/

		// Concatinate javascripts.
		concat: {
	    options: {
	      separator: ';'
	    },
	    dist: {
	      src: [
	      	// jQuery
	      	'<%= project.bower %>/jQuery/dist/jquery.js',

	      	// Conditionizr

	      	// Modernizr
	      	'<%= project.bower %>/modernizr/modernizr.js',
{'fraction_non_alphanumeric': 0.22865627319970305, 'fraction_numerical': 0.0008908685968819599, 'mean_word_length': 1.5977632086386424, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '6905162', 'n_tokens_mistral': 2703, 'n_tokens_neox': 2238, 'n_words': 393}