forked from babel/babel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (40 loc) · 1 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
MAKEFLAGS = -j1
export NODE_ENV = test
.PHONY: clean test test-cov test-clean test-travis test-browser publish build bootstrap publish-core publish-runtime build-website build-core watch-core build-core-test clean-core prepublish
build: clean
./scripts/build.sh
build-dist: build
cd packages/babel; \
scripts/build-dist.sh
cd packages/babel-runtime; \
node scripts/build-dist.js
watch: clean
scripts/build.sh --watch
lint:
node node_modules/.bin/eslint packages/*/src
clean: test-clean
rm -rf coverage
rm -rf packages/*/lib packages/babel/templates.json
test-clean:
rm -rf packages/*/test/tmp
rm -rf packages/*/test-fixtures.json
test: lint
./scripts/test.sh
make test-clean
test-browser:
./scripts/test-browser.sh
make test-clean
test-cov: clean
BABEL_ENV=test; \
make build
./scripts/test-cov.sh
test-travis: bootstrap lint build test
publish:
git pull --rebase
make test
node scripts/publish.js
make clean
./scripts/build-website.sh
bootstrap:
npm install
node scripts/bootstrap.js