Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (msg.error && msg.error.stack) {
console.error(basename, msg.error.stack);
}
if (process.send) {
process.send(msg);
}
});
opt.destdir = opt.destdir || process.cwd();
opt.output = opt.output || "build/out";
if (path.resolve(opt.output) === opt.output) {
throw new Error("-output must be a relative path prefix");
}
w(opt);
walker.init(opt.enyo, opt.lib || opt.enyo + "/../lib", opt.mapfrom, opt.mapto);
walker.walk(path.basename(opt.packagejs), walkerFinished);
})();
w("");
w("done.");
w("");
};
w = console.log;
opt = options(process.argv);
w("");
if (opt.help || opt.h || opt["?"]) {
printUsage();
process.exit();
}
walker.init(opt.enyo);
walker.walk(opt.source, finish);
w("");
w("done.");
w("");
};
w = console.log;
opt = options(process.argv);
w("");
if (opt.help || opt.h || opt["?"]) {
printUsage();
process.exit();
}
walker.init(opt.enyo);
walker.walk(opt.source, finish);
"output": ['--output'],
"w": ['--watch'],
"h": ['--help'],
"?": ['--help'],
"help": ['--help'],
"ri": ['--ri']
};
var opt = nopt(knownOpts, shortHands, process.argv, 2);
opt.source = opt.argv.remain[0];
if (!opt.source || opt.help) {
printUsage();
process.exit();
}
walker.init(opt.enyo);
if (opt.watch) {
watchFile(opt.source);
} else {
walker.walk(opt.source, finish);
}
}
});
opt.destdir = opt.destdir || process.cwd();
opt.output = opt.output || "build/out";
if (path.resolve(opt.output) === opt.output) {
throw new Error("-output must be a relative path prefix");
}
opt.enyo = opt.enyo || defaultEnyoLoc;
opt.lib = opt.lib || path.join(opt.enyo, "../lib");
opt.gathering = opt.gathering && (opt.lib != defaultLibLoc);
w(opt);
walker.init(opt.enyo, opt.lib, opt.mapfrom, opt.mapto);
walker.walk(path.basename(opt.packagejs), walkerFinished);
})();