5f582dc5e4
This fixes a potential race condition during the build process, where the 'browserify' task could attempt to run before the views had been compiled, resulting in build failure. This change makes the 'browserify' task wait for views to finish before running. Change-Id: I8358812a90caf006c18220b643347848f15779fe
15 lines
278 B
JavaScript
15 lines
278 B
JavaScript
'use strict';
|
|
|
|
var gulp = require('gulp');
|
|
var runSequence = require('run-sequence');
|
|
|
|
gulp.task('dev', ['clean'], function(cb) {
|
|
|
|
cb = cb || function() {};
|
|
|
|
global.isProd = false;
|
|
|
|
runSequence(['styles', 'fonts', 'data', 'views'], 'browserify', 'watch', cb);
|
|
|
|
});
|