Skip to content

Commit

Permalink
chore: add watch task for running the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Jul 9, 2013
1 parent 57e93d7 commit a8dddb7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,20 @@ module.exports = function (grunt) {
'test/**/*.coffee'
]
}
},

watch: {
unittests: {
files: ['test/**/*.coffee', 'lib/**/*.js'],
tasks: ['test']
}
}
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-release');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-contrib-watch');

grunt.loadTasks('tasks');

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.6",
"grunt-contrib-watch": "~0.4.4",
"grunt-release": "~0.3.3",
"grunt-simple-mocha": "~0.4.0",
"chai": "~1.7.2",
Expand Down

0 comments on commit a8dddb7

Please sign in to comment.