-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (36 loc) · 1.06 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
.PHONY: setup clean lint test build start
SHELL := /bin/bash
PATH := ./node_modules/.bin:$(HOME)/bin:$(PATH)
MAKE := make
ci: setup
$(MAKE) depgraph
$(MAKE) lint
$(MAKE) test
$(MAKE) build
clean:
rm -rf yarn.lock coverage/ dist/ public/ node_modules/ **/__snapshots__/ apps/**/.cache/
yarn cache clean
# bit clear-cache
setup:
yarn install
lint:
nx workspace-lint
nx run-many --all --target lint
test:
nx run-many --all --target test
build:
nx run-many --all --target build
# Run all in parallel
start:
nx run docs:start
docs:
nx run docs:build --parallel --bundleAnalyzer
spectrum-css:
nx workspace-generator spectrum-css --name=dev-spectrum-css
depgraph:
depcruise . \
--config .dependency-cruiser.js \
--output-type dot \
--output-to apps/docs/static/img/depgraph.dot --prefix "https://github.com/drkstr101/watheia/blob/main/"
cat apps/docs/static/img/depgraph.dot | dot -T svg > apps/docs/static/img/depgraph.svg.tmp
mv apps/docs/static/img/depgraph.svg.tmp apps/docs/static/img/depgraph.svg