Commit d753daac authored by David van Leeuwen's avatar David van Leeuwen

Include uglify task

parent cc391684
module.exports = (grunt) ->
require('load-grunt-tasks') grunt, pattern: 'grunt-contrib-*'
grunt.initConfig
jshint:
c3: 'c3.js'
spec: 'spec/*.js'
options:
jshintrc: '.jshintrc'
c3: 'c3.js'
spec: 'spec/*.js'
options:
jshintrc: '.jshintrc'
jasmine:
c3:
src: 'c3.js'
options:
specs: 'spec/*.js'
c3:
src: 'c3.js'
options:
specs: 'spec/*.js'
uglify:
c3:
files:
'c3.min.js': 'c3.js'
grunt.registerTask 'default', ['jshint', 'jasmine']
grunt.registerTask 'default', ['jshint', 'jasmine', 'uglify']
......@@ -23,6 +23,7 @@
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.7.1",
"grunt-contrib-jasmine": "~0.5.2",
"load-grunt-tasks": "~0.2.0"
"load-grunt-tasks": "~0.2.0",
"grunt-contrib-uglify": "~0.4.0"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment