Skip to content

Commit d2929b0

Browse files
stillesjoAwk34
authored andcommitted
Compile jade if applicable
1 parent fec8359 commit d2929b0

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

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

+9-4
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ gulp.task('watch', () => {
259259

260260
gulp.task('serve', cb => {
261261
runSequence(['clean:tmp', 'constant'],
262-
['lint:scripts', 'inject'],
262+
['lint:scripts', 'inject'<% if(filters.jade) { %>, 'jade'<% } %>],
263263
['wiredep:client'],<% if(filters.babel || filters.coffee) { %>
264264
['transpile:client', 'styles'],<% } else { %>
265265
'styles',<% } %>
@@ -407,16 +407,21 @@ gulp.task('html', function () {
407407
module: '<%= scriptAppName %>'
408408
}))
409409
.pipe(gulp.dest('.tmp'));
410-
});
410+
});<% if (filters.jade) { %>
411+
gulp.task('jade', function() {
412+
gulp.src(paths.client.views)
413+
.pipe(plugins.jade())
414+
.pipe(gulp.dest('.tmp'));
415+
});<% } %>
411416

412417
gulp.task('constant', function() {
413418
var config = require('./server/config/environment/shared');
414419
plugins.ngConstant({
415-
name: 'tempApp.constants',
420+
name: '<%= scriptAppName %>.constants',
416421
deps: [],
417422
wrap: true,
418423
stream: true,
419-
constants: config,
424+
constants: { appConfig: config },
420425
}).pipe(plugins.rename({
421426
basename: 'app.constant',
422427
}))

0 commit comments

Comments
 (0)