зеркало из https://github.com/mozilla/treeherder.git
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:
Родитель
5afdae3a9d
Коммит
6b89d96ece
10
Gruntfile.js
10
Gruntfile.js
|
@ -10,7 +10,10 @@ module.exports = function(grunt) {
|
||||||
|
|
||||||
pkg: grunt.file.readJSON('package.json'),
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
|
|
||||||
clean: ['dist/'],
|
clean: {
|
||||||
|
dist: ['dist/'],
|
||||||
|
tmp: ['.tmp/']
|
||||||
|
},
|
||||||
|
|
||||||
htmlangular: {
|
htmlangular: {
|
||||||
options: {
|
options: {
|
||||||
|
@ -232,7 +235,7 @@ module.exports = function(grunt) {
|
||||||
|
|
||||||
// Default tasks
|
// Default tasks
|
||||||
grunt.registerTask('build', [
|
grunt.registerTask('build', [
|
||||||
'clean',
|
'clean:dist',
|
||||||
'copy:main',
|
'copy:main',
|
||||||
'copy:img',
|
'copy:img',
|
||||||
'copy:fonts',
|
'copy:fonts',
|
||||||
|
@ -242,6 +245,7 @@ module.exports = function(grunt) {
|
||||||
'uglify',
|
'uglify',
|
||||||
'usemin',
|
'usemin',
|
||||||
'ngtemplates',
|
'ngtemplates',
|
||||||
'cache-busting'
|
'cache-busting',
|
||||||
|
'clean:tmp'
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
Загрузка…
Ссылка в новой задаче