@thigasdevelopment/luam 0.10.5 → 0.11.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.
- package/README.md +10 -4
- package/luam.mjs +4164 -3567
- package/package.json +1 -1
- package/template/luam.manifest +15 -2
package/README.md
CHANGED
|
@@ -419,13 +419,17 @@ Only `name` is required.
|
|
|
419
419
|
| --- | --- | --- |
|
|
420
420
|
| `name` | required | Names the output folder and the resource `ensure` restarts. MTA reads the resource name from the folder, so it never reaches `meta.xml` |
|
|
421
421
|
| `author`, `version`, `description` | unset | `meta.xml` info attributes |
|
|
422
|
-
| `
|
|
423
|
-
| `
|
|
422
|
+
| `compilerOptions` | `strict` on, the rest off | How the checker reads the project: `strict`, `oop`, `noUnusedLocals`, `noUnusedParameters`, `warningsAsErrors` |
|
|
423
|
+
| `sources` | `src/<side>/**/*.luam` | Patterns per side. The side that matches a file is its environment, unless a directive overrides it |
|
|
424
|
+
| `assets` | `{ }` | `{ from, to }` mappings. Only what a mapping names is copied and declared `<file>` |
|
|
425
|
+
| `dependencies` | `{ }` | Resources written as `<include resource="..." />` |
|
|
426
|
+
| `engine.minVersion` | `"latest"` | Becomes `min_mta_version`. An explicit version keeps the build network-free |
|
|
427
|
+
| `environment` | `.env`, `.env.local` | Which files declare and override the keys behind `env` and `process.env` |
|
|
424
428
|
| `outDir` | `"build"` | Receives `<outDir>/<name>` |
|
|
425
429
|
| `loadOrder` | `[]` | Source paths pinned ahead of their group in `meta.xml`. An entry matching no file fails the build |
|
|
426
430
|
| `output.bundle` | `true` | Default `build` layout; command flags override it |
|
|
427
431
|
| `output.map` | `true` | Generate source position maps; only `build` writes one to disk |
|
|
428
|
-
| `
|
|
432
|
+
| `output.minify` | `true` | Write each generated script on one line during `build`; `dev` and `ensure` never minify |
|
|
429
433
|
| `helpers` | `[]` | Runtime helpers to copy even when no feature requires them |
|
|
430
434
|
| `serverPath` | unset | MTA server root, for `ensure` |
|
|
431
435
|
| `resourcesDir` | `"mods/deathmatch/resources"` | Resource directory relative to `serverPath` |
|
|
@@ -433,7 +437,9 @@ Only `name` is required.
|
|
|
433
437
|
| `development.logs` | disabled, safe limits | Client relay message length and rate limits used by `dev` |
|
|
434
438
|
|
|
435
439
|
Paths must stay inside their base directory — an absolute path or a `..` segment
|
|
436
|
-
is rejected.
|
|
440
|
+
is rejected. A pattern accepts `*`, `**`, and `?` only. `oop`, `sourceDirs`,
|
|
441
|
+
`assetDirs`, and `mta` were removed; each reports `config-removed-field` and
|
|
442
|
+
names its replacement.
|
|
437
443
|
|
|
438
444
|
Every field, the transport in detail, `.env` handling and declaration files:
|
|
439
445
|
**[.luam.manifest](https://thigasdevelopment.github.io/luam/en/tooling/luam-manifest)**
|