chore: switch from makefile to taskfile
This commit is contained in:
parent
1e7d1dea46
commit
e9360a2c92
2 changed files with 29 additions and 11 deletions
11
Makefile
11
Makefile
|
|
@ -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'}"
|
|
||||||
29
Taskfile.yml
Normal file
29
Taskfile.yml
Normal file
|
|
@ -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}"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue