Watch task for jasmine task change
This commit is contained in:
parent
faa1032ed7
commit
910418f83b
12
Gruntfile.js
12
Gruntfile.js
@ -20,8 +20,14 @@ module.exports = function(grunt) {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
files: ['test/fixtures/pivotal/**/*.js'],
|
||||
tasks: 'jasmine:pivotal:build'
|
||||
pivotal: {
|
||||
files: ['test/fixtures/pivotal/**/*.js'],
|
||||
tasks: 'jasmine:pivotal:build'
|
||||
},
|
||||
jasmine: {
|
||||
files: ['test/fixtures/pivotal/**/*.js', 'tasks/**/*.js'],
|
||||
tasks: 'jasmine:pivotal'
|
||||
}
|
||||
},
|
||||
connect: {
|
||||
test: {
|
||||
@ -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