Add Makefile that makes it able to test babel with current babylon
This commit is contained in:
parent
b926e401c6
commit
91b818d486
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
build
|
||||
lib
|
||||
node_modules
|
||||
|
||||
20
Makefile
Normal file
20
Makefile
Normal 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user