Merge pull request #631 from mattdesl/grunt-watch
Grunt Watch to use concat_sourcemap
This commit is contained in:
commit
d2e300038d
2 changed files with 6 additions and 4 deletions
|
@ -185,10 +185,11 @@ module.exports = function(grunt) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
//Watches and builds for _development_ (source maps)
|
||||||
watch: {
|
watch: {
|
||||||
scripts: {
|
scripts: {
|
||||||
files: ['<%= dirs.src %>/**/*.js'],
|
files: ['<%= dirs.src %>/**/*.js'],
|
||||||
tasks: ['concat'],
|
tasks: ['concat_sourcemap'],
|
||||||
options: {
|
options: {
|
||||||
spawn: false,
|
spawn: false,
|
||||||
}
|
}
|
||||||
|
@ -215,5 +216,5 @@ module.exports = function(grunt) {
|
||||||
|
|
||||||
grunt.registerTask('default', ['build', 'test']);
|
grunt.registerTask('default', ['build', 'test']);
|
||||||
|
|
||||||
grunt.registerTask('debug-watch', ['concat', 'watch']);
|
grunt.registerTask('debug-watch', ['concat_sourcemap', 'watch:debug']);
|
||||||
};
|
};
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
"karma-chrome-launcher": "~0.1",
|
"karma-chrome-launcher": "~0.1",
|
||||||
"karma-firefox-launcher": "~0.1",
|
"karma-firefox-launcher": "~0.1",
|
||||||
"karma-mocha": "~0.1",
|
"karma-mocha": "~0.1",
|
||||||
"karma-spec-reporter": "~0.0.6"
|
"karma-spec-reporter": "~0.0.6",
|
||||||
|
"grunt-contrib-watch": "~0.5.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue