2012-04-05 20:59:01 +08:00
|
|
|
var cp = require('child_process');
|
|
|
|
|
2012-07-19 17:59:17 +08:00
|
|
|
var cmds = [
|
|
|
|
"cd code-splitted-require.context && node build.js",
|
2012-08-23 07:58:17 +08:00
|
|
|
"cd code-splitted-require.context-amd && node build.js",
|
2012-07-19 17:59:17 +08: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 17:57:27 +08:00
|
|
|
"cd mixed && node build.js",
|
2012-08-23 07:58:17 +08:00
|
|
|
"cd web-worker && node build.js",
|
2013-02-19 19:48:17 +08:00
|
|
|
"cd i18n && node build.js",
|
2013-02-26 20:55:41 +08:00
|
|
|
"cd labeled-modules && node build.js",
|
2013-03-18 21:56:05 +08:00
|
|
|
"cd component && node build.js",
|
2012-07-19 17:59:17 +08:00
|
|
|
];
|
2012-04-05 20:59:01 +08:00
|
|
|
|
2012-07-19 17:59:17 +08: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 23:29:53 +08:00
|
|
|
else if(stderr) console.error(stderr), next();
|
2012-07-19 17:59:17 +08:00
|
|
|
else next();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}(stack, cmd));
|
|
|
|
}
|
|
|
|
stack();
|