Skip to content

Commit 009ea0c

Browse files
committed
☕ Use udd to manage dependencies
https://github.com/hayd/deno-udd
1 parent b7e6ce5 commit 009ea0c

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.tools

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 -A -f -n udd --root ${TOOLS} https://deno.land/x/udd@0.4.0/main.ts
13+
814
fmt: FORCE ## Format code
915
@deno fmt
1016

@@ -24,4 +30,8 @@ gen: FORCE ## Generate codes
2430
@deno run --unstable -A ./scripts/gen-function/gen-function.ts
2531
@make fmt
2632

33+
update: FORCE ## Update dependencies
34+
@${TOOLS}/bin/udd $$(find ./denops_std -name '*.ts')
35+
@make fmt
36+
2737
FORCE:

denops_std/deps.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export * as fs from "https://deno.land/std@0.100.0/fs/mod.ts";
2-
export * as hash from "https://deno.land/std@0.100.0/hash/mod.ts";
3-
export * as path from "https://deno.land/std@0.100.0/path/mod.ts";
1+
export * as fs from "https://deno.land/std@0.100.0/fs/mod.ts#^";
2+
export * as hash from "https://deno.land/std@0.100.0/hash/mod.ts#^";
3+
export * as path from "https://deno.land/std@0.100.0/path/mod.ts#^";
44

5-
export * from "https://deno.land/x/denops_core@v1.0.0-alpha.12/mod.ts";
5+
export * from "https://deno.land/x/denops_core@v1.0.0-alpha.12/mod.ts#^";

denops_std/deps_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from "https://deno.land/std@0.100.0/testing/asserts.ts";
1+
export * from "https://deno.land/std@0.100.0/testing/asserts.ts#^";
22

3-
export * from "https://deno.land/x/denops_core@v1.0.0-alpha.12/test/mod.ts";
3+
export * from "https://deno.land/x/denops_core@v1.0.0-alpha.12/test/mod.ts#^";

0 commit comments

Comments
 (0)