-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (23 loc) · 834 Bytes
/
Makefile
File metadata and controls
33 lines (23 loc) · 834 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
TARGETS := $$(find . \( -name '*.ts' -or -name '*.md' \) -not -path './npm/*' -not -path './scripts/*' -not -path './example/*')
VERSION := $$(git describe --tags --always --dirty)
.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 ${TARGETS}
fmt-check: FORCE ## Format check
@deno fmt --check ${TARGETS}
lint: FORCE ## Lint code
@deno lint ${TARGETS}
type-check: FORCE ## Type check
@deno test --unstable --no-run ${TARGETS}
test: FORCE ## Test
@deno test --unstable -A ${TARGETS}
deps: FORCE ## Update dependencies
@deno run -A https://deno.land/x/[email protected]/main.ts ${TARGETS}
@make fmt
build-npm: FORCE ## Build npm package
@deno run -A scripts/build_npm.ts ${VERSION}
FORCE: