babel/Makefile
Daniel Tschinder ee6a578478
Make a shallow clone of babel for testing
There is no need to retrieve the whole history.
2016-07-07 10:00:04 +02:00

21 lines
606 B
Makefile

MAKEFLAGS = -j1
export NODE_ENV = test
.PHONY: make 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
clean: ; rm -rf ./build
bootstrap-babel: clean
mkdir ./build
git clone --depth=1 --branch=master https://github.com/babel/babel.git ./build/babel
cd ./build/babel; \
make bootstrap
find ./build/babel/packages -type d -name 'babylon' -prune -exec rm -rf '{}' \; -exec ln -s '../../../../../' '{}' \;
test-babel:
npm run build
cd ./build/babel; \
make test-only