Skip to content

Commit fbdbbc0

Browse files
authored
Merge pull request #34 from vim-denops/update-deps
β˜• Use dlink to manage dependencies
2 parents 6570d6a + c55c193 commit fbdbbc0

File tree

24 files changed

+86
-19
lines changed

24 files changed

+86
-19
lines changed

β€Ž.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ on:
1313
paths:
1414
- "**/*.md"
1515
- "**/*.ts"
16+
- "modules-lock.json"
1617
- ".github/workflows/test.yml"
1718
pull_request:
1819
branches:
1920
- main
2021
paths:
2122
- "**/*.md"
2223
- "**/*.ts"
24+
- "modules-lock.json"
2325
- ".github/workflows/test.yml"
2426

2527
jobs:

β€ŽMakefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
TOOLS := ${CURDIR}/.tools
2+
13
.DEFAULT_GOAL := help
24

35
help:
46
@cat $(MAKEFILE_LIST) | \
57
perl -ne 'print if /^\w+.*##/;' | \
68
perl -pe 's/(.*):.*##\s*/sprintf("%-20s",$$1)/eg;'
79

10+
tools: FORCE ## Install development tools
11+
@mkdir -p ${TOOLS}
12+
@deno install -f --allow-write --allow-read --allow-net --root ${TOOLS} https://deno.land/x/dlink/dlink.ts
13+
814
fmt: FORCE ## Format code
915
@deno fmt
1016

@@ -20,4 +26,8 @@ type-check: FORCE ## Type check
2026
test: FORCE ## Test
2127
@deno test --unstable -A
2228

29+
dlink: FORCE ## Update dlink
30+
@${TOOLS}/bin/dlink
31+
@make fmt
32+
2333
FORCE:

β€Žautocmd/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Denops } from "../deps.ts";
1+
import { Denops } from "../vendor/https/deno.land/x/denops_core/mod.ts";
22
import { AutocmdEvent } from "./types.ts";
33

44
type CommonOptions = {

β€Žautocmd/common_test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { assertEquals, test } from "../deps_test.ts";
1+
import { test } from "../vendor/https/deno.land/x/denops_core/test/mod.ts";
2+
import { assertEquals } from "../vendor/https/deno.land/std/testing/asserts.ts";
23
import { globals } from "../variable/mod.ts";
34
import { define, emit, emitAll, list, remove } from "./common.ts";
45

β€Žautocmd/group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Denops } from "../deps.ts";
1+
import { Denops } from "../vendor/https/deno.land/x/denops_core/mod.ts";
22
import { execute } from "../helper/execute.ts";
33
import { AutocmdEvent } from "./types.ts";
44
import {

β€Žautocmd/group_test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { assertEquals, test } from "../deps_test.ts";
1+
import { test } from "../vendor/https/deno.land/x/denops_core/test/mod.ts";
2+
import { assertEquals } from "../vendor/https/deno.land/std/testing/asserts.ts";
23
import { globals } from "../variable/mod.ts";
34
import { group } from "./group.ts";
45

β€Ždeps.ts

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

β€Ždeps_test.ts

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

β€Žfunction/buffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Denops } from "../deps.ts";
1+
import { Denops } from "../vendor/https/deno.land/x/denops_core/mod.ts";
22

33
export async function bufadd(
44
denops: Denops,

β€Žfunction/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Denops } from "../deps.ts";
1+
import { Denops } from "../vendor/https/deno.land/x/denops_core/mod.ts";
22

33
export async function exists(
44
denops: Denops,

0 commit comments

Comments
Β (0)