mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
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.
This commit is contained in:
parent
16c8080636
commit
b3ba64adbb
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user