Skip to content

Commit

Permalink
Use watch atBegin command to handle failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Dec 23, 2013
1 parent d62620a commit 23d41e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ module.exports = function(grunt) {

watch: {
scripts: {
options: {
atBegin: true
},

files: ['src/*', 'lib/**/*.js', 'spec/**/*.js'],
tasks: ['build', 'tests', 'test']
}
Expand Down Expand Up @@ -193,6 +197,6 @@ module.exports = function(grunt) {

grunt.registerTask('travis', process.env.PUBLISH ? ['default', 'sauce', 'metrics', 'publish:latest'] : ['default']);

grunt.registerTask('dev', ['clean', 'build', 'tests', 'test', 'connect', 'watch']);
grunt.registerTask('dev', ['clean', 'connect', 'watch']);
grunt.registerTask('default', ['clean', 'build', 'test', 'release']);
};

0 comments on commit 23d41e5

Please sign in to comment.