Watch task for jasmine task change

This commit is contained in:
NeverI 2013-02-24 01:44:19 +01:00
parent faa1032ed7
commit 910418f83b

View File

@ -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']);