Debian Codegraph @

Makefile

raw
1 MAKEFLAGS = -j1
2
3 export NODE_ENV = test
4
5 .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
6
7 clean: ; rm -rf ./build
8
9 bootstrap-babel: clean
10 mkdir ./build
11 git clone --depth=1 --branch=master https://github.com/babel/babel.git ./build/babel
12 cd ./build/babel; \
13 make bootstrap
14 find ./build/babel/packages -type d -name 'babylon' -prune -exec rm -rf '{}' \; -exec ln -s '../../../../../' '{}' \;
15
16 test-babel:
17 BABEL_ENV=test npm run build
18 # in case babel ever switches to nyc: filter its config out of package.json
19 cd ./build/babel; \
20 jq "del(.nyc)" package.json > package.nonyc.json; \
21 mv -f package.nonyc.json package.json; \
22 ../../node_modules/.bin/nyc --no-instrument --no-source-map --report-dir ../../coverage node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts; \
23 mv .nyc_output ../../.nyc_output
24
25 bootstrap-flow: clean
26 mkdir ./build
27 git clone --depth=1 --branch=master https://github.com/facebook/flow.git ./build/flow
28
29 test-flow:
30 node scripts/run_flow_tests.js