forked from alibaba/beidou
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (41 loc) · 1.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
export FORCE_COLOR = true
.PHONY: eslint-lint prettier-lint lint reinstall-examples-dependencies clean-packages clean-examples clean clean-test test ci changelog
lint:
make prettier-lint && make eslint-lint
prettier-lint:
prettier --write "{packages,examples}/**/*.{js,jsx,json,css,scss,less,md}"
eslint-lint:
eslint --fix --ext .jsx,.js packages/ examples/
reinstall-examples-dependencies:
make clean-examples
rm -rf examples/*/yarn.lock
./scripts/reinstall-examples.sh
clean-packages:
rm -rf packages/*/node_modules
make clean-test
rm -rf packages/*/coverage
rm -rf packages/*/*.log
clean-examples:
rm -rf examples/*/node_modules
rm -rf examples/*/logs
rm -rf examples/*/run
rm -rf examples/*/*.log
rm -rf examples/*/.stats
rm -rf examples/*/.isomorphic
clean:
make clean-packages && make clean-examples
clean-test:
rm -rf packages/*/test/**/run
rm -rf packages/*/test/**/logs
rm -rf packages/*/test/**/.stats
rm -rf packages/*/test/**/.isomorphic
test:
make lint
./scripts/test.sh
make clean-test
ci:
./scripts/ci.sh
changelog:
lerna-changelog