Skip to content

Commit f07b451

Browse files
committed
fix(gulp): fix racing condition for copy:constant
Set task constant as dependency to copy:constant and remove constant as dependency to transpile:client. As it then becomes redundant. Closes #1830
1 parent 94fda09 commit f07b451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,12 @@ gulp.task('styles', () => {
305305
.pipe(gulp.dest('.tmp/app'));
306306
});<% if(filters.ts) { %>
307307

308-
gulp.task('copy:constant', () => {
308+
gulp.task('copy:constant', ['constant'], () => {
309309
return gulp.src(`${clientPath}/app/app.constant.js`, { dot: true })
310310
.pipe(gulp.dest('.tmp/app'));
311311
})
312312

313-
gulp.task('transpile:client', ['tsd', 'constant', 'copy:constant'], () => {
313+
gulp.task('transpile:client', ['tsd', 'copy:constant'], () => {
314314
let tsProject = plugins.typescript.createProject('./tsconfig.client.json');
315315
return tsProject.src()
316316
.pipe(plugins.sourcemaps.init())

0 commit comments

Comments
 (0)