-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (49 loc) · 1.32 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
55
56
57
58
59
60
61
62
63
64
65
66
.PHONY: ci clean setup lint test build start
SHELL := /bin/bash
PATH := ./node_modules/.bin:$(HOME)/bin:$(PATH)
MAKE := make
NX_BRANCH := dev
ci:
$(MAKE) setup
$(MAKE) lint
$(MAKE) build
$(MAKE) test
clean:
rm -rf yarn.lock coverage/ tmp/ dist/ node_modules/ **/__snapshots__/
yarn cache clean
rm .sourcebit-nextjs-cache.json
setup:
yarn install
lint:
nx format
NX_BRANCH=$(NX_BRANCH) nx workspace-lint
NX_BRANCH=$(NX_BRANCH) nx run-many --all --target lint --verbose
stackbit validate
test:
NX_BRANCH=$(NX_BRANCH) nx run-many --all --target test -u --coverage --verbose
build:
NX_BRANCH=$(NX_BRANCH) nx run-many --all --target build --verbose
start:
NX_BRANCH=$(NX_BRANCH) nx run-many --all --target serve --parallel
# Application targets
####
home:
NX_BRANCH=$(NX_BRANCH) nx run home:build:production --verbose
blog:
@echo 'TODO Not implemented.'
exit 1
docs:
@echo 'TODO Not implemented.'
exit 1
expo:
@echo 'TODO Not implemented.'
exit 1
# Dev targets
####
depgraph:
depcruise . \
--config .dependency-cruiser.js \
--output-type dot \
--output-to docs/depgraph.dot --prefix "https://github.com/drkstr101/molecular/blob/main/"
cat docs/depgraph.dot | dot -T svg > docs/depgraph.svg.tmp
mv docs/depgraph.svg.tmp docs/depgraph.svg