Skip to content

Commit 348f4cb

Browse files
committed
☕ Use deno.jsonc instead of Makefile
1 parent 4470ee2 commit 348f4cb

File tree

4 files changed

+16
-41
lines changed

4 files changed

+16
-41
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,11 @@ jobs:
3434
with:
3535
deno-version: "${{ matrix.version }}"
3636
- name: Lint check
37-
run: make lint
38-
if: matrix.version == '1.x'
37+
run: deno lint
3938
- name: Format check
40-
run: make fmt-check
41-
if: matrix.version == '1.x'
39+
run: deno fmt --check
4240
- name: Type check
43-
run: make type-check
41+
run: deno task check
4442

4543
test:
4644
strategy:
@@ -94,7 +92,7 @@ jobs:
9492
env:
9593
DENOPS_TEST_NVIM: ${{ steps.nvim.outputs.executable_path }}
9694
- name: Test
97-
run: make test
95+
run: deno task test
9896
env:
9997
DENOPS_TEST_DENOPS_PATH: "../denops.vim"
10098
DENOPS_TEST_VIM_EXECUTABLE: ${{ steps.vim.outputs.executable_path }}

.github/workflows/udd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
deno-version: "1.x"
1616
- name: Update dependencies
1717
run: |
18-
make deps > ../output.txt
18+
deno task upgrade > ../output.txt
1919
env:
2020
NO_COLOR: 1
2121
- name: Read ../output.txt

Makefile

Lines changed: 0 additions & 34 deletions
This file was deleted.

deno.jsonc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"lock": false,
3+
"tasks": {
4+
"test": "deno test --no-lock --unstable -A --doc --parallel --shuffle",
5+
"check": "deno check --no-lock --unstable $(find . -name '*.ts')",
6+
"upgrade": "deno run --no-lock -A https://deno.land/x/udd/main.ts $(find . -name '*.ts')",
7+
"gen:function": "deno run --no-lock --unstable -A ./scripts/gen-function/gen-function.ts",
8+
"gen:option": "deno run --no-lock --unstable -A ./scripts/gen-option/gen-option.ts",
9+
"gen": "deno task gen:function && deno task gen:option && deno fmt"
10+
}
11+
}

0 commit comments

Comments
 (0)