forked from cmorten/deno-rollup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 700 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 700 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
.PHONY: build ci fmt fmt-check lint test
FILES_TO_FORMAT = ./example/src ./example/rollup.build.ts ./example/rollup.config.ts ./example/rollup.watch.ts ./plugins/importmap/mod.ts ./plugins/importmap/deps.ts ./src ./test ./deps.ts ./mod.ts ./rollup.ts ./version.ts
build:
@deno run --unstable --reload mod.ts
ci:
@make fmt-check
@make lint
@make build
@make test
fmt:
@deno fmt $(FILES_TO_FORMAT)
fmt-check:
@deno fmt --check $(FILES_TO_FORMAT)
lint:
@deno lint --unstable $(FILES_TO_FORMAT)
test:
@deno test --allow-read --allow-write --allow-net --allow-run --allow-env --unstable ./src
@deno test --allow-read --allow-write --allow-net --allow-run --allow-env --unstable ./plugins