fix should be getChildRoutes

fix fromNodeCallback returns array of values from callback
fix remove require.ensure - needs to be tested
This commit is contained in:
Berkeley Martinez
2015-07-03 17:40:12 -07:00
parent 2b80cdbbdc
commit bb37583c90
8 changed files with 76 additions and 39 deletions

View File

@@ -1,5 +1,6 @@
require('babel-core/register');
var gulp = require('gulp'),
var Rx = require('rx'),
gulp = require('gulp'),
path = require('path'),
// utils
@@ -30,6 +31,7 @@ var gulp = require('gulp'),
eslint = require('gulp-eslint');
Rx.longStackSupport = true;
var reloadDelay = 1000;
var reload = sync.reload;
var paths = {
@@ -105,6 +107,12 @@ gulp.task('pack-client', function() {
.pipe(gulp.dest(webpackConfig.output.path));
});
gulp.task('pack-watch', function() {
return gulp.src(webpackConfig.entry)
.pipe(webpack(Object.assign(webpackConfig, { watch: true })))
.pipe(gulp.dest(webpackConfig.output.path));
});
gulp.task('pack-node', function() {
return gulp.src(webpackConfigNode.entry)
.pipe(webpack(webpackConfigNode))
@@ -175,7 +183,7 @@ gulp.task('watch', ['less', 'serve', 'sync'], function() {
gulp.watch('./public/css/*.less', ['less']);
});
gulp.task('default', ['less', 'serve', 'sync', 'watch']);
gulp.task('default', ['less', 'serve', 'sync', 'watch', 'pack-watch']);
function errorNotifier() {
var args = Array.prototype.slice.call(arguments);