create-volt 0.3.0 → 0.3.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 CHANGED
@@ -14,6 +14,9 @@ npx create-volt my-app
14
14
  pnpm create volt my-app
15
15
  yarn create volt my-app
16
16
  bun create volt my-app
17
+
18
+ # choose the dev port (default: derived from today's date)
19
+ npm create volt@latest my-app -- --port 26630
17
20
  ```
18
21
 
19
22
  Then:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-volt",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Scaffold a new Volt app — no-build, signals-based UI with Socket.io hot reload.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,6 +14,22 @@ npm run dev # → http://localhost:26628 (PORT env to override)
14
14
  Edit anything in `public/` or `views/` and save — the dev server pushes a
15
15
  reload over Socket.io and the page refreshes itself.
16
16
 
17
+ ## Dev port
18
+
19
+ This app's dev port is set in `server.js` (chosen when the project was
20
+ scaffolded). Override it at launch with the `PORT` env var:
21
+
22
+ ```bash
23
+ PORT=4000 npm run dev
24
+ ```
25
+
26
+ Scaffolding more apps? `create-volt` defaults each one's port to its creation
27
+ date and takes `--port <number>` to avoid collisions on the same day:
28
+
29
+ ```bash
30
+ npm create volt@latest api-app -- --port 26630
31
+ ```
32
+
17
33
  ## Project layout
18
34
 
19
35
  ```