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:
Sebastian McKenzie
2015-10-29 17:51:24 +00:00
parent 3974dd762d
commit ae7d5367f1
1501 changed files with 16477 additions and 19786 deletions

21
scripts/bootstrap.js vendored
View File

@@ -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");

View File

@@ -72,7 +72,7 @@ function updateDepsObject(changedPackages, deps) {
function publish() {
var packageNames = fs.readdirSync(PACKAGE_LOC).filter(function (name) {
return name[0] !== ".";
return name[0] !== "." && fs.statSync(PACKAGE_LOC + "/" + name).isDirectory();
});
var lastTagCommit = exec("git rev-list --tags --max-count=1");
@@ -152,6 +152,7 @@ try {
} catch (err) {
console.log(chalk.red("There was a problem publishing."));
console.log(err.stack);
return;
if (publishedPackages.length) {
console.log(chalk.warning("Unpublishing published packages..."));
@@ -159,8 +160,8 @@ try {
publishedPackages.forEach(function () {
var verInfo = name + "@" + NEW_VERSION;
try {
console.log(chalk.warning("Unpublishing " + verInfo "..."));
exec("npm unpublish --force " + verInfo);
console.log(chalk.warning("Unpublishing " + verInfo + "..."));
//exec("npm unpublish --force " + verInfo);
} catch (err) {
console.log(chalk.red("Failed to unpublish " + verInfo));
console.log(err.stack);
@@ -168,7 +169,7 @@ try {
});
} else {
console.log(chalk.warning("Rolling back to commit", originalCommit, "..."));
exec("git checkout --hard " + originalCommit, true);
//exec("git checkout --hard " + originalCommit, true);
}
return;