Watch task for jasmine task change
This commit is contained in:
parent
faa1032ed7
commit
910418f83b
@ -20,9 +20,15 @@ module.exports = function(grunt) {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
pivotal: {
|
||||
files: ['test/fixtures/pivotal/**/*.js'],
|
||||
tasks: 'jasmine:pivotal:build'
|
||||
},
|
||||
jasmine: {
|
||||
files: ['test/fixtures/pivotal/**/*.js', 'tasks/**/*.js'],
|
||||
tasks: 'jasmine:pivotal'
|
||||
}
|
||||
},
|
||||
connect: {
|
||||
test: {
|
||||
port: 8000,
|
||||
@ -63,7 +69,7 @@ module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks('grunt-contrib-nodeunit');
|
||||
grunt.loadNpmTasks('grunt-contrib-internal');
|
||||
|
||||
grunt.registerTask('watch-test', ['connect', 'watch']);
|
||||
grunt.registerTask('watch-test', ['connect', 'watch:pivotal']);
|
||||
|
||||
grunt.registerTask('test', ['jshint', 'jasmine:pivotal', 'jasmine:customTemplate', 'nodeunit']);
|
||||
grunt.registerTask('default', ['test', 'build-contrib']);
|
||||
|
Loading…
Reference in New Issue
Block a user