Skip to content

Commit c60e92c

Browse files
committed
Update tooling & dependencies for Lune 0.8.0
1 parent 0acad58 commit c60e92c

File tree

9 files changed

+24
-22
lines changed

9 files changed

+24
-22
lines changed

.justfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ install-dev-tools:
66

77
# Extract documentation from the main repository using moonwave
88
extract-documentation COMMIT="":
9-
lune download "{{COMMIT}}"
10-
lune extract
11-
lune generate
9+
lune run download "{{COMMIT}}"
10+
lune run extract
11+
lune run generate
1212

1313
# Re-generates documentation from the main repository using moonwave
1414
generate-documentation:
15-
lune generate
15+
lune run generate
1616

1717
# Builds and generates a static site directory
1818
build:

aftman.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tools]
22
just = "readysetplay/[email protected]"
3-
luau-lsp = "JohnnyMorganz/luau-lsp@1.22.0"
4-
lune = "filiptibell/lune@0.7.4"
5-
stylua = "JohnnyMorganz/StyLua@0.18.0"
3+
luau-lsp = "JohnnyMorganz/luau-lsp@1.27.0"
4+
lune = "filiptibell/lune@0.8.0"
5+
stylua = "JohnnyMorganz/StyLua@0.19.1"

modules/remodel.luau

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
local fs = require("@lune/fs")
44
local net = require("@lune/net")
5-
local serde = require("@lune/serde")
65
local process = require("@lune/process")
76
local roblox = require("@lune/roblox")
7+
local serde = require("@lune/serde")
88

99
export type LuneDataModel = roblox.DataModel
1010
export type LuneInstance = roblox.Instance
@@ -140,13 +140,15 @@ local function uploadAssetId(assetId: number, contents: string)
140140
})
141141

142142
local csrfToken = csrfResponse.headers["x-csrf-token"]
143-
if csrfToken == nil then error('Failed to fetch CSRF token.') end
143+
if csrfToken == nil then
144+
error("Failed to fetch CSRF token.")
145+
end
144146

145147
-- 3. Upload the asset to Roblox
146148
local uploadHeaders = {
147149
["User-Agent"] = "Roblox/WinInet",
148150
["Content-Type"] = "application/octet-stream",
149-
['X-CSRF-Token'] = csrfToken,
151+
["X-CSRF-Token"] = csrfToken,
150152
Accept = "application/json",
151153
Cookie = cookie,
152154
}

pages/getting-started/2-introduction/3-standard-io.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ print("Hello, " .. name .. "!")
2121
Now you can place this script in your current directory, and run it using Lune:
2222

2323
```sh copy filename="Bash"
24-
lune hello
24+
lune run hello
2525
```
2626

2727
You can also prompt for more than just text. Let's extend the above script and ask the person
@@ -86,7 +86,7 @@ print("")
8686
Just like before, you can place this script in your current directory, and run it using Lune:
8787

8888
```sh copy filename="Bash"
89-
lune guessing-game
89+
lune run guessing-game
9090
```
9191

9292
</details>

pages/getting-started/2-introduction/4-script-arguments.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Arguments can be passed to Lune scripts directly from the command line when running them:
44

55
```sh copy filename="Bash"
6-
lune script-name arg1 arg2 "argument three"
6+
lune run script-name arg1 arg2 "argument three"
77
```
88

99
These arguments will then be available in your script using the

pages/getting-started/2-introduction/5-network-requests.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ end
3030
Now you can place this script in your current directory, and run it using Lune:
3131

3232
```sh copy filename="Bash"
33-
lune googler
33+
lune run googler
3434
```
3535

3636
## Sending JSON Requests
@@ -87,7 +87,7 @@ Running the above script Lune should now send a request to the placeholder API,
8787
response was correct, and print it out:
8888

8989
```sh copy filename="Bash"
90-
lune json-api
90+
lune run json-api
9191
```
9292

9393
---
@@ -118,7 +118,7 @@ print("Listening on port 8080 🚀")
118118
Just like before, you can place this script in your current directory, and run it using Lune:
119119

120120
```sh copy filename="Bash"
121-
lune network-server
121+
lune run network-server
122122
```
123123

124124
Now, when you visit [`http://localhost:8080/`](http://localhost:8080/) you should see the response

pages/getting-started/3-command-line-usage.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
When you've written a script file, for example `script-name.luau`, you can run it as such:
66

77
```sh copy
8-
lune script-name
8+
lune run script-name
99
```
1010

1111
This will look for the file `script-name.luau`**_<sup>[1]</sup>_** in a few locations:
@@ -19,7 +19,7 @@ This will look for the file `script-name.luau`**_<sup>[1]</sup>_** in a few loca
1919
## Listing Scripts
2020

2121
```sh copy
22-
lune --list
22+
lune list
2323
```
2424

2525
Lists all scripts found in `lune` or `.lune` directories, including any top-level description
@@ -29,14 +29,14 @@ lua-style comment arrow (`-->`).
2929
## Advanced Usage
3030

3131
```sh copy
32-
lune -
32+
lune run -
3333
```
3434

3535
Runs a script passed to Lune using stdin. Useful for running scripts piped to Lune from external
3636
sources. Example:
3737

3838
```sh copy
39-
echo "print 'Hello, terminal!'" | lune -
39+
echo "print 'Hello, terminal!'" | lune run -
4040
```
4141

4242
---

pages/getting-started/4-editor-setup.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Run the following command in your terminal to generate Luau type definitions for
2222
version of Lune:
2323

2424
```sh
25-
lune --setup
25+
lune setup
2626
```
2727

2828
### Step 2

pages/roblox/3-remodel-migration.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ without the luau file extension. Everything should work the same way it did when
341341
Remodel, now running in Lune 🚀
342342

343343
```sh copy
344-
lune example
344+
lune run example
345345
```
346346

347347
</Steps>

0 commit comments

Comments
 (0)