Skip to content

Commit bfc987e

Browse files
committed
☕ Add help command
1 parent 9084609 commit bfc987e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

Makefile

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
fmt: FORCE
1+
.DEFAULT_GOAL := help
2+
3+
help:
4+
@cat $(MAKEFILE_LIST) | \
5+
perl -ne 'print if /^\w+.*##/;' | \
6+
perl -pe 's/(.*):.*##\s*/sprintf("%-20s",$$1)/eg;'
7+
8+
fmt: FORCE ## Format code
29
@deno fmt
310

4-
fmt-check: FORCE
11+
fmt-check: FORCE ## Format check
512
@deno fmt --check
613

7-
lint: FORCE
14+
lint: FORCE ## Lint code
815
@deno lint
916

10-
type-check: FORCE
17+
type-check: FORCE ## Type check
1118
@deno test --unstable --no-run **/*.ts
1219

13-
test: FORCE
20+
test: FORCE ## Test
1421
@deno test --unstable -A
1522

1623
FORCE:

0 commit comments

Comments
 (0)