|
1 |
| -TOOLS := ${CURDIR}/.tools |
| 1 | +TARGETS := $$(find . \( -name '*.ts' -or -name '*.md' \) -not -path './.deno/*') |
2 | 2 |
|
3 | 3 | .DEFAULT_GOAL := help
|
4 | 4 |
|
|
7 | 7 | perl -ne 'print if /^\w+.*##/;' | \
|
8 | 8 | perl -pe 's/(.*):.*##\s*/sprintf("%-20s",$$1)/eg;'
|
9 | 9 |
|
10 |
| -tools: FORCE ## Install development tools |
11 |
| - @mkdir -p ${TOOLS} |
12 |
| - @deno install -A -f -n udd --root ${TOOLS} https://deno.land/x/udd@0.7.2/main.ts |
13 |
| - |
14 | 10 | fmt: FORCE ## Format code
|
15 |
| - @deno fmt --ignore=.deno |
| 11 | + @deno fmt --config deno.jsonc |
16 | 12 |
|
17 | 13 | fmt-check: FORCE ## Format check
|
18 |
| - @deno fmt --check --ignore=.deno |
| 14 | + @deno fmt --check --config deno.jsonc |
19 | 15 |
|
20 | 16 | lint: FORCE ## Lint code
|
21 |
| - @deno lint --ignore=.deno |
| 17 | + @deno lint --config deno.jsonc |
22 | 18 |
|
23 | 19 | type-check: FORCE ## Type check
|
24 |
| - @deno test --unstable --no-run $$(find . -name '*.ts' -not -name '.deno') |
| 20 | + @deno test --unstable --no-run ${TARGETS} |
25 | 21 |
|
26 | 22 | test: FORCE ## Test
|
27 |
| - @deno test --unstable -A |
| 23 | + @deno test --unstable -A --no-check --jobs |
28 | 24 |
|
29 | 25 | gen: FORCE ## Generate codes
|
30 | 26 | @deno run --unstable -A ./scripts/gen-function/gen-function.ts
|
31 | 27 | @deno run --unstable -A ./scripts/gen-option/gen-option.ts
|
32 | 28 | @make fmt
|
33 | 29 |
|
34 |
| -update: FORCE ## Update dependencies |
35 |
| - @${TOOLS}/bin/udd $$(find ./denops_std -name '*.ts' -not -name '.deno') |
| 30 | +deps: FORCE ## Update dependencies |
| 31 | + @deno run -A https://deno.land/x/udd@0.7.2/main.ts ${TARGETS} |
36 | 32 | @make fmt
|
37 | 33 |
|
38 | 34 | FORCE:
|
0 commit comments