[Refactor] Development rockspec, Project structure and Entry point #84

Merged
Aire-One merged 16 commits from feat/#65 into master 2023-09-18 15:20:42 +02:00
3 changed files with 21 additions and 2 deletions
Showing only changes of commit c67c9362da - Show all commits

View File

@ -34,6 +34,7 @@
"modname",
"reportfile",
"rockspec",
"rockspecs",
"rstrip",
"runreport",
"setopt",

View File

@ -18,6 +18,17 @@ pipeline:
# path:
# - ".woodpecker/**"
lint-rockspec:
image: gitea.aireone.xyz/aire-one/awesomewm.d.tl/luacheck_just:latest
group: lint
commands:
- just check-rockspec
when:
path:
- ".woodpecker/**"
- "awesomewm-d-tl-dev-1.rockspec"
- "rockspec/*.rockspec"
lint-lua:
image: gitea.aireone.xyz/aire-one/awesomewm.d.tl/luacheck_just:latest
group: lint

View File

@ -4,10 +4,11 @@ lua := "lua" + " -l set_paths"
tl := "tl run" + " -l set_paths"
rocks_tree := "lua_modules"
rockspec_file := "rockspecs/awesomewm.d.tl-dev-1.rockspec"
rockspec_file := "awesomewm.d.tl-dev-1.rockspec"
lua_targets := `find src/ -type f -iname '*.lua' | xargs` + " " + `ls *.lua | xargs`
teal_targets := `find src/ types/ -type f -iname '*.tl' | xargs`
rockspec_targets := `find . -type f -iname '*.rockspec' | xargs`
local-install-dependencies:
luarocks \
@ -29,7 +30,13 @@ check-teal:
check-format:
stylua --check {{ lua_targets }}
check: check-lua check-format check-teal
check-rockspecs:
luarocks \
--lua-version {{ lua_version }} \
lint \
{{ rockspec_targets }}
check: check-lua check-format check-teal check-rockspecs
build:
cyan build