Browse Source

Define concat in grant task

pull/476/head
Masayuki Tanaka 11 years ago
parent
commit
566f1e2519
  1. 17
      Gruntfile.coffee
  2. 8
      package.json

17
Gruntfile.coffee

@ -2,6 +2,23 @@ module.exports = (grunt) ->
require('load-grunt-tasks') grunt, pattern: 'grunt-contrib-*'
grunt.initConfig
watch:
concat:
tasks: 'concat'
files: ['src/*.js']
concat:
dist:
src: [
'src/head.js',
'src/c3.core.js',
'src/c3.render.bar.js',
'src/c3.draw.bar.js',
'src/c3.axis.js',
'src/tail.js'
]
dest: 'dist/c3.js'
jshint:
c3: 'c3.js'
spec: 'spec/*.js'

8
package.json

@ -21,9 +21,11 @@
"readmeFilename": "README.md",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.7.1",
"grunt-contrib-concat": "~0.5.0",
"grunt-contrib-jasmine": "~0.5.2",
"load-grunt-tasks": "~0.2.0",
"grunt-contrib-uglify": "~0.4.0"
"grunt-contrib-jshint": "~0.7.1",
"grunt-contrib-uglify": "~0.4.0",
"grunt-contrib-watch": "^0.6.1",
"load-grunt-tasks": "~0.2.0"
}
}

Loading…
Cancel
Save