-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (33 loc) · 1.07 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
.PHONY: setup clean build docs storybook ci
SHELL := /bin/bash
PATH := ./node_modules/.bin:$(HOME)/bin:$(PATH)
MAKE := make
clean:
rm -rf yarn.lock coverage/ dist/ public/ node_modules/ **/__snapshots__/ apps/**/.cache/
bit clear-cache
yarn cache clean
setup:
yarn install
prisma generate
dato-dump:
dato dump --token=${NEXT_DATOCMS_API_TOKEN}
build:
@echo "~~~> Build home bundle..."
nx build home --prod --verbose
docs:
yarn depcruise --output-type dot --output-to docs/depgraph.dot --prefix "https://github.com/drkstr101/waweb/blob/main/"
cat docs/depgraph.dot | dot -T svg > docs/depgraph.svg.tmp
mv docs/depgraph.svg.tmp docs/depgraph.svg
storybook:
nx build-storybook screenplay
chromatic:
chromatic --ci --project-token=e9e32607e17a --storybook-build-dir dist/storybook
ci:
prisma generate
nx format
nx run-many --all --target lint
nx run-many --all --target test --coverage --detectOpenHandles=true --u=true
nx run-many --all --target build --prod
# TODO fix storybook builds
# $(MAKE) storybook
# $(MAKE) chromatic