-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
54 lines (37 loc) · 1.04 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
test: test-lib test-ckit-app
test-ckit-app:
#yarn workspace ckit-app run test
test-lib:
DEBUG=ckit,ckit-* yarn jest --verbose false
test-lib-coverage:
yarn jest --collect-coverage
lint: lint-lib lint-app
fix-lint: fix-lint-lib fix-lint-app
lint-fix:
yarn eslint packages/*/src/**/*.{ts,tsx} --fix
yarn workspace ckit-app run lint --fix
lint-app:
yarn workspace ckit-app run lint
fix-lint-app:
yarn workspace ckit-app run lint --fix
lint-lib:
yarn eslint packages/*/src/**/*.{ts,tsx} --format=pretty
fix-lint-lib:
yarn eslint packages/*/src/**/*.{ts,tsx} --format=pretty --fix
build: build-lib build-app
build-lib:
yarn lerna run --ignore ckit-app build
build-app:
yarn workspace ckit-app run build
clean:
yarn rimraf packages/*/dist
yarn rimraf apps/*/dist
start-docker:
cd docker && docker-compose up -d
stop-docker:
cd docker && docker-compose down
github-ci: build-lib lint stop-docker start-docker
test -d tmp && mv tmp tmp-$$(date '+%Y%m%d%H%M%S') || :
make test
watch-lib: build-lib
yarn lerna exec --parallel yarn run watch