-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
55 lines (41 loc) · 936 Bytes
/
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
MAKEFLAGS = -j1
export NODE_ENV = test
.PHONY: build watch lint fix clean test-clean test-only test test-ci publish bootstrap
build: clean
./node_modules/.bin/gulp build
watch: clean
rm -rf packages/*/lib
./node_modules/.bin/gulp watch
lint:
./node_modules/.bin/eslint packages/ --format=codeframe
fix:
./node_modules/.bin/eslint packages/ --format=codeframe --fix
clean: test-clean
rm -rf coverage
rm -rf packages/*/npm-debug*
test-clean:
rm -rf packages/*/test/tmp
rm -rf packages/*/test-fixtures.json
clean-all:
rm -rf node_modules
rm -rf packages/*/node_modules
make clean
test-only:
./scripts/test.sh
make test-clean
test: lint test-only
test-ci:
make bootstrap
make test-only
publish:
git pull --rebase
rm -rf packages/*/lib
BABEL_ENV=production make build
make test
./node_modules/.bin/lerna publish
make clean
bootstrap:
make clean-all
yarn
./node_modules/.bin/lerna bootstrap
make build