UglifyJS/test/release/run.js

17 lines
484 B
JavaScript
Raw Normal View History

2019-05-11 14:03:41 +00:00
var child_process = require("child_process");
module.exports = function(tasks) {
(function next() {
if (!tasks.length) return;
var args = tasks.shift();
console.log();
console.log("\u001B[36m$> " + args.join(" ") + "\u001B[39m");
2019-05-12 01:44:02 +00:00
child_process.spawn(process.argv[0], args, {
2019-05-11 14:03:41 +00:00
stdio: [ "ignore", 1, 2 ]
}).on("exit", function(code) {
2019-05-12 01:44:02 +00:00
if (code) process.exit(code);
2019-05-11 14:03:41 +00:00
next();
});
})();
};