From eeeffae48fe2897c12e54d437b8524d364aa5a78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilherme=20Gon=C3=A7alves?= Date: Tue, 31 May 2016 17:05:37 -0300 Subject: [PATCH] fix(build): fix templateCache generation on gulpfile (#1936) Change execution order for gulp tasks 'transpile:client' and 'html' to fix the templateCache generation. closes #1936 --- templates/app/gulpfile.babel(gulp).js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/app/gulpfile.babel(gulp).js b/templates/app/gulpfile.babel(gulp).js index be37130d9..16582400f 100644 --- a/templates/app/gulpfile.babel(gulp).js +++ b/templates/app/gulpfile.babel(gulp).js @@ -557,13 +557,16 @@ gulp.task('build', cb => { 'inject', 'wiredep:client',<% if(filters.ts) { %> 'typings',<% } %> + [ + 'transpile:client', + 'transpile:server' + ], [ 'build:images', 'copy:extras', 'copy:fonts', 'copy:assets', 'copy:server', - 'transpile:server', 'build:client' ], cb); @@ -571,7 +574,7 @@ gulp.task('build', cb => { gulp.task('clean:dist', () => del([`${paths.dist}/!(.git*|.openshift|Procfile)**`], {dot: true})); -gulp.task('build:client', ['transpile:client', 'styles', 'html', 'constant', 'build:images'], () => { +gulp.task('build:client', ['styles', 'html', 'constant', 'build:images'], () => { var manifest = gulp.src(`${paths.dist}/${clientPath}/assets/rev-manifest.json`); var appFilter = plugins.filter('**/app.js', {restore: true});