From e9360a2c926fdae150455c3e3a5b52bf93766052 Mon Sep 17 00:00:00 2001 From: Smirnov Oleksandr Date: Wed, 19 Jul 2023 23:51:22 +0300 Subject: [PATCH] chore: switch from makefile to taskfile --- Makefile | 11 ----------- Taskfile.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 11 deletions(-) delete mode 100644 Makefile create mode 100644 Taskfile.yml diff --git a/Makefile b/Makefile deleted file mode 100644 index 2dc03c4..0000000 --- a/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -.PHONY: -.SILENT: - -format: - stylua **/*.lua - -lint: - selene **/*.lua - -test: - nvim --headless -u ./spec/minimal_init.vim -c "PlenaryBustedDirectory spec {minimal_init='./spec/minimal_init.vim'}" diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..2f3b8c4 --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,29 @@ +version: "3" +tasks: + format: + desc: formats all lua files in repo + cmds: [stylua .] + + lint: + desc: runs all linters + cmds: + - task: lint_lua + - task: lint_editorconfig + + lint_lua: + desc: runs lua linter on all repo + cmds: [selene .] + + lint_editorconfig: + desc: runs editorconfig-checker + cmds: [editorconfig-checker] + + test: + aliases: [tests, spec] + cmds: + - | + nvim --headless \ + -u ./spec/minimal_init.vim\ + -c "PlenaryBustedDirectory spec \ + {minimal_init='./spec/minimal_init.lua'\ + ,sequential=true}"