aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3a52951
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+.PHONY: doc test lint
+
+doc: scripts/nvim_doc_tools
+ python scripts/main.py generate
+
+test:
+ ./run_tests.sh
+
+lint: scripts/nvim-typecheck-action scripts/nvim_doc_tools
+ python scripts/main.py lint
+ luacheck lua tests --formatter plain
+ stylua --check lua tests
+ ./scripts/nvim-typecheck-action/typecheck.sh lua
+
+scripts/nvim_doc_tools:
+ git clone https://github.com/stevearc/nvim_doc_tools scripts/nvim_doc_tools
+
+scripts/nvim-typecheck-action:
+ git clone https://github.com/stevearc/nvim-typecheck-action scripts/nvim-typecheck-action