-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (35 loc) · 1.1 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
38
39
40
41
42
43
44
45
46
47
48
49
SHELL := /usr/bin/env bash
CURRENT_DIR := $(shell pwd)
install:
@echo starting QuantumVim installer
bash ./utils/installer/install.sh
install-bin:
@echo starting QuantumVim bin-installer
bash ./utils/installer/install_bin.sh
plugin:
@echo creating plugin configuration file
bash ./utils/scripts/genconfig.sh -p $(PLUGIN)
parent:
@echo creating parent folder for plugin configuration
bash ./utils/scripts/genconfig.sh -p $(PLUGIN) -t
parent-ext:
@echo creating parent folder for plugin with an extension
bash ./utils/scripts/genconfig.sh -p $(PLUGIN) -e $(EXT) -t
ext:
@echo creating extension in an existing parent
bash ./utils/scripts/genconfig.sh -p $(PLUGIN) -e $(EXT) -n
lint:
lint-lua lint-sh
lint-lua:
luacheck *.lua lua/* tests/*
lint-sh:
shfmt -f . | grep -v jdtls | xargs shellcheck
style: style-lua style-sh
style-lua:
stylua --config-path .stylua.toml --check .
style-sh:
shfmt -f . | grep -v jdtls | xargs shfmt -i 2 -ci -bn -l -d
test:
bash ./utils/ci/run_test.sh "$(TEST)"
test-local:
export QUANTUMVIM_RTP_DIR="$(CURRENT_DIR)"; bash ./utils/scripts/test_local.sh "$(TEST)"