Browse Source

Include uglify task

pull/55/head
David van Leeuwen 11 years ago
parent
commit
d753daaca1
  1. 26
      Gruntfile.coffee
  2. 3
      package.json

26
Gruntfile.coffee

@ -1,22 +1,22 @@
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']

3
package.json

@ -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"
}
}

Loading…
Cancel
Save