diff --git a/Gulpfile.js b/Gulpfile.js index 5c1c608105..e64e30a2f6 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -3,6 +3,7 @@ var rename = require("gulp-rename"); var babel = require("gulp-babel"); var watch = require("gulp-watch"); var gulp = require("gulp"); +var path = require("path"); var scripts = "./packages/*/src/**/*.js"; @@ -12,8 +13,12 @@ gulp.task("build", function () { return gulp.src(scripts) .pipe(cached("babel")) .pipe(babel()) - .pipe(rename(function (path) { - path.dirname = path.dirname.replace(/^([^\\]+)\/src/, "$1/lib"); + .pipe(rename(function (file) { + console.log("Compiling " + path.join( + file.dirname, + file.basename + file.extname + )); + file.dirname = file.dirname.replace(/^([^\\]+)\/src/, "$1/lib"); })) .pipe(gulp.dest("packages")); });