lecodes-cli 0.1.0 → 0.1.2
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 +5 -2
- package/dist/index.js +510 -46
- package/package.json +18 -2
- package/runtime/gl-matrix/common.js +54 -0
- package/runtime/gl-matrix/header.js +12 -0
- package/runtime/gl-matrix/index.js +11 -0
- package/runtime/gl-matrix/mat2.js +425 -0
- package/runtime/gl-matrix/mat2d.js +476 -0
- package/runtime/gl-matrix/mat3.js +765 -0
- package/runtime/gl-matrix/mat4.js +1947 -0
- package/runtime/gl-matrix/quat.js +737 -0
- package/runtime/gl-matrix/quat2.js +822 -0
- package/runtime/gl-matrix/vec2.js +620 -0
- package/runtime/gl-matrix/vec3.js +791 -0
- package/runtime/gl-matrix/vec4.js +652 -0
- package/runtime/worker/animate.js +304 -0
- package/runtime/worker/chunk-4ZN32GYS.js +34 -0
- package/runtime/worker/chunk-G5ZA3LKB.js +52 -0
- package/runtime/worker/chunk-MI3UXE5H.js +1395 -0
- package/runtime/worker/creator.js +930 -0
- package/runtime/worker/globals.js +208 -0
- package/runtime/worker/ui.js +763 -0
- package/runtime/worker/utils.js +16 -0
package/README.md
CHANGED
|
@@ -16,23 +16,26 @@ npx lecodes-cli <command>
|
|
|
16
16
|
## Quick start
|
|
17
17
|
|
|
18
18
|
```sh
|
|
19
|
-
lecodes login #
|
|
19
|
+
lecodes login # opens the browser to authorize this machine
|
|
20
20
|
lecodes clone <project-uuid> myapp # download files + types into ./myapp
|
|
21
21
|
cd myapp
|
|
22
22
|
# …edit files in VS Code (IntelliSense works out of the box)…
|
|
23
23
|
lecodes status # see what changed
|
|
24
24
|
lecodes push -m "Tweak the menu" # push as a new checkpoint
|
|
25
|
+
lecodes preview > app.js # compile the local project to JS
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
## Commands
|
|
28
29
|
|
|
29
30
|
| Command | What it does |
|
|
30
31
|
| --- | --- |
|
|
31
|
-
| `login` |
|
|
32
|
+
| `login` | Authorize in the browser; stores an access token in `~/.lecodes/config.json`. `--token <pat>` to use a token created in the web UI instead, `--api <url>` for the API origin (default `https://le.codes`), `--web <url>` for the app origin. |
|
|
32
33
|
| `clone <uuid\|url> [dir]` | Download a project's file tree + binary resources, plus `.d.ts` types and a `tsconfig.json` for IntelliSense. `--no-types` to skip types. |
|
|
33
34
|
| `status` | Show added / modified / moved / deleted files vs the last sync. |
|
|
34
35
|
| `pull` | Overwrite local files with the project's current remote state. `--force` to discard local edits. |
|
|
35
36
|
| `push` | Push all local changes as **one** new checkpoint. `-m`/`--message` for the message, `--force` to override the "server moved on" guard. |
|
|
37
|
+
| `preview` | Compile the local project to a single JS bundle, printed to **stdout** (pipeable). `-o`/`--out <file>` to write a file, `--entry <path>` to override the entrypoint, `--no-header` to omit the metadata header, `--public-url <url>` for the asset URL prefix. Diagnostics go to stderr. |
|
|
38
|
+
| `render` | Render the local **UI** project. By default emits a semantic JSON description (great for AI/automated checks) to stdout or `-o`/`--out <file>`; `--png [file]` rasterizes a PNG (default `screenshot.png`, `--scale <n>` for DPR). `--width`/`--height` set the viewport (default 390×844). Requires the optional `lecodes-render` package (`npm i -D lecodes-render`); PNG also needs `@napi-rs/canvas`. 3D scenes aren't rendered. |
|
|
36
39
|
|
|
37
40
|
## How it works
|
|
38
41
|
|