0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00

Merge pull request #2659 from appleYaks/clean-transpiled

Clean transpiled ember files when they're changed or deleted
This commit is contained in:
Hannah Wolfe 2014-05-01 20:20:58 +01:00
commit 0965d82b18

View file

@ -63,7 +63,7 @@ var path = require('path'),
}, },
ember: { ember: {
files: ['core/client/**/*.js'], files: ['core/client/**/*.js'],
tasks: ['transpile', 'concat_sourcemap'] tasks: ['clean:tmp', 'transpile', 'concat_sourcemap']
}, },
concat: { concat: {
files: [ files: [
@ -1041,7 +1041,7 @@ var path = require('path'),
grunt.registerTask('prod', 'Build JS & templates for production', ['handlebars', 'concat', 'uglify', 'copy:prod', 'master-warn']); grunt.registerTask('prod', 'Build JS & templates for production', ['handlebars', 'concat', 'uglify', 'copy:prod', 'master-warn']);
// All tasks related to building the Ember client code // 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' // When you just say 'grunt'
grunt.registerTask('default', 'Build JS & templates for development', ['update_submodules', 'handlebars', 'concat', 'copy:dev', 'emberBuild']); grunt.registerTask('default', 'Build JS & templates for development', ['update_submodules', 'handlebars', 'concat', 'copy:dev', 'emberBuild']);