remove babel-browser
This commit is contained in:
parent
16366d887c
commit
c0afdfd1a8
5
Makefile
5
Makefile
@ -4,14 +4,12 @@ export NODE_ENV = test
|
||||
|
||||
PATH := node_modules/.bin:$(PATH)
|
||||
|
||||
.PHONY: clean test test-only test-cov test-clean test-travis test-browser publish build bootstrap publish-core publish-runtime build-website build-core watch-core build-core-test clean-core prepublish
|
||||
.PHONY: clean test test-only test-cov test-clean test-travis publish build bootstrap publish-core publish-runtime build-website build-core watch-core build-core-test clean-core prepublish
|
||||
|
||||
build: clean
|
||||
gulp build
|
||||
|
||||
build-dist: build
|
||||
cd packages/babel-browser; \
|
||||
scripts/build-dist.sh
|
||||
cd packages/babel-polyfill; \
|
||||
scripts/build-dist.sh
|
||||
cd packages/babel-runtime; \
|
||||
@ -25,7 +23,6 @@ lint:
|
||||
#flow check
|
||||
|
||||
clean: test-clean
|
||||
rm -rf packages/babel-browser/browser*
|
||||
rm -rf packages/babel-polyfill/browser*
|
||||
rm -rf coverage
|
||||
rm -rf packages/*/npm-debug*
|
||||
|
||||
@ -1 +0,0 @@
|
||||
/dist
|
||||
@ -1,9 +0,0 @@
|
||||
{
|
||||
"name": "babel-browser",
|
||||
"version": "6.1.19",
|
||||
"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"
|
||||
}
|
||||
@ -1,23 +0,0 @@
|
||||
#!/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 ../babel-core/lib/api/browser.js \
|
||||
--standalone babel \
|
||||
--plugin bundle-collapser/plugin \
|
||||
--plugin derequire/plugin \
|
||||
$BROWSERIFY_IGNORE \
|
||||
>>dist/browser.js
|
||||
|
||||
node -p '"\uFEFF"' > dist/browser.min.js
|
||||
node $UGLIFY_CMD dist/browser.js \
|
||||
--compress warnings=false \
|
||||
--mangle \
|
||||
>>dist/browser.min.js
|
||||
@ -1,6 +0,0 @@
|
||||
function rmRelative(loc) {
|
||||
rm(__dirname + "/../" + loc);
|
||||
}
|
||||
|
||||
rmRelative("browser.js");
|
||||
rmRelative("browser.min.js");
|
||||
@ -1,6 +0,0 @@
|
||||
function relative(loc) {
|
||||
return __dirname + "/../" + loc;
|
||||
}
|
||||
|
||||
cp(relative("dist/browser.js"), relative("browser.js"));
|
||||
cp(relative("dist/browser.min.js"), relative("browser.min.js"));
|
||||
@ -131,10 +131,6 @@ function checkUpdatedPackages() {
|
||||
if (!changedPackages.length && !FORCE_VERSION.length) {
|
||||
throw new Error(chalk.red("No packages changed."));
|
||||
}
|
||||
|
||||
if (changedPackages.indexOf("babel-browser") < 0) {
|
||||
changedPackages.push("babel-browser");
|
||||
}
|
||||
}
|
||||
|
||||
function updateChangedPackages() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user