mirror of
https://github.com/littensy/charm.git
synced 2026-10-23 05:46:27 +00:00
chore: prepare release, set up workflows
This commit is contained in:
parent
0416717f6c
commit
a5d38b0d6d
58 changed files with 261 additions and 110 deletions
5
bin/build.sh
Normal file
5
bin/build.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
mkdir build
|
||||
rojo build modules/charm -o build/charm.rbxm
|
||||
rojo build modules/charm-sync -o build/charm-sync.rbxm
|
||||
rojo build modules/react -o build/react-charm.rbxm
|
||||
rojo build modules/vide -o build/vide-charm.rbxm
|
||||
29
bin/check.sh
29
bin/check.sh
|
|
@ -2,17 +2,24 @@ curl -o bin/roblox.d.luau https://raw.githubusercontent.com/JohnnyMorganz/luau-l
|
|||
|
||||
rojo sourcemap dev.project.json -o sourcemap.json
|
||||
|
||||
luau-lsp analyze \
|
||||
--defs=bin/roblox.d.luau \
|
||||
--defs=bin/testez.d.luau \
|
||||
--flag:LuauFixIndexerSubtypingOrdering=true \
|
||||
--flag:LuauInstantiateInSubtyping=true \
|
||||
--flag:LuauTinyControlFlowAnalysis=true \
|
||||
--sourcemap=sourcemap.json \
|
||||
--ignore="**/_Index/**" src
|
||||
check() {
|
||||
echo "Checking $1"
|
||||
|
||||
selene src
|
||||
stylua --check src
|
||||
eslint src
|
||||
luau-lsp analyze \
|
||||
--defs=bin/roblox.d.luau \
|
||||
--defs=bin/testez.d.luau \
|
||||
--flag:LuauFixIndexerSubtypingOrdering=true \
|
||||
--flag:LuauInstantiateInSubtyping=true \
|
||||
--sourcemap=sourcemap.json \
|
||||
--ignore="**/_Index/**" \
|
||||
$1
|
||||
|
||||
selene $1
|
||||
stylua --check $1
|
||||
}
|
||||
|
||||
eslint modules
|
||||
check modules/*/src
|
||||
check tests
|
||||
|
||||
rm bin/roblox.d.luau
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue