-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
42 lines (31 loc) · 892 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
.PHONY: build ci deps doc fmt fmt-check lint precommit test typedoc
FILES_TO_FORMAT = ./src ./test ./deps.ts ./mod.ts ./version.ts ./README.md ./LICENSE.md ./.github/CHANGELOG.md
build:
@deno run --allow-net --allow-read --allow-env --reload mod.ts
ci:
@make fmt-check
@make lint
@make build
@make test
deps:
@npm install -g typescript@4 typedoc@0.19.2
doc:
@deno doc ./mod.ts
fmt:
@deno fmt ${FILES_TO_FORMAT}
fmt-check:
@deno fmt --check ${FILES_TO_FORMAT}
lint:
@deno lint ${FILES_TO_FORMAT}
precommit:
@make typedoc
@make fmt
@make fmt
test:
@deno test --allow-net --allow-read
typedoc:
@rm -rf docs
@typedoc --ignoreCompilerErrors --out ./docs --mode modules --includeDeclarations --excludeExternals --name opine-http-proxy ./src
@make fmt
@make fmt
@echo 'future: true\nencoding: "UTF-8"\ninclude:\n - "_*_.html"\n - "_*_.*.html"' > ./docs/_config.yaml