2012-04-05 14:59:01 +02:00
|
|
|
var cp = require('child_process');
|
|
|
|
|
2012-07-19 11:59:17 +02:00
|
|
|
var cmds = [
|
|
|
|
"cd code-splitted-require.context && node build.js",
|
2012-08-23 01:58:17 +02:00
|
|
|
"cd code-splitted-require.context-amd && node build.js",
|
2012-07-19 11:59:17 +02:00
|
|
|
"cd code-splitting && node build.js",
|
|
|
|
"cd coffee-script && node build.js",
|
|
|
|
"cd loader && node build.js",
|
|
|
|
"cd require.context && node build.js",
|
|
|
|
"cd code-splitting-bundle-loader && node build.js",
|
|
|
|
"cd commonjs && node build.js",
|
|
|
|
"cd named-chucks && node build.js",
|
|
|
|
"cd require.resolve && node build.js",
|
2012-08-09 11:57:27 +02:00
|
|
|
"cd mixed && node build.js",
|
2012-08-23 01:58:17 +02:00
|
|
|
"cd web-worker && node build.js",
|
2013-02-19 12:48:17 +01:00
|
|
|
"cd i18n && node build.js",
|
2013-02-26 13:55:41 +01:00
|
|
|
"cd labeled-modules && node build.js",
|
2013-03-18 14:56:05 +01:00
|
|
|
"cd component && node build.js",
|
2013-06-13 13:36:52 +02:00
|
|
|
"cd dedupe && node build.js",
|
2013-06-13 14:11:39 +02:00
|
|
|
"cd code-splitted-dedupe && node build.js",
|
2012-07-19 11:59:17 +02:00
|
|
|
];
|
2012-04-05 14:59:01 +02:00
|
|
|
|
2012-07-19 11:59:17 +02:00
|
|
|
var stack = function() {
|
|
|
|
console.log("done");
|
|
|
|
};
|
|
|
|
for(var i = cmds.length-1; i >= 0; i--) {
|
|
|
|
var cmd = cmds[i];
|
|
|
|
stack = (function(next, cmd) {
|
|
|
|
return function() {
|
|
|
|
console.log(cmd);
|
|
|
|
cp.exec(cmd, function(error, stdout, stderr) {
|
|
|
|
if(error) console.error(error);
|
2012-10-10 17:29:53 +02:00
|
|
|
else if(stderr) console.error(stderr), next();
|
2012-07-19 11:59:17 +02:00
|
|
|
else next();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}(stack, cmd));
|
|
|
|
}
|
|
|
|
stack();
|