Ability to configure if you compensate for images as well as being able to adjust the number of words per minute being used. Closes #1
30 lines
826 B
JavaScript
30 lines
826 B
JavaScript
module.exports = function(grunt)
|
|
{
|
|
grunt.initConfig({
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
jshint: {
|
|
foo: {
|
|
src: ['src/<%= pkg.name %>.js']
|
|
}
|
|
},
|
|
uglify: {
|
|
options: {
|
|
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
|
|
},
|
|
build: {
|
|
src: 'src/<%= pkg.name %>.js',
|
|
dest: 'build/<%= pkg.name %>.min.js'
|
|
}
|
|
},
|
|
watch: {
|
|
files: ['src/*.js'],
|
|
tasks: ['jshint', 'uglify']
|
|
}
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
|
|
grunt.registerTask('default', ['jshint', 'uglify']);
|
|
};
|