From b3ba64adbbb72b65f25e0c80f8ed8771d7167f2e Mon Sep 17 00:00:00 2001 From: David Arvelo Date: Mon, 28 Apr 2014 02:21:49 -0400 Subject: [PATCH] Grunt clean `.tmp/` when ember files are changed or deleted closes #2658 - adds the `clean:tmp` task to the list of ember watch tasks - adds the `clean:tmp` task to the emberBuild task This ensures pruned ember modules are cleared out automagically. --- Gruntfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index eb4b8f7131..9615d17eda 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -63,7 +63,7 @@ var path = require('path'), }, ember: { files: ['core/client/**/*.js'], - tasks: ['transpile', 'concat_sourcemap'] + tasks: ['clean:tmp', 'transpile', 'concat_sourcemap'] }, concat: { files: [ @@ -1041,7 +1041,7 @@ var path = require('path'), grunt.registerTask('prod', 'Build JS & templates for production', ['handlebars', 'concat', 'uglify', 'copy:prod', 'master-warn']); // All tasks related to building the Ember client code - grunt.registerTask('emberBuild', 'Build Ember JS & templates for development', ['emberTemplates:dev', 'transpile', 'concat_sourcemap']); + grunt.registerTask('emberBuild', 'Build Ember JS & templates for development', ['clean:tmp', 'emberTemplates:dev', 'transpile', 'concat_sourcemap']); // When you just say 'grunt' grunt.registerTask('default', 'Build JS & templates for development', ['update_submodules', 'handlebars', 'concat', 'copy:dev', 'emberBuild']);