@junejs/cli 0.1.0-dev.4 → 0.1.0-dev.5
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 +1 -1
- package/dist/cli.js +3 -2
- package/package.json +3 -3
- package/src/cli.ts +3 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ cd my-app && npm run dev
|
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
june dev # dev server with watch + browser live-reload (--no-watch, --port)
|
|
12
|
+
june dev # dev server with watch + browser live-reload (--no-watch, --port, --host)
|
|
13
13
|
june build # Cloudflare Workers bundle: dist/worker.js + prerendered assets
|
|
14
14
|
june deploy # build + wrangler upload (--dry-run validates only)
|
|
15
15
|
june gen # freeze content/**/*.md → app/_content.ts
|
package/dist/cli.js
CHANGED
|
@@ -28,7 +28,7 @@ const HELP = `june — the agent-native React framework
|
|
|
28
28
|
Usage: june <command> [dir] [options]
|
|
29
29
|
|
|
30
30
|
Commands:
|
|
31
|
-
dev Start the dev server --port <n> --no-watch
|
|
31
|
+
dev Start the dev server --port <n> --host [addr] --no-watch
|
|
32
32
|
build Build a workerd-ready bundle --out <dir>
|
|
33
33
|
deploy Build + deploy (workers/vercel) --dry-run --prod --skip-migrate --allow-destructive
|
|
34
34
|
gen Freeze content + agent module --check
|
|
@@ -88,7 +88,8 @@ async function run(argv) {
|
|
|
88
88
|
const { startDevServer } = await import("@junejs/server");
|
|
89
89
|
await startDevServer({
|
|
90
90
|
appDir: join(root, "app"),
|
|
91
|
-
port: flags.port ? Number(flags.port) : 3e3
|
|
91
|
+
port: flags.port ? Number(flags.port) : 3e3,
|
|
92
|
+
...flags.host ? { hostname: flags.host === true ? "0.0.0.0" : flags.host } : {}
|
|
92
93
|
});
|
|
93
94
|
return;
|
|
94
95
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junejs/cli",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.5",
|
|
4
4
|
"description": "The `june` CLI — dev / build / deploy / gen / info. A thin bin over @junejs/server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"build": "tsdown"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@junejs/core": ">=0.2.0-dev.
|
|
31
|
-
"@junejs/server": ">=1.0.0-dev.
|
|
30
|
+
"@junejs/core": ">=0.2.0-dev.65",
|
|
31
|
+
"@junejs/server": ">=1.0.0-dev.45"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|
package/src/cli.ts
CHANGED
|
@@ -40,7 +40,7 @@ const HELP = `june — the agent-native React framework
|
|
|
40
40
|
Usage: june <command> [dir] [options]
|
|
41
41
|
|
|
42
42
|
Commands:
|
|
43
|
-
dev Start the dev server --port <n> --no-watch
|
|
43
|
+
dev Start the dev server --port <n> --host [addr] --no-watch
|
|
44
44
|
build Build a workerd-ready bundle --out <dir>
|
|
45
45
|
deploy Build + deploy (workers/vercel) --dry-run --prod --skip-migrate --allow-destructive
|
|
46
46
|
gen Freeze content + agent module --check
|
|
@@ -118,6 +118,8 @@ export async function run(argv: string[]): Promise<number | undefined> {
|
|
|
118
118
|
await startDevServer({
|
|
119
119
|
appDir: join(root, "app"),
|
|
120
120
|
port: flags.port ? Number(flags.port) : 3000,
|
|
121
|
+
// Bound to 127.0.0.1 unless asked: a bare --host opens every interface.
|
|
122
|
+
...(flags.host ? { hostname: flags.host === true ? "0.0.0.0" : flags.host } : {}),
|
|
121
123
|
});
|
|
122
124
|
return undefined; // server keeps the process alive
|
|
123
125
|
}
|