Skip to content

Commit

Permalink
chore: add watch task for auto-building the client code
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Jul 20, 2013
1 parent 4def565 commit ab57064
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Gruntfile.coffee
Expand Up @@ -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:
Expand Down Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -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": {
Expand Down

0 comments on commit ab57064

Please sign in to comment.