-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (20 loc) 路 683 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (20 loc) 路 683 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
TARGETS := $$(find . \( -name '*.ts' -or -name '*.md' \) -not -path './.deno/*')
.DEFAULT_GOAL := help
help:
@cat $(MAKEFILE_LIST) | \
perl -ne 'print if /^\w+.*##/;' | \
perl -pe 's/(.*):.*##\s*/sprintf("%-20s",$$1)/eg;'
fmt: FORCE ## Format code
@deno fmt --config deno.jsonc
fmt-check: FORCE ## Format check
@deno fmt --check --config deno.jsonc
lint: FORCE ## Lint code
@deno lint --config deno.jsonc
type-check: FORCE ## Type check
@deno test --unstable --no-run ${TARGETS}
test: FORCE ## Test
@deno test --unstable -A --no-check --jobs
deps: FORCE ## Update dependencies
@deno run -A https://deno.land/x/[email protected]/main.ts ${TARGETS}
@make fmt
FORCE: