mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
refactor!: migrate to monorepo (#23)
* refactor!: create monorepo * chore: prepare release, set up workflows * refactor: rename `modules` to `src` * docs: add docs for all packages * refactor: rename root project file * chore: bump deps * build: rename `lint`, add `pack` script * revert: delete pack script This will not be useful for development.
This commit is contained in:
parent
b038bf1f70
commit
08c7e690d5
81 changed files with 917 additions and 570 deletions
29
bin/check.sh
29
bin/check.sh
|
|
@ -1,18 +1,25 @@
|
|||
curl -o bin/roblox.d.luau https://raw.githubusercontent.com/JohnnyMorganz/luau-lsp/main/scripts/globalTypes.d.lua
|
||||
|
||||
rojo sourcemap dev.project.json -o sourcemap.json
|
||||
rojo sourcemap -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"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
selene src
|
||||
stylua --check src
|
||||
eslint src
|
||||
check src/*/src
|
||||
check tests
|
||||
|
||||
rm bin/roblox.d.luau
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue