Fix manifest build order

This commit is contained in:
Berkeley Martinez
2015-12-27 15:53:48 -08:00
parent 550fbfbe69
commit 3fd472e594

View File

@ -183,7 +183,7 @@ function delRev(dest, manifestName) {
}); });
} }
gulp.task('serve', function(cb) { gulp.task('serve', ['build-manifest'], function(cb) {
var called = false; var called = false;
nodemon({ nodemon({
script: paths.server, script: paths.server,
@ -481,7 +481,7 @@ function buildManifest() {
.pipe(gulp.dest('server/')); .pipe(gulp.dest('server/'));
} }
var buildDependents = ['less', 'js', 'dependents']; var buildDependents = ['less', 'js', 'dependents', 'pack-watch-manifest'];
gulp.task('build-manifest', buildDependents, function() { gulp.task('build-manifest', buildDependents, function() {
return buildManifest(); return buildManifest();
@ -505,9 +505,9 @@ var watchDependents = [
'dependents', 'dependents',
'serve', 'serve',
'sync', 'sync',
'build-manifest',
'pack-watch', 'pack-watch',
'pack-watch-manifest' 'pack-watch-manifest',
'build-manifest'
]; ];
gulp.task('reload', function() { gulp.task('reload', function() {
@ -533,6 +533,7 @@ gulp.task('default', [
'serve', 'serve',
'pack-watch', 'pack-watch',
'pack-watch-manifest', 'pack-watch-manifest',
'build-manifest-watch',
'watch', 'watch',
'sync' 'sync'
]); ]);