parent
a7f35e39f8
commit
1e725f4806
2
Makefile
2
Makefile
@ -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
|
||||
|
||||
1
packages/babel-browser/.npmignore
Normal file
1
packages/babel-browser/.npmignore
Normal file
@ -0,0 +1 @@
|
||||
/dist
|
||||
9
packages/babel-browser/package.json
Normal file
9
packages/babel-browser/package.json
Normal 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"
|
||||
}
|
||||
@ -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 \
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user