-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (22 loc) · 685 Bytes
/
Makefile
File metadata and controls
33 lines (22 loc) · 685 Bytes
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
test=nvim -l tests/minit.lua tests -o utfTerminal -Xoutput --color -v
#--shuffle-tests
tag ?= wip
watch = '*.lua'
.PHONY: api_documentation luacheck stylua test
all: test luacheck stylua
api_documentation:
nvim -u scripts/make_api_documentation/init.lua -l scripts/make_api_documentation/main.lua
llscheck:
@$(set_luals_path) && llscheck --configpath .luarc.json .
luacheck:
luacheck lua tests scripts
stylua:
stylua --check lua scripts spec
test:
@$(test)
watch:
@while sleep 0.1; do find . -name $(watch) | entr -d -c $(test); done
watch_tag:
@while sleep 0.1; do find . -name $(watch) | entr -d -c $(test) --tags=$(tag); done
test_nvim:
@$(test_nvim) spec/unit