提交 328e3c4a 编写于 作者: P Piotr Bryk 提交者: GitHub

Clean packaged backend source before each build (#1013)

This is to avoid running `gulp clean && gulp build`. Now just `gulp
build` should work.
上级 68397fbe
......@@ -15,6 +15,7 @@
/**
* @fileoverview Gulp tasks for compiling backend application.
*/
import del from 'del';
import gulp from 'gulp';
import lodash from 'lodash';
import path from 'path';
......@@ -74,12 +75,17 @@ gulp.task('package-backend', ['package-backend-source', 'link-vendor']);
* Moves all backend source files (app and tests) to a temporary package directory where it can be
* applied go commands.
*/
gulp.task('package-backend-source', function() {
gulp.task('package-backend-source', ['clean-packaged-backend-source'], function() {
return gulp
.src([path.join(conf.paths.backendSrc, '**/*'), path.join(conf.paths.backendTest, '**/*')])
.pipe(gulp.dest(conf.paths.backendTmpSrc));
});
/**
* Cleans packaged backend source to remove any leftovers from there.
*/
gulp.task('clean-packaged-backend-source', function() { return del([conf.paths.backendTmpSrc]); });
/**
* Links vendor folder to the packaged backend source.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册