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:
@@ -1,23 +1,22 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -ex
|
||||
|
||||
BROWSERIFY_CMD="../../node_modules/browserify/bin/cmd.js"
|
||||
UGLIFY_CMD="../../node_modules/uglify-js/bin/uglifyjs"
|
||||
BROWSERIFY_IGNORE="-i esprima-fb"
|
||||
BROWSERIFY_IGNORE="-i esprima-fb -i through"
|
||||
|
||||
mkdir -p dist
|
||||
|
||||
node scripts/cache-templates
|
||||
|
||||
# Add a Unicode BOM so browsers will interpret the file as UTF-8
|
||||
node -p '"\uFEFF"' > dist/browser.js
|
||||
node $BROWSERIFY_CMD lib/api/browser.js -s babel $BROWSERIFY_IGNORE >>dist/browser.js
|
||||
node $BROWSERIFY_CMD lib/api/browser.js \
|
||||
--standalone babel \
|
||||
--plugin bundle-collapser/plugin \
|
||||
--plugin derequire/plugin \
|
||||
$BROWSERIFY_IGNORE \
|
||||
>>dist/browser.j
|
||||
node -p '"\uFEFF"' > dist/browser.min.js
|
||||
node $UGLIFY_CMD dist/browser.js >>dist/browser.min.js
|
||||
|
||||
node $BROWSERIFY_CMD lib/api/node.js --node $BROWSERIFY_IGNORE >dist/node.js
|
||||
|
||||
node ../babel-cli/lib/babel-external-helpers >dist/external-helpers.js
|
||||
node $UGLIFY_CMD dist/external-helpers.js >dist/external-helpers.min.js
|
||||
|
||||
rm -rf templates.json
|
||||
node $UGLIFY_CMD dist/browser.js \
|
||||
--compress warnings=false \
|
||||
--mangle \
|
||||
>>dist/browser.min.js
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
var fs = require("fs");
|
||||
var util = require("../lib/util");
|
||||
fs.writeFileSync(__dirname + "/../templates.json", JSON.stringify(util.templates));
|
||||
@@ -4,5 +4,3 @@ function rmRelative(loc) {
|
||||
|
||||
rmRelative("browser.js");
|
||||
rmRelative("browser.min.js");
|
||||
rmRelative("external-helpers.js");
|
||||
rmRelative("external-helpers.min.js");
|
||||
|
||||
@@ -4,6 +4,3 @@ function relative(loc) {
|
||||
|
||||
cp(relative("dist/browser.js"), relative("browser.js"));
|
||||
cp(relative("dist/browser.min.js"), relative("browser.min.js"));
|
||||
cp(relative("dist/external-helpers.js"), relative("external-helpers.js"));
|
||||
cp(relative("dist/external-helpers.min.js"), relative("external-helpers.min.js"));
|
||||
require("./cache-templates");
|
||||
|
||||
Reference in New Issue
Block a user