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