-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (32 loc) · 937 Bytes
/
Makefile
File metadata and controls
43 lines (32 loc) · 937 Bytes
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
PREVIEW_URL ?= http://localhost:19006
PREVIEW_OUT ?= artifacts/preview.png
PLAYWRIGHT_BROWSER ?= chromium
PLAYWRIGHT_WITH_DEPS ?= 0
ifeq ($(PLAYWRIGHT_WITH_DEPS),1)
PLAYWRIGHT_INSTALL_ARGS = --with-deps $(PLAYWRIGHT_BROWSER)
else
PLAYWRIGHT_INSTALL_ARGS = $(PLAYWRIGHT_BROWSER)
endif
.PHONY: build lint test preview-deps preview-screenshot
install:
pnpm install
build: install
pnpm run build
package: build
pnpm run package
publish: build
pnpm run publish
lint:
npm run lint
test:
npm test
preview-deps:
uv venv .venv
uv pip install --python .venv/bin/python --upgrade -r scripts/requirements.txt
uv run --python .venv/bin/python playwright install $(PLAYWRIGHT_INSTALL_ARGS)
preview-screenshot: preview-deps
uv run --python .venv/bin/python scripts/preview_screenshot.py --url $(PREVIEW_URL) --out $(PREVIEW_OUT)
clean:
rm -rf artifacts dist node_modules .vscode-test .venv .mypy_cache
rm -f *.vsix
rm -rf .venv