* Move babel-standalone into main Babel repo
* Don't try to gather coverage data for babel-standalone test
* Fix JSX test
* Always use npm v4 on Travis
* Include pull request number as part of version number
* Cherry-picking 5721b2e43e
Remove deprecated packages to prevent Babel v6 files from being pulled in
* Use RootMostResolvePlugin to dedupe packages
* Avoid destructuring so the build works on archaic Node.js versions
* - Fix version number
- Remove Babili packages (they should be in separate babili-standalone)
- Remove deprecated syntax-class-constructor-call
* - Remove more Babili packages
- Remove `babel-plugin-inline-replace-variables` for now as it pulls in Babel 6 stuff
* Actually remove reference to babel-plugin-undeclared-variables-check
* Add Babylon to root package.json so we hoist the right version. This fixes the tests.
90 lines
2.1 KiB
Makefile
90 lines
2.1 KiB
Makefile
MAKEFLAGS = -j1
|
|
|
|
export NODE_ENV = test
|
|
|
|
# Fix color output until TravisCI fixes https://github.com/travis-ci/travis-ci/issues/7967
|
|
export FORCE_COLOR = true
|
|
|
|
.PHONY: build build-dist watch lint fix clean test-clean test-only test test-ci publish bootstrap
|
|
|
|
build: clean
|
|
rm -rf packages/*/lib
|
|
./node_modules/.bin/gulp build
|
|
ifneq ($(BABEL_ENV), "cov")
|
|
./node_modules/.bin/gulp build-babel-standalone
|
|
endif
|
|
|
|
build-dist: build
|
|
cd packages/babel-polyfill; \
|
|
scripts/build-dist.sh
|
|
cd packages/babel-runtime; \
|
|
node scripts/build-dist.js
|
|
node scripts/generate-babel-types-docs.js
|
|
|
|
watch: clean
|
|
rm -rf packages/*/lib
|
|
BABEL_ENV=development ./node_modules/.bin/gulp watch
|
|
|
|
lint:
|
|
./node_modules/.bin/eslint scripts packages *.js --format=codeframe
|
|
|
|
flow:
|
|
./node_modules/.bin/flow check --strip-root
|
|
|
|
fix:
|
|
./node_modules/.bin/eslint scripts packages *.js --format=codeframe --fix
|
|
|
|
clean: test-clean
|
|
rm -rf packages/babel-polyfill/browser*
|
|
rm -rf packages/babel-polyfill/dist
|
|
# rm -rf packages/babel-runtime/helpers
|
|
# rm -rf packages/babel-runtime/core-js
|
|
rm -rf coverage
|
|
rm -rf packages/*/npm-debug*
|
|
|
|
test-clean:
|
|
rm -rf packages/*/test/tmp
|
|
rm -rf packages/*/test-fixtures.json
|
|
|
|
clean-all:
|
|
rm -rf packages/*/lib
|
|
rm -rf node_modules
|
|
rm -rf packages/*/node_modules
|
|
rm -rf package-lock.json
|
|
rm -rf packages/*/package-lock.json
|
|
make clean
|
|
|
|
test-only:
|
|
./scripts/test.sh
|
|
make test-clean
|
|
|
|
test: lint test-only
|
|
|
|
test-ci:
|
|
make bootstrap
|
|
make test-only
|
|
|
|
test-ci-coverage: SHELL:=/bin/bash
|
|
test-ci-coverage:
|
|
BABEL_ENV=cov make bootstrap
|
|
./scripts/test-cov.sh
|
|
bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json
|
|
|
|
publish:
|
|
git pull --rebase
|
|
rm -rf packages/*/lib
|
|
BABEL_ENV=production make build-dist
|
|
make test
|
|
# not using lerna independent mode atm, so only update packages that have changed since we use ^
|
|
# --only-explicit-updates
|
|
./node_modules/.bin/lerna publish --force-publish=* --npm-tag=next --exact --skip-temp-tag
|
|
make clean
|
|
|
|
bootstrap:
|
|
make clean-all
|
|
yarn
|
|
./node_modules/.bin/lerna bootstrap
|
|
make build
|
|
cd packages/babel-runtime; \
|
|
node scripts/build-dist.js
|