From 566f1e251903610b8a6fe11ffcd68765635c8a60 Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Sun, 29 Jun 2014 17:28:05 +0900 Subject: [PATCH] Define concat in grant task --- Gruntfile.coffee | 17 +++++++++++++++++ package.json | 8 +++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 7d387bc..074f379 100644 --- a/Gruntfile.coffee +++ b/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' diff --git a/package.json b/package.json index 709f2cd..c63fa48 100644 --- a/package.json +++ b/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" } }