babel/Makefile
2015-11-09 02:58:35 -08:00

61 lines
1.1 KiB
Makefile

MAKEFLAGS = -j1
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
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; \
node scripts/build-dist.js
watch: clean
gulp watch
lint:
node node_modules/.bin/eslint packages/*/src
#flow check
clean: test-clean
rm -rf coverage
rm -rf packages/*/npm-debug*
test-clean:
rm -rf packages/*/test/tmp
rm -rf packages/*/test-fixtures.json
test-only:
./scripts/test.sh
make test-clean
test: lint test-only
test-cov: clean
BABEL_ENV=test; \
gulp build
./scripts/test-cov.sh
test-travis: lint bootstrap build test-only
publish:
git pull --rebase
make test
node scripts/publish.js
make clean
#./scripts/build-website.sh
bootstrap:
npm install
node scripts/bootstrap.js
make build
cd packages/babel-runtime; \
node scripts/build-dist.js