generated from ColinKennedy/nvim-best-practices-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (23 loc) · 1017 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
.PHONY: api_documentation llscheck luacheck stylua test
# Git will error if the repository already exists. We ignore the error.
# NOTE: We still print out that we did the clone to the user so that they know.
#
ifeq ($(OS),Windows_NT)
IGNORE_EXISTING = 2> nul
else
IGNORE_EXISTING = 2> /dev/null || true
endif
clone_git_dependencies:
git clone git@github.com:LuaCATS/busted.git .dependencies/busted $(IGNORE_EXISTING)
git clone git@github.com:LuaCATS/luassert.git .dependencies/luassert $(IGNORE_EXISTING)
git clone git@github.com:Bilal2453/luvit-meta.git .dependencies/luvit-meta $(IGNORE_EXISTING)
api_documentation:
nvim -u scripts/make_api_documentation/minimal_init.lua -l scripts/make_api_documentation/main.lua
llscheck: clone_git_dependencies
VIMRUNTIME=`nlua -e 'io.write(os.getenv("VIMRUNTIME"))'` llscheck --configpath .luarc.json .
luacheck:
luacheck lua plugin scripts spec
stylua:
stylua lua plugin scripts spec
test: clone_git_dependencies
busted --helper spec/minimal_init.lua .