jquery.readtime/Gruntfile.js
Josh Sherman ca545cfc33 Gruntified and added more options
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
2014-09-03 22:04:59 -04:00

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']);
};