Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
watch test task
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Oct 29, 2016
1 parent a5efde5 commit 35a7cf9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ module.exports = function(grunt) {
}
},

'watch-test': {
files: ['test/**/*.js'],
tasks: ['test'],
options: {
spawn: false,
}
},

watch: {
files: ['src/**/*.js'],
tasks: ['build'],
Expand All @@ -72,6 +80,7 @@ module.exports = function(grunt) {

grunt.registerTask("test", ["run:test"]);
grunt.registerTask("watch:dev", ["watch"]);
grunt.registerTask("watch:test", ["watch-test"]);
grunt.registerTask("build", ["concat"]);
grunt.registerTask("default", ["concat", "uglify:js", "test"]);
};

0 comments on commit 35a7cf9

Please sign in to comment.