From 91b818d48683fdc880d6d24c01c51366f4814db1 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Sun, 17 Apr 2016 22:16:15 +0200 Subject: [PATCH] Add Makefile that makes it able to test babel with current babylon --- .gitignore | 1 + Makefile | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 3063f07d55..0908dd460b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +build lib node_modules diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000..b95506d87d --- /dev/null +++ b/Makefile @@ -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 +