From 0cd585126aa0b72405a92021da1a54a7d6714fb6 Mon Sep 17 00:00:00 2001 From: Jesse McCarthy Date: Wed, 4 Nov 2015 10:51:51 -0500 Subject: [PATCH] Log each file as compiled. --- Gulpfile.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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")); });