<commit_before>module.exports = function(grunt) {
  "use strict";

  grunt.loadNpmTasks('grunt-browserify');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-contrib-imagemin');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-less');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-watch');

  grunt.initConfig({

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

    less: {
      compile: {
        options: {
          sourceMap: true
        },
        files: {
          'webroot/css/core.css': 'src/Assets/less/core.less'
        }
      },
      minify: {
        options: {
          cleancss: true
        },
        files: {
          'webroot/css/core.min.css': 'webroot/css/core.css'
        }
      }
    },

    jshint: {
      options: {

      },
      all: [
        'package.json',
        'Gruntfile.js',
        'src/Assets/js/src/**/*.js'
      ]
    },

    watch: {
      less: {
        files: ['src/Assets/less/**/*.less'],
        tasks: ['less']
      }
    }

  });

  grunt.registerTask('default', ['less', 'jshint']);
  grunt.registerTask('build', ['less', 'jshint']);
};<commit_msg>adjust build process<commit_after>module.exports = function(grunt) {
  "use strict";

  grunt.initConfig({

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

    //-------------------------------------------- STYLE PROCESSING --------------------------------------------------//
    less: {
      compile: {
        options: {
          sourceMap: true
        },
        files: {
          'webroot/css/core.css': 'src/Assets/less/core.less'
        }
      }
    },
    cssmin: {
      options: {
        shorthandCompacting: false,
        roundingPrecision: -1
      },
      core: {
        files: {
          'webroot/css/core.min.css': 'webroot/css/core.css'
        }
      }
    },

    //--------------------------------------------- JS PROCESSING -----------------------------------------------------//
    jshint: {
      core: [
        'package.json',
        'Gruntfile.js',
        'src/Assets/js/**/*.js'
      ]
    },
    browserifyBowerResolve: {
      options: {
        bower: grunt.file.readJSON('bower.json'),
        pkg: grunt.file.readJSON('package.json')
      },
      common: {
        bowerOnly: true,
        dest: 'webroot/js/common.js'
      },
      core: {
        require: {
          'wasabi.BaseView': './src/Assets/js/common/BaseView.js',
          'wasabi.SpinPresets': './src/Assets/js/common/SpinPresets.js',
          'wasabi/core': './src/Assets/js/core/main.js'
        },
        files: {
          'webroot/js/wasabi.js': ['src/Assets/js/wasabi.js']
        }
      }
    },
    uglify: {
      options: {
        compress: {
          global_defs: {
            "DEBUG": false
          }
        }
      },
      all: {
        files: {
          'webroot/js/common.min.js': ['webroot/js/common.js'],
          'webroot/js/wasabi.min.js': ['webroot/js/wasabi.js']
        }
      }
    },

    //----------------------------------------------- WATCHERS -------------------------------------------------------//
    watch: {
      less: {
        files: ['src/Assets/less/**/*.less'],
        tasks: ['less:compile', 'cssmin:core']
      },
      commonjs: {
        files: ['src/vendor/**/*.js'],
        tasks: ['browserifyBowerResolve:common']
      },
      appjs: {
        files: ['src/Assets/js/**/*.js'],
        tasks: ['jshint:core', 'browserifyBowerResolve:core']
      }
    }

  });

  //--------------------------------------------- REGISTERED TASKS ---------------------------------------------------//
  grunt.registerTask('default', [
    'less:compile',
    'cssmin:core',
    'jshint:core',
    'browserifyBowerResolve:common',
    'browserifyBowerResolve:core',
    'uglify:all'
  ]);

  grunt.loadNpmTasks('grunt-browserify');
  grunt.loadNpmTasks('grunt-browserify-bower-resolve');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-contrib-imagemin');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-less');
  grunt.loadNpmTasks('grunt-contrib-cssmin');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-watch');
};
{'fraction_non_alphanumeric': 0.250936329588015, 'fraction_numerical': 0.00023408239700374532, 'mean_word_length': 1.4857475276323444, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, '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': '6382503', 'n_tokens_mistral': 1411, 'n_tokens_neox': 1388, 'n_words': 154}