babel/Makefile
Jesse McCarthy 25fb2b8410 Add node_modules/.bin to PATH.
Allows local bins, like gulp, to work.
2015-11-04 09:17:18 -05:00

57 lines
1.0 KiB
Makefile

MAKEFLAGS = -j1
export NODE_ENV = test
PATH := node_modules/.bin:$(PATH)
.PHONY: clean test 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
test-clean:
rm -rf packages/*/test/tmp
rm -rf packages/*/test-fixtures.json
test: lint
./scripts/test.sh
make test-clean
test-cov: clean
BABEL_ENV=test; \
gulp build
./scripts/test-cov.sh
test-travis: bootstrap lint build test
publish:
git pull --rebase
make test
node scripts/publish.js
make clean
#./scripts/build-website.sh
bootstrap:
npm install
node scripts/bootstrap.js
cd packages/babel-runtime; \
node scripts/build-dist.js