Make babel-cli watching only given files and extensions. Use --only, --ignore and --extensions while process filenames with --out-file option.

This commit is contained in:
Evgeny Kruglov 2015-11-16 23:43:14 +03:00
parent 8cd68ddc74
commit a43a60e5b8

View File

@ -137,6 +137,8 @@ module.exports = function (commander, filenames, opts) {
persistent: true,
ignoreInitial: true
}).on("all", function (type, filename) {
if (util.shouldIgnore(filename) || !util.canCompile(filename, commander.extensions)) return;
if (type === "add" || type === "change") {
util.log(type + " " + filename);
try {