-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (33 loc) · 1.12 KB
/
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
.PHONY: ci compile deps doc fmt fmt-check install lint test typedoc
FILES_TO_FORMAT = ./src ./test deps.ts opine-cli.ts version.ts
ci:
@make fmt-check
@make lint
@make install
@make test
compile-macos:
@deno compile --unstable ./opine-cli.ts --output ./bin/macos/opine-cli
compile-ubuntu:
@deno compile --unstable ./opine-cli.ts --output ./bin/ubuntu/opine-cli
compile-windows:
@deno compile --unstable ./opine-cli.ts --output ./bin/windows/opine-cli
deps:
@npm install -g typescript typedoc@0.19.2
doc:
@deno doc ./opine-cli.ts
fmt:
@deno fmt $(FILES_TO_FORMAT)
fmt-check:
@deno fmt --check $(FILES_TO_FORMAT)
install:
@deno install -f -q --allow-read --allow-write --allow-net --unstable ./opine-cli.ts
lint:
@deno lint --unstable $(FILES_TO_FORMAT)
test:
@deno test --allow-run --allow-read --allow-net --allow-write ./test/
typedoc:
@rm -rf docs
@typedoc --ignoreCompilerErrors --out ./docs --mode modules --includeDeclarations --excludeExternals --name "Opine CLI" ./opine-cli.ts
@make fmt
@make fmt
@echo 'future: true\nencoding: "UTF-8"\ninclude:\n - "_*_.html"\n - "_*_.*.html"' > ./docs/_config.yaml