6.0.0
I'm extremely stupid and didn't commit as I go. To anyone reading this I'm extremely sorry. A lot of these changes are very broad and I plan on releasing Babel 6.0.0 today live on stage at Ember Camp London so I'm afraid I couldn't wait. If you're ever in London I'll buy you a beer (or assorted beverage!) to make up for it, also I'll kiss your feet and give you a back massage, maybe.
This commit is contained in:
21
scripts/bootstrap.js
vendored
21
scripts/bootstrap.js
vendored
@@ -3,6 +3,8 @@ require("shelljs/global");
|
||||
var path = require("path");
|
||||
var fs = require("fs");
|
||||
|
||||
var OFFLINE = !!process.env.OFFLINE;
|
||||
|
||||
// uninstall global babel install
|
||||
try {
|
||||
exec("npm uninstall -g babel");
|
||||
@@ -47,9 +49,22 @@ packages.forEach(function (root) {
|
||||
});
|
||||
|
||||
cd("packages/" + root.folder);
|
||||
exec("npm install");
|
||||
exec("npm link");
|
||||
|
||||
// check whether or not we have any dependencies in our package.json that aren't in node_modules
|
||||
var shouldRunInstall = false;
|
||||
var pkg = require(process.cwd() + "/package.json");
|
||||
var deps = Object.keys(pkg.dependencies || {}).concat(Object.keys(pkg.devDependencies || {}));
|
||||
deps.forEach(function (depName) {
|
||||
if (!fs.existsSync(process.cwd() + "/node_modules/" + depName)) {
|
||||
console.log("Not installed", depName);
|
||||
shouldRunInstall = true;
|
||||
}
|
||||
});
|
||||
if (shouldRunInstall && !OFFLINE) exec("npm install");
|
||||
|
||||
if (!OFFLINE) exec("npm link");
|
||||
|
||||
cd("../..");
|
||||
});
|
||||
|
||||
exec("make build");
|
||||
if (!OFFLINE) exec("make build");
|
||||
|
||||
Reference in New Issue
Block a user