Skip to content

Commit

Permalink
fix(build): fix templateCache generation on gulpfile (#1936)
Browse files Browse the repository at this point in the history
Change execution order for gulp tasks 'transpile:client' and 'html' to fixe the templateCache generation.

closes #1936
  • Loading branch information
ingoncalves committed May 31, 2016
1 parent 30bb316 commit 4db1066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/app/gulpfile.babel(gulp).js
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,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});
Expand Down Expand Up @@ -601,7 +601,7 @@ gulp.task('build:client', ['transpile:client', 'styles', 'html', 'constant', 'bu
.pipe(gulp.dest(`${paths.dist}/${clientPath}`));
});

gulp.task('html', function() {<% if(filters.jade) { %>
gulp.task('html', ['transpile:client'], function() {<% if(filters.jade) { %>
return gulp.src(`.tmp/{app,components}/**/*.html`)<% } else { %>
return gulp.src(`${clientPath}/{app,components}/**/*.html`)<% } %>
.pipe(plugins.angularTemplatecache({
Expand Down

0 comments on commit 4db1066

Please sign in to comment.