add babel-browser package - fixes #2635, closes #2721

This commit is contained in:
Sebastian McKenzie 2015-11-03 10:43:43 +00:00
parent a7f35e39f8
commit 1e725f4806
7 changed files with 18 additions and 3 deletions

View File

@ -8,7 +8,7 @@ build: clean
./scripts/build.sh
build-dist: build
cd packages/babel-core; \
cd packages/babel-browser; \
scripts/build-dist.sh
cd packages/babel-polyfill; \
scripts/build-dist.sh

View File

@ -0,0 +1 @@
/dist

View File

@ -0,0 +1,9 @@
{
"name": "babel-browser",
"version": "6.0.20",
"description": "Babel browser build",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://babeljs.io/",
"license": "MIT",
"repository": "https://github.com/babel/babel/tree/master/packages/babel-browser"
}

View File

@ -9,12 +9,13 @@ 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 \
node $BROWSERIFY_CMD ../babel-core/lib/api/browser.js \
--standalone babel \
--plugin bundle-collapser/plugin \
--plugin derequire/plugin \
$BROWSERIFY_IGNORE \
>>dist/browser.j
>>dist/browser.js
node -p '"\uFEFF"' > dist/browser.min.js
node $UGLIFY_CMD dist/browser.js \
--compress warnings=false \

View File

@ -100,6 +100,10 @@ function publish() {
throw new Error(chalk.red("No packages changed."));
}
if (changedPackages.indexOf("babel-browser") < 0) {
changedPackages.push("babel-browser");
}
//
changedPackages.forEach(function (name) {