dewctl 0.5.2 → 0.5.4
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 +2 -18
- package/package.json +1 -1
- package/src/project.js +3 -2
package/README.md
CHANGED
|
@@ -3,24 +3,8 @@
|
|
|
3
3
|
The Dewdrop CLI builds your three.js game, uploads it to Dewdrop as you work,
|
|
4
4
|
and publishes it for players.
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
In a new, empty folder, with Node.js 24 or newer:
|
|
9
|
-
|
|
10
|
-
```sh
|
|
11
|
-
npx dewctl init
|
|
12
|
-
npm install
|
|
13
|
-
npx dewctl login
|
|
14
|
-
npx dewctl dev --watch
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
`dev --watch` prints a link to play your game and uploads it again each time
|
|
18
|
-
you save. When it's ready, `npx dewctl publish` puts it in front of players.
|
|
19
|
-
|
|
20
|
-
## Docs
|
|
21
|
-
|
|
22
|
-
The development flow, every command, `dewdrop.json` and troubleshooting are in
|
|
23
|
-
the docs: https://alpha.dewdrop.world/docs
|
|
6
|
+
Getting started, every command, `dewdrop.json` and troubleshooting are in the
|
|
7
|
+
docs: https://alpha.dewdrop.world/docs
|
|
24
8
|
|
|
25
9
|
## License
|
|
26
10
|
|
package/package.json
CHANGED
package/src/project.js
CHANGED
|
@@ -157,8 +157,9 @@ export async function build(project, signal) {
|
|
|
157
157
|
// starter game, depending on the SDK and this CLI from npm; one holding any of them has a game of its own and gets
|
|
158
158
|
// dewdrop.json alone, so nothing of it is touched and no starter is left half written.
|
|
159
159
|
const STARTER_FILES=['package.json','src','index.html','vite.config.js'];
|
|
160
|
-
// The SDK a new game depends on
|
|
161
|
-
|
|
160
|
+
// The SDK a new game depends on — the range moves with the SDK's minor, since a caret on 0.x stays within one —
|
|
161
|
+
// and this CLI, at its own version.
|
|
162
|
+
const SDK_RANGE='^0.5.1';
|
|
162
163
|
const CLI_RANGE=`^${JSON.parse(readFileSync(new URL('../package.json',import.meta.url),'utf8')).version}`;
|
|
163
164
|
// A game name from the project directory, or a random one when the directory name yields nothing usable.
|
|
164
165
|
function gameNameFrom(root) {
|