Use watch atBegin command to handle failing tests

This commit is contained in:
kpdecker
2013-12-23 14:26:56 -06:00
parent d62620a282
commit 23d41e5617
+5 -1
View File
@@ -154,6 +154,10 @@ module.exports = function(grunt) {
watch: {
scripts: {
options: {
atBegin: true
},
files: ['src/*', 'lib/**/*.js', 'spec/**/*.js'],
tasks: ['build', 'tests', 'test']
}
@@ -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']);
};