Merge pull request #631 from mattdesl/grunt-watch

Grunt Watch to use concat_sourcemap
This commit is contained in:
Chad Engler 2014-03-05 09:05:57 -08:00
commit d2e300038d
2 changed files with 6 additions and 4 deletions

View file

@ -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,
} }
@ -214,6 +215,6 @@ module.exports = function(grunt) {
grunt.registerTask('travis', ['build', 'test']); grunt.registerTask('travis', ['build', 'test']);
grunt.registerTask('default', ['build', 'test']); grunt.registerTask('default', ['build', 'test']);
grunt.registerTask('debug-watch', ['concat', 'watch']); grunt.registerTask('debug-watch', ['concat_sourcemap', 'watch:debug']);
}; };

View file

@ -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"
} }
} }