-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (46 loc) · 1.04 KB
/
Makefile
File metadata and controls
61 lines (46 loc) · 1.04 KB
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
.PHONY: build test types
setup:
@rm -r ./node_modules/
@npm i
@npx playwright install
BUILD_DIR = ./dist
build: version
@if [ -d "$(BUILD_DIR)" ]; then \
echo "Removing $(BUILD_DIR)..."; \
rm -r "$(BUILD_DIR)"; \
fi
@npm i
./node_modules/.bin/rollup -c
@npm run css-prod
version:
@node utils/version.cjs
pretty:
@npx prettier ./src --write --cache --log-level=silent
lint:
@npx eslint ./src --fix
check:
@echo "Typechecking Js"
./node_modules/.bin/tsc
types:
@rm -rf @types
@echo "Generating *.d.ts"
@npx -p typescript tsc --project tsconfig.types.json
$(MAKE) pretty
TYPEDOC_DIR = docs/static/typedoc
doc:
@rm -rf $(TYPEDOC_DIR)
@npm run generate-docs
@npx prettier ./typedoc --write
mv typedoc $(TYPEDOC_DIR)
serve:
@npm run serve
prepare-release: test check types doc pretty build
PLAYWRIGHT_TEST := npx playwright test
test:
@echo $(INFO) "Playwright test JS"
@$(PLAYWRIGHT_TEST)
test-ui:
@echo $(INFO) "Playwright test JS with ui"
@$(PLAYWRIGHT_TEST) --ui
hugo:
hugo server --source=docs --disableFastRender