generated from skanehira/denops-template.vim
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
24 lines (20 loc) · 760 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DENOPS := $${DENOPS_TEST_DENOPS_PATH:-$$GHQ_ROOT/github.com/vim-denops/denops.vim}
VIM := $${DENOPS_TEST_VIM_EXECUTABLE:-$$(which vim)}
NVIM := $${DENOPS_TEST_NVIM_EXECUTABLE:-$$(which nvim)}
.PHONY: init
init:
@repo=$$(basename `git rev-parse --show-toplevel`) && repo=($${repo/-/ }) && repo=$${repo[1]/\.*/ } && mv denops/template denops/$${repo}
.PHONY: coverage
coverage: test-local
@deno coverage cov
@rm -rf cov
.PHONY: test
test:
@DENOPS_TEST_DENOPS_PATH=$(DENOPS) \
DENOPS_TEST_NVIM_EXECUTABLE=$(NVIM) \
DENOPS_TEST_VIM_EXECUTABLE=$(VIM) \
deno test -A --unstable
.PHONY: deps
deps:
@deno run -A https://deno.land/x/udd@0.7.3/main.ts denops/graphql/deps.ts
@deno run -A https://deno.land/x/udd@0.7.3/main.ts denops/graphql/deps_test.ts