create-zoijs 0.1.1 → 0.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to `create-zoijs` are documented here.
4
4
 
5
+ ## 0.1.2 — 2026-06-26
6
+
7
+ Dev-server output polish. No CLI API changes; same zero-dependency server on the
8
+ same ports.
9
+
10
+ - **Cleaner banner:** `npm run dev` now prints a tidy banner with the local URL
11
+ on its own line, and only mentions fallback ports when one was actually busy:
12
+
13
+ ```text
14
+ Zoijs dev server
15
+
16
+ - Local: http://localhost:7310
17
+ ```
18
+
19
+ (Previously a single `ZoiJS dev server: http://localhost:7310` line plus a
20
+ static `If busy: …` note.) Plain ASCII so it renders cleanly in every terminal,
21
+ including the Windows console. Brand casing normalized to **Zoijs**. Still port
22
+ **7310** with **7311 / 7312 / 7313** fallbacks; still Node built-ins only.
23
+
5
24
  ## 0.1.1 — 2026-06-25
6
25
 
7
26
  Starter polish. No CLI API changes.
package/README.md CHANGED
@@ -24,10 +24,13 @@ npm run dev
24
24
  bundler, no build step):
25
25
 
26
26
  ```text
27
- ZoiJS dev server: http://localhost:7310
28
- If busy: 7311, 7312, 7313
27
+ Zoijs dev server
28
+
29
+ - Local: http://localhost:7310
29
30
  ```
30
31
 
32
+ (It falls back to 7311–7313 if the port is busy.)
33
+
31
34
  Or with `npx`:
32
35
 
33
36
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-zoijs",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Create a new Zoijs app with one command. Plain HTML, CSS, and JavaScript — no build step.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -11,11 +11,12 @@ npm run dev
11
11
  ```
12
12
 
13
13
  ```text
14
- ZoiJS dev server: http://localhost:7310
15
- If busy: 7311, 7312, 7313
14
+ Zoijs dev server
15
+
16
+ - Local: http://localhost:7310
16
17
  ```
17
18
 
18
- Open the printed URL.
19
+ Open the printed URL (it falls back to 7311–7313 if the port is busy).
19
20
 
20
21
  ## Project layout
21
22
 
@@ -61,7 +61,10 @@ function start(i = 0) {
61
61
  };
62
62
  const onListening = () => {
63
63
  server.removeListener("error", onError);
64
- console.log(`\nZoiJS dev server: http://localhost:${PORTS[i]}\n`);
64
+ const lines = ["", " Zoijs dev server", "", ` - Local: http://localhost:${PORTS[i]}`];
65
+ if (i > 0) lines.push(` (ports ${PORTS.slice(0, i).join(", ")} were busy)`);
66
+ lines.push("");
67
+ console.log(lines.join("\n"));
65
68
  };
66
69
  server.once("error", onError);
67
70
  server.once("listening", onListening);
@@ -10,11 +10,12 @@ npm run dev
10
10
  ```
11
11
 
12
12
  ```text
13
- ZoiJS dev server: http://localhost:7310
14
- If busy: 7311, 7312, 7313
13
+ Zoijs dev server
14
+
15
+ - Local: http://localhost:7310
15
16
  ```
16
17
 
17
- Open the printed URL.
18
+ Open the printed URL (it falls back to 7311–7313 if the port is busy).
18
19
 
19
20
  ## How it works
20
21
 
@@ -61,7 +61,10 @@ function start(i = 0) {
61
61
  };
62
62
  const onListening = () => {
63
63
  server.removeListener("error", onError);
64
- console.log(`\nZoiJS dev server: http://localhost:${PORTS[i]}\n`);
64
+ const lines = ["", " Zoijs dev server", "", ` - Local: http://localhost:${PORTS[i]}`];
65
+ if (i > 0) lines.push(` (ports ${PORTS.slice(0, i).join(", ")} were busy)`);
66
+ lines.push("");
67
+ console.log(lines.join("\n"));
65
68
  };
66
69
  server.once("error", onError);
67
70
  server.once("listening", onListening);