aboutsummaryrefslogtreecommitdiff
path: root/config/vis/plugins/vis-build/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-02-29 16:38:35 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2024-02-29 17:00:46 +0100
commit055cbe24255be0b376d840a92948c830c46e3adc (patch)
tree84c044003f8e49fdd45d451f3537537e3fcf5ed2 /config/vis/plugins/vis-build/Makefile
parentfa90804d713d68831e850d960c211bd0d656a736 (diff)
downloaddotfiles-055cbe24255be0b376d840a92948c830c46e3adc.tar.gz
dotfiles-055cbe24255be0b376d840a92948c830c46e3adc.zip
[vis] add simple plugin to asynchronously run build commands
Diffstat (limited to 'config/vis/plugins/vis-build/Makefile')
-rw-r--r--config/vis/plugins/vis-build/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/config/vis/plugins/vis-build/Makefile b/config/vis/plugins/vis-build/Makefile
new file mode 100644
index 0000000..144e229
--- /dev/null
+++ b/config/vis/plugins/vis-build/Makefile
@@ -0,0 +1,19 @@
+.PHONY: check format check-luacheck check-format
+
+LUA_FILES := $(shell find -name "*.lua" -not -path "./json.lua")
+
+TEST_FILES := $(shell find -name "*_test.lua")
+
+check: check-luacheck check-format
+
+check-luacheck:
+ luacheck --globals=vis -- $(LUA_FILES)
+
+check-format:
+ set -e; for lf in $(LUA_FILES); do tools/check-format "$${lf}"; done
+
+format:
+ lua-format -i $(LUA_FILES)
+
+test:
+ set -e; for tf in $(TEST_FILES); do "$$tf"; done