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.
23 lines
612 B
Bash
Executable File
23 lines
612 B
Bash
Executable File
#!/bin/sh
|
|
set -ex
|
|
|
|
BROWSERIFY_CMD="../../node_modules/browserify/bin/cmd.js"
|
|
UGLIFY_CMD="../../node_modules/uglify-js/bin/uglifyjs"
|
|
BROWSERIFY_IGNORE="-i esprima-fb -i through"
|
|
|
|
mkdir -p dist
|
|
|
|
# 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 \
|
|
--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 \
|
|
--compress warnings=false \
|
|
--mangle \
|
|
>>dist/browser.min.js
|