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

  grunt.config.merge({
    watch: {
      files: ['<%= pkg.project.directories.src %>/**/*'],
      tasks: ['dev'],
      options: {
        spawn: false,
        interrupt: true,
        livereload: true
      },
      clear: {
        //clear terminal on any watch task. beauty.
        files: ['<%= pkg.project.directories.src %>/**/*'],
        tasks: ['clear']
      }
    },
    clean: {
      all: ['<%= pkg.project.directories.bin %>/*'],
      src: ['<%= pkg.project.directories.bin %>/src/*']
    },
    copy: {
      vendor: {
        expand: true,
        cwd: '<%= pkg.project.directories.vendor %>',
        src: ['**/*'],
        dest: '<%= pkg.project.directories.bin %>/src/vendor'
      },
      src: {
        expand: true,
        cwd: '<%= pkg.project.directories.src %>',
        src: [ '**/*' ],
        dest: '<%= pkg.project.directories.bin %>/src'
      },
      glyphicon: {
        expand: true,
        cwd: '<%= pkg.project.directories.vendor %>/bootstrap/fonts',
        src: [ '**' ],
        dest: '<%= pkg.project.directories.bin %>/font'
      },
      fonts: {
        expand: true,
        cwd: '<%= pkg.project.directories.src %>/font',
        src: [ '**/*' ],
        dest: '<%= pkg.project.directories.bin %>/font'
      },
      jade: {
        flatten: true,
        expand: true,
        cwd: '<%= pkg.project.directories.src %>/components',
        src: ['**/*.jade'],
        dest:'<%= pkg.project.directories.bin %>/mixins'
      }
    },
    concat: {
      options: {
        stripBanners: true
      },
      jade: {
        cwd: '<%= pkg.project.directories.bin %>/mixins',
        src: ['**/*.jade'],
        dest: '<%= pkg.project.directories.bin %>/mixins/emil.jade',
      },
    },
    less: {
      build: {
        options: {
          ieCompat: true,
          relativeUrls: false,
          paths: ['<%= pkg.project.directories.bin %>/src']
        },
        files: {
          '<%= pkg.project.directories.bin %>emil.css': '<%= pkg.project.directories.src %>/emil.less' 
        }
      }
    },
    svgmin: {
      dev: {
        files: [{
          expand: true,
          cwd: '<%= pkg.project.directories.bin %>/src/icons',
          src: ['*.svg'],
          dest: '<%= pkg.project.directories.bin %>/src/icons'
        }]
      }
    },
    grunticon: {
      build: {
        files: [{
          expand: true,
          cwd: '<%= pkg.project.directories.bin %>src/icons',
          src: ['*.svg'],
          dest: '<%= pkg.project.directories.bin %>/grunticon'
        }]
      }
    },
    jade: {
      options: {
        pretty: true
      },
      dev: {
        options: {
          client: false,
          compileDebug: false,
          debug: false
        },
        files: [{
          expand: true,
          dest: '<%= pkg.project.directories.bin %>',
          cwd: '<%= pkg.project.directories.bin %>/src',
          src: ['*.jade', '!emil.jade'],
          ext: '.html'
        }]
      }
    },
    concat: {
      jade: {
        files: [{
          flatten: true,
          src: ['<%= pkg.project.directories.bin %>/src/components/**/*.jade'],
          dest: '<%= pkg.project.directories.bin %>/src/emil.jade'
        }]
      }
    }
  });
  //@TODO refactor and create as plugin
  var gruntRemote = function (cmd, cwd, done) {
    var spawn  = require('child_process').spawn,
        remote = spawn('grunt', [cmd], {cwd: cwd});

    remote.stdout.on('data', function (data) {
      grunt.log.write(data);
    });
    remote.stderr.on('data', function (data) {
      grunt.fail.fatal(data);
    });
    remote.on('close', function (code) {
      grunt.log.ok(cmd+' '+cwd+' finished ('+code+')');
      done();
    });
  };

  grunt.registerTask('dev', '', [
      'clean:all',
      'copy:vendor',
      'copy:src',
      'copy:fonts',
      'less:build',
      'svgmin:dev',
      'grunticon:build',
      'concat:jade',
      'jade:dev',
      'copy:glyphicon'
  ]);
  grunt.registerTask('default', ['dev', 'watch']);
};<commit_msg>Removed Icon/Font Handling from Emil at all - K.I.S.S.<commit_after>module.exports = function(grunt) {

  grunt.config.merge({
    watch: {
      files: ['<%= pkg.project.directories.src %>/**/*'],
      tasks: ['dev'],
      options: {
        spawn: false,
        interrupt: true,
        livereload: true
      },
      clear: {
        //clear terminal on any watch task. beauty.
        files: ['<%= pkg.project.directories.src %>/**/*'],
        tasks: ['clear']
      }
    },
    clean: {
      all: ['<%= pkg.project.directories.bin %>/*'],
      src: ['<%= pkg.project.directories.bin %>/src/*']
    },
    copy: {
      vendor: {
        expand: true,
        cwd: '<%= pkg.project.directories.vendor %>',
        src: ['**/*'],
        dest: '<%= pkg.project.directories.bin %>/src/vendor'
      },
      src: {
        expand: true,
        cwd: '<%= pkg.project.directories.src %>',
        src: [ '**/*' ],
        dest: '<%= pkg.project.directories.bin %>/src'
      },
      jade: {
        flatten: true,
        expand: true,
        cwd: '<%= pkg.project.directories.src %>/components',
        src: ['**/*.jade'],
        dest:'<%= pkg.project.directories.bin %>/mixins'
      }
    },
    concat: {
      options: {
        stripBanners: true
      },
      jade: {
        cwd: '<%= pkg.project.directories.bin %>/mixins',
        src: ['**/*.jade'],
        dest: '<%= pkg.project.directories.bin %>/mixins/emil.jade',
      },
    },
    less: {
      build: {
        options: {
          ieCompat: true,
          relativeUrls: false,
          paths: ['<%= pkg.project.directories.bin %>/src']
        },
        files: {
          '<%= pkg.project.directories.bin %>emil.css': '<%= pkg.project.directories.src %>/emil.less' 
        }
      }
    },
    jade: {
      options: {
        pretty: true
      },
      dev: {
        options: {
          client: false,
          compileDebug: false,
          debug: false
        },
        files: [{
          expand: true,
          dest: '<%= pkg.project.directories.bin %>',
          cwd: '<%= pkg.project.directories.bin %>/src',
          src: ['*.jade', '!emil.jade'],
          ext: '.html'
        }]
      }
    },
    concat: {
      jade: {
        files: [{
          flatten: true,
          src: ['<%= pkg.project.directories.bin %>/src/components/**/*.jade'],
          dest: '<%= pkg.project.directories.bin %>/src/emil.jade'
        }]
      }
    }
  });
  //@TODO refactor and create as plugin
  var gruntRemote = function (cmd, cwd, done) {
    var spawn  = require('child_process').spawn,
        remote = spawn('grunt', [cmd], {cwd: cwd});

    remote.stdout.on('data', function (data) {
      grunt.log.write(data);
    });
    remote.stderr.on('data', function (data) {
      grunt.fail.fatal(data);
    });
    remote.on('close', function (code) {
      grunt.log.ok(cmd+' '+cwd+' finished ('+code+')');
      done();
    });
  };

  grunt.registerTask('dev', '', [
      'clean:all',
      'copy:vendor',
      'copy:src',
      'less:build',
      'concat:jade',
      'jade:dev',
  ]);
  grunt.registerTask('default', ['dev', 'watch']);
};
{'fraction_non_alphanumeric': 0.2002492729538845, 'fraction_numerical': 0.0, 'mean_word_length': 1.7079115110611174, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '4966269', 'n_tokens_mistral': 2511, 'n_tokens_neox': 2387, 'n_words': 407}