-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 668 Bytes
/
Makefile
File metadata and controls
33 lines (24 loc) · 668 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
.PHONY: deps deps-plenary fmt lint stylua stylua-check selene test
CC ?= cc
NVIM ?= nvim
GIT ?= git
PLENARY_PATH ?= deps/plenary.nvim
deps: deps-plenary
deps-plenary:
@if [ ! -d "$(PLENARY_PATH)" ]; then \
mkdir -p "$$(dirname "$(PLENARY_PATH)")"; \
$(GIT) clone --depth 1 https://github.com/nvim-lua/plenary.nvim "$(PLENARY_PATH)"; \
fi
fmt: stylua
lint: stylua-check selene
stylua:
stylua .
stylua-check:
stylua --check .
selene:
selene ./lua ./plugin ./tests
test: deps
PLENARY_PATH="$(PLENARY_PATH)" \
$(NVIM) --headless -u tests/minimal_init.lua \
-c "PlenaryBustedDirectory tests { minimal_init = './tests/minimal_init.lua' }" \
-c "qa"