@onceworlds/cli 0.12.0 → 0.14.0
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 +3 -3
- package/dist/cli.js +287 -83
- package/dist/emulator.js +1274 -333
- package/dist/sdk.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ players) with no server code.
|
|
|
7
7
|
## Deploy from GitHub Actions
|
|
8
8
|
|
|
9
9
|
Deploys run from GitHub Actions: GitHub vouches for the repo, so there are no API
|
|
10
|
-
keys. The easiest setup is to import the repo at https://onceworlds.com/
|
|
10
|
+
keys. The easiest setup is to import the repo at https://onceworlds.com/upload?new=github,
|
|
11
11
|
which adds `onceworlds.json` and `.github/workflows/onceworlds.yml` for you (that
|
|
12
12
|
workflow also builds with npm, pnpm, yarn or bun when there's a build script). To write
|
|
13
13
|
the same files into a folder before it is on GitHub, run `npx @onceworlds/cli init` there.
|
|
@@ -96,7 +96,7 @@ from the running game and commit them under `store/`. `onceworlds doctor` says w
|
|
|
96
96
|
whose idea, look and screens are never yours; it adds its own notes as `KIT.md` and its fingerprints as `.onceworlds/kit.json`,
|
|
97
97
|
so `check` can note what is still the kit's. `--template party` or `starter` starts from a complete game on the SDK, and
|
|
98
98
|
`--template <name>` from a scene project of Onceworlds Build.
|
|
99
|
-
- `onceworlds check [dir]` is what to run before a deploy, for any game (canvas, three.js, PixiJS, Phaser, the DOM, the engine):
|
|
99
|
+
- `onceworlds check [dir]` is what to run before a deploy, for any game (canvas, three.js, PixiJS, Phaser, the DOM, the engine, a Godot or Ren'Py web export):
|
|
100
100
|
doctor's findings, plus the hosts the platform's CSP won't let the game reach, WebSockets of its own, text too small for a phone,
|
|
101
101
|
a second countdown under the platform's lobby, shared state written from `Math.random()` or the device's clock, and a `DESIGN.md`
|
|
102
102
|
silent on originality and the first minute. Then it plays the game on the local platform (`serve`'s) in headless Chrome: it loads
|
|
@@ -123,7 +123,7 @@ from the running game and commit them under `store/`. `onceworlds doctor` says w
|
|
|
123
123
|
imports it (next to a `AGENTS.md` of your own it writes `ONCEWORLDS.md` and adds a pointer to yours). It never
|
|
124
124
|
overwrites a file you have: `--force` replaces only what init writes, never your own `AGENTS.md`, `CLAUDE.md` or `.gitignore`.
|
|
125
125
|
`onceworlds new` writes the same workflow and `.gitignore` into every game it makes.
|
|
126
|
-
Then commit, push, and import the repo at https://onceworlds.com/
|
|
126
|
+
Then commit, push, and import the repo at https://onceworlds.com/upload?new=github.
|
|
127
127
|
- `onceworlds deploy [dir]` uploads only the files that changed and publishes the game
|
|
128
128
|
(the workflow runs it). It lists every file it skipped because Onceworlds can't serve it. A game's tests never go up: `*.test.js`, `vitest.config.*` and the `test/` folder at the top of the game.
|
|
129
129
|
- `onceworlds serve [dir]` plays any game in your own browser on this computer, offline and with no login, on a local platform
|