@tilua-types/roblox 10.0.0 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +31 -12
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -73,21 +73,40 @@ wrapped.
73
73
 
74
74
  ## A game through Rojo
75
75
 
76
- In a Rojo project as `rojo init` makes it, nothing of Rojo's changes:
76
+ In a Rojo project as `rojo init` makes it:
77
77
 
78
78
  ```bash
79
79
  npm i -D @tilua/compiler @tilua-types/roblox
80
- npx tilua init # tilua.config.json, read off default.project.json
80
+ npx tilua init # src is what you write, out what Rojo reads
81
81
  npx tilua --watch # beside `rojo serve`
82
82
  ```
83
83
 
84
- `tilua init` writes `{ "types": ["roblox"], "output": "files", "rootDir": "src" }`
85
- — `src` being the folder the project's `$path`s share. Each `.tilua` under
86
- it then compiles to a `.luau` beside it, where the project already reads
87
- files, and `rojo serve` syncs that into Studio as you save. `--watch` builds
88
- again on every change, removes the `.luau` of a `.tilua` that is gone, and
89
- never replaces a `.luau` written by hand: every file tilua writes says so on
90
- its last line.
84
+ ```
85
+ src/ what you write
86
+ shared/Greet.tilua
87
+ shared/Hello.luau Luau written by hand
88
+ out/ the build's: compiled, copied, and nothing else
89
+ shared/Greet.luau
90
+ shared/Hello.luau
91
+ shared/_tilua.luau the runtime
92
+ ```
93
+
94
+ `tilua init` writes `{ "types": ["roblox"], "output": "files", "rootDir": "src", "outDir": "out" }`
95
+ — `src` being the folder the project's `$path`s share — points those `$path`s
96
+ at `out`, and adds `/out` to `.gitignore`. Each build makes `out` a mirror of
97
+ `src`: every `.tilua` compiled, every other file (Luau written by hand,
98
+ `.meta.json`, models) copied as it is, every folder there even when empty,
99
+ and nothing else — what is in `out` and no longer in `src` is removed.
100
+ `--watch` does that again on every change under `src`, and `rojo serve`
101
+ syncs it into Studio. A project set up the older way, each `.luau` compiled
102
+ beside its `.tilua`, is moved over by `tilua init` the same way, and the first
103
+ build removes those `.luau` from `src`.
104
+
105
+ The tree the project builds is typed as you write, read straight off
106
+ `default.project.json` and the files in `src` — nothing else to run:
107
+ `game.Workspace.Baseplate` is the project's part, `script` is the file's own
108
+ instance (`script.Parent` its folder), and `FindFirstChild("")` and
109
+ `WaitForChild("")` offer the children's names.
91
110
 
92
111
  Where each file goes is read off the Rojo project — `default.project.json`
93
112
  beside the config, or the one `"rojo"` names — and the files require each
@@ -139,11 +158,11 @@ luau-lsp is MIT licensed. Its notice is in
139
158
  <!-- compatibility:start -->
140
159
  ## Compatibility
141
160
 
142
- `@tilua-types/roblox@10.0.0` works with these tilua packages. *Released with* is the
161
+ `@tilua-types/roblox@10.0.1` works with these tilua packages. *Released with* is the
143
162
  version it was built and tested against.
144
163
 
145
164
  | Package | Range | Released with | |
146
165
  | --- | --- | --- | --- |
147
- | `@tilua-types/luau` | `^9.0.0` | 9.0.0 | dependency |
148
- | `@tilua/parser` | `^9.0.0` | 9.0.0 | peer |
166
+ | `@tilua-types/luau` | `^9.0.1` | 9.0.1 | dependency |
167
+ | `@tilua/parser` | `^9.0.0` | 9.0.1 | peer |
149
168
  <!-- compatibility:end -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tilua-types/roblox",
3
- "version": "10.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "Luau and the whole Roblox API as tilua types: every class, enum, data type, service and global",
5
5
  "license": "ISC",
6
6
  "files": [
@@ -23,7 +23,7 @@
23
23
  }
24
24
  },
25
25
  "dependencies": {
26
- "@tilua-types/luau": "^9.0.0"
26
+ "@tilua-types/luau": "^9.0.1"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@tilua/parser": "^9.0.0"