@laot/bridge 1.2.7 → 1.3.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 +7 -6
- package/dist/ltbridge.js +88 -79
- package/dist/modules.dat +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,17 +59,19 @@ When you run `init`, LTBridge creates a simple JSON config.
|
|
|
59
59
|
|
|
60
60
|
| Setting | Default | Description |
|
|
61
61
|
| --- | --- | --- |
|
|
62
|
-
| `buildAsBundle`|
|
|
63
|
-
| `debug` | `
|
|
64
|
-
| `minify` | `
|
|
65
|
-
| `modules` | `[]` | List of installed modules. The tool manages this automatically
|
|
62
|
+
| `buildAsBundle`| chosen at `init` | Combine everything into 3 clean files (`shared`, `client`, `server`). Set to `true` for bundle mode. |
|
|
63
|
+
| `debug` | chosen at `init` | Turn this on if you want to see internal debug prints from the modules. |
|
|
64
|
+
| `minify` | chosen at `init` | Enables code optimization and global variable randomization for maximum performance. |
|
|
65
|
+
| `modules` | `[]` | List of installed modules. The tool manages this automatically. |
|
|
66
|
+
|
|
67
|
+
When you run `init`, LTBridge walks you through bundle mode, minify, and debug options interactively.
|
|
66
68
|
|
|
67
69
|
## 🛠️ Commands
|
|
68
70
|
|
|
69
71
|
| Command | Alias | Description |
|
|
70
72
|
| --- | --- | --- |
|
|
71
73
|
| `ltbridge` | - | **Interactive Menu**: Manage your modules visually. |
|
|
72
|
-
| `ltbridge init` | - | Set up LTBridge in a new project (
|
|
74
|
+
| `ltbridge init` | - | Set up LTBridge in a new project (interactive prompts, then initial build). |
|
|
73
75
|
| `ltbridge api` | - | Regenerate `ltbridge/api.lua` IDE stubs only. |
|
|
74
76
|
| `ltbridge build` | `sync` | Build the project manually (use `-w` for live auto-build). |
|
|
75
77
|
| `ltbridge add <name>` | - | Add a specific module manually (e.g., `Target/*`). |
|
|
@@ -96,7 +98,6 @@ If you are developing modules, you can use special comments to tell the compiler
|
|
|
96
98
|
- `--- @ltbridge export: CustomName` - Change the exported name of the function.
|
|
97
99
|
- `--- @ltbridge alias: AnotherName` - Create an alternative name for the same function.
|
|
98
100
|
- `--- @ltbridge global` - Expose the function directly to the root `LT` object (e.g., `LT.SetResource`).
|
|
99
|
-
- `--- @ltbridge internal` - Marks the module as a "Ghost Module". It runs silently in the background when needed, but doesn't show up in the API or menus.
|
|
100
101
|
|
|
101
102
|
## 🙏 Credits
|
|
102
103
|
|