Add Makefile that makes it able to test babel with current babylon

This commit is contained in:
Daniel Tschinder 2016-04-17 22:16:15 +02:00
parent b926e401c6
commit 91b818d486
2 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
build
lib
node_modules

20
Makefile Normal file
View File

@ -0,0 +1,20 @@
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 git@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