forked from babel/babel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (54 loc) · 1.56 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
MAKEFLAGS = -j1
export NODE_ENV = test
.PHONY: 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
build: clean
./node_modules/.bin/gulp build
build-dist: build
cd packages/babel-polyfill; \
scripts/build-dist.sh
cd packages/babel-runtime; \
node scripts/build-dist.js
node scripts/generate-babel-types-docs.js
watch: clean
./node_modules/.bin/gulp watch
lint:
./node_modules/.bin/eslint packages/*/src
clean: test-clean
rm -rf packages/*/lib
rm -rf packages/babel-polyfill/browser*
rm -rf packages/babel-polyfill/dist
rm -rf coverage
rm -rf packages/*/npm-debug*
test-clean:
rm -rf packages/*/test/tmp
rm -rf packages/*/test-fixtures.json
test-only:
./scripts/test.sh
make test-clean
test: lint test-only
test-cov: clean
# rebuild with test
rm -rf packages/*/lib
BABEL_ENV=test; ./node_modules/.bin/gulp build
./scripts/test-cov.sh
test-ci:
make lint
NODE_ENV=test make bootstrap
# if ./node_modules/.bin/semver `npm --version` -r ">=3.3.0"; then ./node_modules/.bin/flow check; fi
./scripts/test-cov.sh
cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js
publish:
git pull --rebase
rm -rf packages/*/lib
BABEL_ENV=production make build-dist
make test
./node_modules/.bin/lerna publish --only-explicit-updates
make clean
#./scripts/build-website.sh
bootstrap:
npm install
./node_modules/.bin/lerna bootstrap
make build
cd packages/babel-runtime; \
npm install; \
node scripts/build-dist.js