-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (36 loc) · 833 Bytes
/
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
SHELL := bash
.SHELLFLAGS := -O globstar -e -u -o pipefail -c
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
MAKEFLAGS += --no-builtin-variables
PATH := ./node_modules/.bin:$(PATH)
###
.PHONY: dev build fmt lint test doc clean outdated upgrade
# dev:
# tsc --watch
build:
tsc
fmt:
prettier --write .
lint:
eslint --ext=".ts" src
prettier --check .
t :=
test: build
@echo "filter test with 'make test t=xxx'"
NODE_OPTIONS="--experimental-vm-modules --no-warnings" jest --coverage --rootDir=./dist/test/ --verbose=true -t=$(t)
doc:
typedoc \
--out doc \
--cleanOutputDir \
--readme none \
--excludePrivate \
--excludeProtected \
--plugin typedoc-plugin-markdown \
src/index.ts
clean:
-rm -rfv ./dist
outdated:
pnpm outdated
upgrade:
pnpm update --latest # --interactive