Bug 1063473 - Make grunt build clean up the .tmp directory

grunt-usemin uses .tmp/ as a staging area, however doesn't clean up
after itself. As such, let's run an additional grunt-clean step at the
end of the build, which removes this temporary staging directory.
This commit is contained in:
Ed Morley 2015-05-31 14:09:59 +01:00
Родитель 5afdae3a9d
Коммит 6b89d96ece
1 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -10,7 +10,10 @@ module.exports = function(grunt) {
pkg: grunt.file.readJSON('package.json'),
clean: ['dist/'],
clean: {
dist: ['dist/'],
tmp: ['.tmp/']
},
htmlangular: {
options: {
@ -232,7 +235,7 @@ module.exports = function(grunt) {
// Default tasks
grunt.registerTask('build', [
'clean',
'clean:dist',
'copy:main',
'copy:img',
'copy:fonts',
@ -242,6 +245,7 @@ module.exports = function(grunt) {
'uglify',
'usemin',
'ngtemplates',
'cache-busting'
'cache-busting',
'clean:tmp'
]);
};