wmdev 0.2.3 → 0.4.0
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 +10 -3
- package/backend/dist/server.js +562 -57
- package/bin/wmdev.js +3 -3
- package/frontend/dist/assets/index-CG4MlxVZ.js +32 -0
- package/frontend/dist/assets/index-CNiZYPjy.css +32 -0
- package/frontend/dist/index.html +7 -2
- package/package.json +3 -4
- package/frontend/dist/assets/index-CRpS9q83.js +0 -25
- package/frontend/dist/assets/index-Cy7rpGPt.css +0 -32
package/bin/wmdev.js
CHANGED
|
@@ -19,14 +19,14 @@ Usage:
|
|
|
19
19
|
wmdev --help Show this help message
|
|
20
20
|
|
|
21
21
|
Environment:
|
|
22
|
-
|
|
22
|
+
BACKEND_PORT Same as --port (flag takes precedence)
|
|
23
23
|
`);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// ── Parse args ───────────────────────────────────────────────────────────────
|
|
27
27
|
|
|
28
28
|
const args = process.argv.slice(2);
|
|
29
|
-
let port = parseInt(process.env.
|
|
29
|
+
let port = parseInt(process.env.BACKEND_PORT || "5111");
|
|
30
30
|
let debug = false;
|
|
31
31
|
|
|
32
32
|
for (let i = 0; i < args.length; i++) {
|
|
@@ -75,7 +75,7 @@ await loadEnvFile(resolve(process.cwd(), ".env"));
|
|
|
75
75
|
|
|
76
76
|
// ── Shared env for child processes ───────────────────────────────────────────
|
|
77
77
|
|
|
78
|
-
const baseEnv = { ...process.env,
|
|
78
|
+
const baseEnv = { ...process.env, BACKEND_PORT: String(port), WMDEV_PROJECT_DIR: process.cwd(), ...(debug ? { WMDEV_DEBUG: "1" } : {}) };
|
|
79
79
|
|
|
80
80
|
// ── Prefixed output ──────────────────────────────────────────────────────────
|
|
81
81
|
|