-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 752 Bytes
/
Copy pathMakefile
File metadata and controls
43 lines (34 loc) · 752 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
34
35
36
37
38
39
40
41
42
43
.PHONY: test
test:
deno test --config deno.json -A --unstable --no-check --ignore=node
.PHONY: cov
cov:
deno test --coverage=cov --config deno.json -A --unstable --no-check
.PHONY: fmt
fmt:
deno fmt --config deno.json
.PHONY: fmt-check
fmt-check:
deno fmt --check --config deno.json
.PHONY: lint
lint:
deno lint --config deno.json
.PHONY: dist
dist:
deno bundle --config deno.json src/mod.ts > dist.js
.PHONY: min
min:
$(MAKE) dist
terser --compress --mangle -o dist.min.js -- dist.js
.PHONY: size
size:
$(MAKE) min
deno run --allow-read https://deno.land/x/gzip_size@v0.2.3/cli.ts --include-original dist.min.js
.PHONY: dnt
dnt:
deno run -A dnt.ts
.PHONY: npm-publish
npm-publish:
rm -rf node
$(MAKE) dnt
cd node && npm publish