🐶 🍲

This commit is contained in:
Henry Zhu
2017-03-24 17:52:09 -04:00
parent 7a1ccf076c
commit 4278ede41f
5 changed files with 672 additions and 599 deletions

View File

@@ -9,9 +9,9 @@ const watch = require("gulp-watch");
const gutil = require("gulp-util");
const gulp = require("gulp");
const path = require("path");
const babelConfig = require("./.babelrc");
const scripts = "./packages/*/src/**/*.js";
let srcEx, libFragment;
if (path.win32 === path) {
@@ -39,7 +39,7 @@ gulp.task("build", function () {
gutil.log("Compiling", "'" + chalk.cyan(file.path) + "'...");
callback(null, file);
}))
.pipe(babel())
.pipe(babel(babelConfig))
.pipe(through.obj(function (file, enc, callback) {
file._path = file.path;
file.path = mapToDest(file.path);
@@ -67,7 +67,7 @@ gulp.task("build-watch", function () {
gutil.log("Compiling", "'" + chalk.cyan(file._path) + "'...");
callback(null, file);
}))
.pipe(babel())
.pipe(babel(babelConfig))
.pipe(gulp.dest(dest));
});