-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
37 lines (28 loc) · 1.27 KB
/
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
.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
CONFIGURATION = .luarc.json
clone_git_dependencies:
git clone git@github.com:Bilal2453/luvit-meta.git .dependencies/luvit-meta $(IGNORE_EXISTING)
git clone git@github.com:ColinKennedy/mega.cmdparse.git .dependencies/mega.cmdparse $(IGNORE_EXISTING)
git clone git@github.com:ColinKennedy/mega.logging.git .dependencies/mega.logging $(IGNORE_EXISTING)
git clone git@github.com:LuaCATS/busted.git .dependencies/busted $(IGNORE_EXISTING)
git clone git@github.com:LuaCATS/luassert.git .dependencies/luassert $(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 $(CONFIGURATION) .
luacheck:
luacheck lua plugin scripts spec
check-stylua:
stylua lua plugin scripts spec --color always --check
stylua:
stylua lua plugin scripts spec
test: clone_git_dependencies
busted .