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
|
git := require('git')
just := just_executable()
luarocks := require('luarocks')
stylua := require('stylua')
zsh := "zsh"
[private]
_zsh := require(zsh)
set script-interpreter := [zsh, '+o', 'nomatch', '-eu']
set shell := [zsh, '+o', 'nomatch', '-ecu']
set positional-arguments := true
set unstable := true
local_tree := "--tree lua_modules"
[default]
[private]
@list:
{{ just }} --list --unsorted
[private]
_setup:
{{ luarocks }} {{ local_tree }} make
[script]
check: _setup
eval $({{ luarocks }} {{ local_tree }} path)
busted -c -v .
restyle:
{{ git }} ls-files '*.lua' '*.rockspec' .luacheckrc .luacov | xargs {{ stylua }} --respect-ignores
|