<commit_before>/*global module:false*/
module.exports = function(grunt) {

    // Project configuration.
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        meta: {
            version: '<%= pkg.version %>',
            banner:
                '// Backbone.Minionette\n' +
                '// -------------------\n' +
                '// v<%= pkg.version %>\n' +
                '//\n' +
                '// Copyright (c)<%= grunt.template.today("yyyy") %> <NAME>\n' +
                '// Distributed under MIT license\n' +
                '//\n' +
                '// https://github.com/jridgewell/minionette\n' +
                '\n'
        },

        preprocess: {
            build: {
                files: {
                    'dist/minionette.js' : 'src/build/minionette.js'
                }
            },
            amd: {
                files: {
                    'dist/amd/minionette.js' : 'src/build/amd.js'
                }
            },
        },

        uglify : {
            options: {
                banner: "<%= meta.banner %>"
            },
            amd : {
                src : 'dist/amd/minionette.js',
                dest : 'dist/amd/minionette.min.js',
            },
            core : {
                src : 'dist/minionette.js',
                dest : 'dist/minionette.min.js',
                options : {
                    sourceMap : 'dist/minionette.map',
                    sourceMapPrefix : 1,
                }
            }
        },

        jshint: {
            options: {
                jshintrc : '.jshintrc'
            },
            minionette : [ 'src/*.js' ]
        },

        plato: {
            minionette : {
                src : 'src/*.js',
                dest : 'reports',
                options : {
                    jshint : grunt.file.readJSON('.jshintrc')
                }
            }
        },

        docco: {
            src: ['src/*.js'],
            options: {
                output: 'docs/'
            }
        },

        mocha: {
            browser: ['spec/spec.html'],
            options: {
                run: true
            }
        }
    });

    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-preprocess');
    grunt.loadNpmTasks('grunt-plato');
    grunt.loadNpmTasks('grunt-docco2');
    grunt.loadNpmTasks('grunt-mocha');

    // Default task.
    grunt.registerTask('test', ['mocha']);
    grunt.registerTask('default', ['jshint', 'preprocess', 'uglify']);

};<commit_msg>Don't run mocha automatically. I'll run it myself.<commit_after>/*global module:false*/
module.exports = function(grunt) {

    // Project configuration.
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        meta: {
            version: '<%= pkg.version %>',
            banner:
                '// Backbone.Minionette\n' +
                '// -------------------\n' +
                '// v<%= pkg.version %>\n' +
                '//\n' +
                '// Copyright (c)<%= grunt.template.today("yyyy") %> <NAME>\n' +
                '// Distributed under MIT license\n' +
                '//\n' +
                '// https://github.com/jridgewell/minionette\n' +
                '\n'
        },

        preprocess: {
            build: {
                files: {
                    'dist/minionette.js' : 'src/build/minionette.js'
                }
            },
            amd: {
                files: {
                    'dist/amd/minionette.js' : 'src/build/amd.js'
                }
            },
        },

        uglify : {
            options: {
                banner: "<%= meta.banner %>"
            },
            amd : {
                src : 'dist/amd/minionette.js',
                dest : 'dist/amd/minionette.min.js',
            },
            core : {
                src : 'dist/minionette.js',
                dest : 'dist/minionette.min.js',
                options : {
                    sourceMap : 'dist/minionette.map',
                    sourceMapPrefix : 1,
                }
            }
        },

        jshint: {
            options: {
                jshintrc : '.jshintrc'
            },
            minionette : [ 'src/*.js' ]
        },

        plato: {
            minionette : {
                src : 'src/*.js',
                dest : 'reports',
                options : {
                    jshint : grunt.file.readJSON('.jshintrc')
                }
            }
        },

        docco: {
            src: ['src/*.js'],
            options: {
                output: 'docs/'
            }
        },

        mocha: {
            browser: ['spec/spec.html'],
            options: {
                // run: true
            }
        }
    });

    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-preprocess');
    grunt.loadNpmTasks('grunt-plato');
    grunt.loadNpmTasks('grunt-docco2');
    grunt.loadNpmTasks('grunt-mocha');

    // Default task.
    grunt.registerTask('test', ['mocha']);
    grunt.registerTask('default', ['jshint', 'preprocess', 'uglify']);

};
{'fraction_non_alphanumeric': 0.15690776884806737, 'fraction_numerical': 0.0007654037504783774, 'mean_word_length': 1.012706969580285, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '2518507', 'n_tokens_mistral': 1627, 'n_tokens_neox': 1506, 'n_words': 205}