-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
38 lines (29 loc) · 832 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
SHELL := /bin/bash
PWD = $(shell pwd)
PKG_NAME = $(shell jq -r '.name' pkg.json)
.PHONY: gendoc
gendoc:
@echo "Generating vimdoc..."
@nvim -l scripts/gen_vimdoc.lua
@echo "Generating help tags..."
@nvim --headless -c 'helptags doc' -c 'qa'
.PHONY: update_readme
update_readme:
@echo "Updating README based on pkg.json"
@nvim --headless -c "luafile scripts/update_readme.lua" -c "qa!"
.PHONY: test
test:
@nvim -c "nvim -c 'lua vim.opt.rtp:append(vim.uv.cwd())' -l tests/utils_spec.lua"
.PHONY: test_html
test_html:
@nvim --headless -c "e tests/index.html" -c "LivePreview"
.PHONY: test_md
test_md:
@nvim --headless -c "e tests/test.md" -c "LivePreview"
.PHONY: test_adoc
test_adoc:
@nvim --headless -c "e tests/test.adoc" -c "LivePreview"
luacheck:
luacheck lua plugin scripts
stylua:
stylua lua plugin scripts