From ab57064552d0f6394bfc65543d1d9b5aa0ae5e8a Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Fri, 19 Jul 2013 20:26:01 -0700 Subject: [PATCH] chore: add watch task for auto-building the client code --- Gruntfile.coffee | 6 ++++++ package.json | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 2ac5ed9d8..75944e399 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -32,6 +32,11 @@ module.exports = (grunt) -> client: 'test/client/karma.conf.js' e2e: ['test/e2e/*/karma.conf.js', 'test/e2e/*/karma.conf.coffee'] + watch: + client: + files: '<%= files.client %>' + tasks: 'build:client' + simplemocha: options: @@ -116,6 +121,7 @@ module.exports = (grunt) -> grunt.loadTasks 'tasks' grunt.loadNpmTasks 'grunt-simple-mocha' grunt.loadNpmTasks 'grunt-contrib-jshint' + grunt.loadNpmTasks 'grunt-contrib-watch' grunt.loadNpmTasks 'grunt-coffeelint' grunt.loadNpmTasks 'grunt-bump' grunt.loadNpmTasks 'grunt-npm' diff --git a/package.json b/package.json index 030616644..93f41750c 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,8 @@ "karma-ng-scenario": "*", "karma-coffee-preprocessor": "*", "karma-html2js-preprocessor": "*", - "semver": "~1.1.4" + "semver": "~1.1.4", + "grunt-contrib-watch": "~0.5.0" }, "main": "./lib/index", "bin": {