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

Include uglify task

parent cc391684
module.exports = (grunt) -> module.exports = (grunt) ->
require('load-grunt-tasks') grunt, pattern: 'grunt-contrib-*' require('load-grunt-tasks') grunt, pattern: 'grunt-contrib-*'
grunt.initConfig grunt.initConfig
jshint: jshint:
c3: 'c3.js' c3: 'c3.js'
spec: 'spec/*.js' spec: 'spec/*.js'
options: options:
jshintrc: '.jshintrc' jshintrc: '.jshintrc'
jasmine: jasmine:
c3: c3:
src: 'c3.js' src: 'c3.js'
options: options:
specs: 'spec/*.js' specs: 'spec/*.js'
grunt.registerTask 'default', ['jshint', 'jasmine'] uglify:
c3:
files:
'c3.min.js': 'c3.js'
grunt.registerTask 'default', ['jshint', 'jasmine', 'uglify']
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
"grunt": "~0.4.1", "grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.7.1", "grunt-contrib-jshint": "~0.7.1",
"grunt-contrib-jasmine": "~0.5.2", "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