-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
62 lines (45 loc) · 1.34 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
.PHONY: up, down, build, build-prod, deploy, serve-build, sentry, prune, patch, release-patch
VERSION := $(shell python3 -c "import json; print(json.load(open('package.json'))['version'])")
up: down
# rm -r node_modules/ || true
# rm -r .eslintcache || true
docker compose -f docker-compose.dev.yaml build
docker compose -f docker-compose.dev.yaml up -d
docker compose -f docker-compose.dev.yaml logs -f
serve: down
docker compose build client
docker compose up
down:
docker compose -f docker-compose.yaml -f docker-compose.dev.yaml down
prune:
docker volume rm $(shell docker volume ls -qf dangling=true)
docker buildx prune -f
docker system prune -a
patch:
npm version patch
rm-docs:
rm -r docs/ || true
docs: rm-docs
docker-compose exec client npm run docs
python3 -m http.server -d docs/
cov:
docker compose exec client npm run test --coverage
test:
docker compose run -e CI=true client npm run test-ci
test-watch:
docker compose exec client npm run test
cov-html:
open coverage/lcov-report/index.html
storybook:
docker compose run -p 6006:6006 client npm run storybook
build-storybook:
docker compose run client npm run build-storybook
spotlight-docker:
docker run --rm \
--pull always \
--name spotlight \
--detach \
-p 8969:8969/tcp \
ghcr.io/getsentry/spotlight:latest
spotlight:
npx @spotlightjs/spotlight