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
This commit is contained in:
parent
8c99148381
commit
ca545cfc33
7 changed files with 55 additions and 9 deletions
30
Gruntfile.js
Normal file
30
Gruntfile.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
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']);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue