stackviz/gulp/tasks/development.js
Tim Buckley 5f582dc5e4 Fix possible race condition in build script
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
2016-05-02 12:47:34 -06:00

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);
});