Skip to content

Commit 9596ba4

Browse files
committed
fix(gulp): clean .tmp folder in build task
ensure important files are preserved, the `.tmp` is cleaned and dot files are removed when running build task
1 parent 4d0e2ba commit 9596ba4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: app/templates/gulpfile.babel(gulp).js

+3-2
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ gulp.task('jscs', () => {
294294
.pipe(plugins.jscs.reporter());
295295
});
296296

297-
gulp.task('clean:tmp', () => del(['.tmp/**/*']));
297+
gulp.task('clean:tmp', () => del(['.tmp/**/*'], {dot: true}));
298298

299299
gulp.task('start:client', cb => {
300300
whenServerReady(() => {
@@ -440,6 +440,7 @@ gulp.task('wiredep:test', () => {
440440
gulp.task('build', cb => {
441441
runSequence(
442442
'clean:dist',
443+
'clean:tmp',
443444
'inject',
444445
'wiredep:client',
445446
[
@@ -453,7 +454,7 @@ gulp.task('build', cb => {
453454
cb);
454455
});
455456

456-
gulp.task('clean:dist', () => del([`${paths.dist}/**/*`]));
457+
gulp.task('clean:dist', () => del([`${paths.dist}/!(.git*|.openshift|Procfile)**`], {dot: true}));
457458

458459
gulp.task('build:client', ['transpile:client', 'styles', 'html'], () => {
459460
var appFilter = plugins.filter('**/app.js');

0 commit comments

Comments
 (0)