Initial push
This commit is contained in:
commit
ee69c03334
31 changed files with 1578 additions and 0 deletions
17
.lune/analyze.luau
Normal file
17
.lune/analyze.luau
Normal file
|
@ -0,0 +1,17 @@
|
|||
--!nocheck
|
||||
local process = require("@lune/process")
|
||||
|
||||
local function start_process(cmd: string)
|
||||
local arguments = string.split(cmd, " ")
|
||||
local command = arguments[1]
|
||||
table.remove(arguments, 1)
|
||||
|
||||
process.spawn(command, arguments, { stdio = "forward" })
|
||||
end
|
||||
|
||||
start_process("lune run install-packages.luau")
|
||||
--start_process("curl -O https://raw.githubusercontent.com/JohnnyMorganz/luau-lsp/main/scripts/globalTypes.d.luau")
|
||||
start_process("rojo sourcemap dev.project.json -o sourcemap.json")
|
||||
start_process(
|
||||
"luau-lsp analyze --base-luaurc=.luaurc --sourcemap=sourcemap.json --settings=luau_lsp_settings.json --no-strict-dm-types --ignore Packages/**/*.lua --ignore Packages/**/*.luau lib/"
|
||||
)
|
14
.lune/build.luau
Normal file
14
.lune/build.luau
Normal file
|
@ -0,0 +1,14 @@
|
|||
--!nocheck
|
||||
local process = require("@lune/process")
|
||||
|
||||
local function start_process(cmd: string, env: { string }?)
|
||||
local arguments = string.split(cmd, " ")
|
||||
local command = arguments[1]
|
||||
table.remove(arguments, 1)
|
||||
|
||||
process.spawn(command, arguments, { stdio = "forward", env = env })
|
||||
end
|
||||
|
||||
start_process("lune run install-packages")
|
||||
start_process("darklua process --config .darklua.json lib/ dist/", { "ROBLOX_DEV=false" })
|
||||
start_process("rojo build build.project.json -o build.rbxm")
|
14
.lune/check.luau
Normal file
14
.lune/check.luau
Normal file
|
@ -0,0 +1,14 @@
|
|||
--!nocheck
|
||||
local process = require("@lune/process")
|
||||
|
||||
local function start_process(cmd: string)
|
||||
local arguments = string.split(cmd, " ")
|
||||
local command = arguments[1]
|
||||
table.remove(arguments, 1)
|
||||
|
||||
process.spawn(command, arguments, { stdio = "forward" })
|
||||
end
|
||||
|
||||
start_process("lune run analyze")
|
||||
start_process("stylua lib/")
|
||||
start_process("selene lib/")
|
15
.lune/dev.luau
Normal file
15
.lune/dev.luau
Normal file
|
@ -0,0 +1,15 @@
|
|||
--!nocheck
|
||||
local process = require("@lune/process")
|
||||
local task = require("@lune/task")
|
||||
|
||||
local function start_process(cmd: string, env: { string }?)
|
||||
local arguments = string.split(cmd, " ")
|
||||
local command = arguments[1]
|
||||
table.remove(arguments, 1)
|
||||
|
||||
process.spawn(command, arguments, { stdio = "forward", env = env })
|
||||
end
|
||||
|
||||
task.spawn(start_process, "rojo sourcemap dev.project.json -o sourcemap.json --watch")
|
||||
task.spawn(start_process, "darklua process --config .darklua.json --watch lib/ dist/", { "ROBLOX_DEV=true" })
|
||||
--task.spawn(start_process, "rojo serve dev.project.json")
|
14
.lune/install-packages.luau
Normal file
14
.lune/install-packages.luau
Normal file
|
@ -0,0 +1,14 @@
|
|||
--!nocheck
|
||||
local process = require("@lune/process")
|
||||
|
||||
local function start_process(cmd: string, cwd: string?)
|
||||
local arguments = string.split(cmd, " ")
|
||||
local command = arguments[1]
|
||||
table.remove(arguments, 1)
|
||||
|
||||
process.spawn(command, arguments, { stdio = "forward", cwd = cwd })
|
||||
end
|
||||
|
||||
start_process("wally install")
|
||||
start_process("rojo sourcemap dev.project.json -o sourcemap.json")
|
||||
start_process("wally-package-types --sourcemap sourcemap.json Packages/")
|
Loading…
Add table
Add a link
Reference in a new issue