dewctl 0.5.1 → 0.5.3
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 +1 -1
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
|
@@ -158,7 +158,7 @@ export async function build(project, signal) {
|
|
|
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
160
|
// The SDK a new game depends on, and this CLI, at its own version.
|
|
161
|
-
const SDK_RANGE='^0.
|
|
161
|
+
const SDK_RANGE='^0.4.0';
|
|
162
162
|
const CLI_RANGE=`^${JSON.parse(readFileSync(new URL('../package.json',import.meta.url),'utf8')).version}`;
|
|
163
163
|
// A game name from the project directory, or a random one when the directory name yields nothing usable.
|
|
164
164
|
function gameNameFrom(root) {
|