@moku-labs/game 0.15.86 → 0.15.87
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 +4 -3
- package/dist/app/page.d.mts +1 -1
- package/dist/app/page.mjs +2 -2
- package/dist/app/system.d.mts +1 -1
- package/dist/app.d.mts +1 -1
- package/dist/cli.mjs +351 -83
- package/dist/{commands-CeBF2nRY.d.mts → commands-DxUF13zr.d.mts} +1 -1
- package/dist/{config-Cn1VZ-tx.mjs → config-BYx_7HL1.mjs} +24 -5
- package/dist/control.d.mts +11 -7
- package/dist/control.mjs +2 -2
- package/dist/{define-N-2nQNK_.d.mts → define-CMl6NcM4.d.mts} +26 -4
- package/dist/inspect.d.mts +2 -2
- package/dist/inspect.mjs +2 -2
- package/dist/{run-3QhrffgM.mjs → run-B5if0jxE.mjs} +1 -1
- package/dist/{session-DuZfGZWk.mjs → session-D0AYRm5T.mjs} +39 -3
- package/dist/{sources-Djd8MjP9.mjs → sources-CyltHb9o.mjs} +1 -1
- package/dist/testing.d.mts +1 -1
- package/dist/{types-DNWWlVky.d.mts → types-BpipkaVe.d.mts} +39 -9
- package/dist/{types-CyPbo757.d.mts → types-OKAnpylW.d.mts} +11 -1
- package/dist/{visual-Di8ecxYD.d.mts → visual-CMnWgCkh.d.mts} +2 -2
- package/dist/visual.d.mts +1 -1
- package/dist/visual.mjs +2 -2
- package/llms.txt +6 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -164,17 +164,18 @@ The engine bin `moku-game` serves, builds and packs a game folder. A game writes
|
|
|
164
164
|
|---|---|
|
|
165
165
|
| `moku-game dev [--port 3000] [--packed]` | Serves the game with hot reload. Prints the bound URL, also for `--port 0`. On the raw files it runs the scan of `keys` at start and on a save of an asset or a strings file. Restarts its server when the installed engine changes |
|
|
166
166
|
| `moku-game build [--out dist/web] [--debug[=full] [--editor host:port]]` | Packs the assets and builds the page; `--debug` adds the editor's page agent (read and cosmetic commands), `--debug=full` every command; `--editor` names where the agent finds the editor (default `127.0.0.1:47600`). A debug page is never shipped: a release page that carries the agent is refused |
|
|
167
|
-
| `moku-game native build <target> [--simulator] [--debug[=full] [--editor host:port]]` | Builds the native app: `ios`, `macos`, `android`; `--debug` builds an Android debug app beside the store app |
|
|
167
|
+
| `moku-game native build <target> [--simulator] [--debug[=full] [--editor host:port]]` | Builds the native app: `ios`, `macos`, `android`; `--debug` builds an Android or iOS debug app beside the store app |
|
|
168
168
|
| `moku-game native build <target> --store --build-number <n>` | A store build: an `.aab` on `android`, an `.ipa` for App Store Connect on `ios`. The version comes from `package.json`, the signing from `native.signing`. Everything wrong is refused at once, before anything compiles |
|
|
169
|
+
| `moku-game native build <target> --store --dev --build-number <n>` | The test app of `native.dev`: store-signed, under its own `.dev` id, with the overlay and no editor link, in `dist-native-dev` |
|
|
169
170
|
| `moku-game native dev <target>` | Runs the native shell on the dev server |
|
|
170
|
-
| `moku-game native doctor`, `native clean` | Checks or removes the native project |
|
|
171
|
+
| `moku-game native doctor`, `native clean` | Checks or removes the native project; `clean` also the test and iOS debug projects |
|
|
171
172
|
| `moku-game keys [--check]` | Writes `generated/assets.ts`, the strings and `generated/manifest.json` |
|
|
172
173
|
| `moku-game pack [--no-cache]` | Packs the assets into `dist/assets` |
|
|
173
174
|
| `moku-game visual [--update] [--only <name>] [--no-pixels]` | Runs the visual tests of `tests/visual/index.ts` against `tests/visual/baselines/`. The pixel leg runs on a Mac, on a page served for the run. Exit 1 when a checkpoint differs |
|
|
174
175
|
|
|
175
176
|
Every command takes `--root <dir>`, `--preload <path>` and `--serve-plugin <path>`.
|
|
176
177
|
|
|
177
|
-
`config.ts` names the system plugins the page wires, `system: ["lifecycle", "back", "haptics", "keepAwake"]`, and the save, `save: "memory" | "local" | "store"`. A `system` list and the `"store"` save need the optional peer `@moku-labs/system`; `moku-game native` needs `@moku-labs/native`. The game imports neither. The `native` keys are `name`, `identifier`, `icon`, `targets`, `signing` (`android`, `apple`: env var names and identifiers, never a secret)
|
|
178
|
+
`config.ts` names the system plugins the page wires, `system: ["lifecycle", "back", "haptics", "keepAwake"]`, and the save, `save: "memory" | "local" | "store"`. A `system` list and the `"store"` save need the optional peer `@moku-labs/system`; `moku-game native` needs `@moku-labs/native`. The game imports neither. The `native` keys are `name`, `identifier`, `icon`, `targets`, `signing` (`android`, `apple`: env var names and identifiers, never a secret), `ios` (`minimumVersion`, `"26.0"` by default, `infoPlist`, `privacyManifest`) and `dev` (`identifier`, ending in `.dev`, `name`, `icon`: the test app of `--store --dev`). The whole shell is in [docs/shell.md](./docs/shell.md).
|
|
178
179
|
|
|
179
180
|
## How it works
|
|
180
181
|
|
package/dist/app/page.d.mts
CHANGED
package/dist/app/page.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { r as systemSource, t as memory } from "../memory-CWlqhS7l.mjs";
|
|
|
2
2
|
import { t as applyTo } from "../drafts-BawpSaVp.mjs";
|
|
3
3
|
import { i as isControl } from "../dev-BNndV-hU.mjs";
|
|
4
4
|
import { n as fakeClock, t as VISUAL_CLOCK } from "../fake-hnJcJeYf.mjs";
|
|
5
|
-
import { n as read, r as watch, t as sources } from "../sources-
|
|
6
|
-
import {
|
|
5
|
+
import { n as read, r as watch, t as sources } from "../sources-CyltHb9o.mjs";
|
|
6
|
+
import { n as resolveConfig } from "../config-BYx_7HL1.mjs";
|
|
7
7
|
//#region src/app/boot.ts
|
|
8
8
|
/** How long after the fade the timer removes a picture whose transition never ended, ms. */
|
|
9
9
|
const FALLBACK_MS = 100;
|
package/dist/app/system.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ur as PlayerStateProvider } from "../types-CbVXXqPs.mjs";
|
|
2
2
|
import { ht as PlatformProvider } from "../index-Bn0pFiae.mjs";
|
|
3
|
-
import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-
|
|
3
|
+
import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-OKAnpylW.mjs";
|
|
4
4
|
import { Back, Haptics, KeepAwake, Lifecycle, Store } from "@moku-labs/system";
|
|
5
5
|
|
|
6
6
|
//#region src/app/system.d.ts
|
package/dist/app.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Rr as Json } from "./types-CbVXXqPs.mjs";
|
|
2
2
|
import { U as StringTable } from "./types-OBpR0u05.mjs";
|
|
3
|
-
import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-
|
|
3
|
+
import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-OKAnpylW.mjs";
|
|
4
4
|
import { AnyPluginInstance } from "@moku-labs/core";
|
|
5
5
|
|
|
6
6
|
//#region src/app/define.d.ts
|