gulp.task(, () { rubysass(scsspath, { style: , loadpath: [ scsspath ] }) .pipe(gulp.dest(cssdestpath));});gulp.task(, () { jscompile();});gulp.task(, () { jscompile();});jscompile(is_watch) { customopts = { entries: [jssrcpath + ], basedir: __dirname, debug: !production, cache: {}, packagecache: {}, fullpaths: watch }; opts = lodash.assign({}, watchify.args, customopts); bundler; (is_watch) { bundler = watchify(browserify(opts)); } { bundler = browserify(opts); } rebundle() { bundler .bundle() .pipe(source()) .pipe(buffer()) .pipe(sourcemaps.init({loadmaps: })) .on(, gutil.log) .pipe(sourcemaps.write()) .pipe(gulp.dest(jsdestpath)); } bundler.on(, () { rebundle(); }); bundler.on(, (message) { console.log(message); }); rebundle();}
