ompchamber 3.1.0 → 3.1.1
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 +6 -3
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +138 -138
- package/dist/client/static/js/index-5yfre1kw.css +1 -0
- package/dist/client/static/js/{index-8t70jhyj.js → index-qhzsybkn.js} +1 -1
- package/package.json +1 -1
- package/src/cli/lib/args.js +4 -3
- package/src/cli/lib/commands/restart.js +7 -6
- package/src/cli/lib/commands/stop.js +38 -31
- package/src/cli/lib/commands/update.js +3 -2
- package/src/cli/lib/stop-scope.js +23 -0
- package/src/cli/lib/stop-scope.test.js +41 -0
- package/src/server/lib/bundler/css.test.ts +87 -0
- package/src/server/lib/bundler/css.ts +17 -2
- package/src/server/lib/bundler/nested-at-rules.test.ts +100 -0
- package/src/server/lib/bundler/nested-at-rules.ts +146 -0
- package/src/server/lib/lifecycle/launch-mode.test.ts +20 -1
- package/src/server/lib/lifecycle/launch-mode.ts +26 -0
- package/src/server/lib/lifecycle/restart.ts +9 -14
- package/dist/client/static/js/index-n4wkqj7t.css +0 -1
- package/src/server/lib/lifecycle/restart.test.ts +0 -21
package/README.md
CHANGED
|
@@ -149,7 +149,7 @@ instance serving that console.
|
|
|
149
149
|
|---|---|
|
|
150
150
|
| `serve` | Start the web server (daemon by default) |
|
|
151
151
|
| `update` | Install the latest GitHub release, then restart the instance it started |
|
|
152
|
-
| `stop` | Stop the
|
|
152
|
+
| `stop` | Stop the instances the CLI started — `--port`/`--all` to stop any |
|
|
153
153
|
| `restart` | Stop, then start again — leaving servers started from source alone |
|
|
154
154
|
| `status` | Report whether an instance is running |
|
|
155
155
|
| `logs` | Print or follow the server log |
|
|
@@ -185,8 +185,11 @@ PORT=3001 bun run dev # or: PORT=3001 bun run start
|
|
|
185
185
|
prints the `lsof -nP -iTCP:<port> -sTCP:LISTEN` command to identify it.
|
|
186
186
|
- `bun run dev` hot reload is unaffected: `--hot` re-evaluates the entry inside the running
|
|
187
187
|
process, and a port held by that process is recognized as its own.
|
|
188
|
-
- `status
|
|
189
|
-
|
|
188
|
+
- `status` and `logs` report **every** live instance by default; `--port <port>` narrows them to one.
|
|
189
|
+
`stop` acts on the instances the CLI started, and `restart`/`update` skip the rest: `bun run dev`
|
|
190
|
+
is a supervisor whose only job is to mirror the script under it, so stopping that server exits
|
|
191
|
+
the dev loop with it. Name the instance — `ompchamber stop --port <port>`, or `--all` — to end
|
|
192
|
+
one anyway.
|
|
190
193
|
|
|
191
194
|
The server writes `~/.ompchamber/run/<port>.json` (`pid`, `host`, `mode`, `launchMode`, `startedAt`)
|
|
192
195
|
once it owns the port, which is how `status`/`stop`/`logs` also see servers started by `bun run dev`
|
package/dist/client/index.html
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
|
|
34
34
|
/>
|
|
35
35
|
<!--app-head-->
|
|
36
|
-
<link rel="stylesheet" crossorigin href="./static/js/index-
|
|
36
|
+
<link rel="stylesheet" crossorigin href="./static/js/index-5yfre1kw.css"><script type="module" crossorigin src="./static/js/index-qhzsybkn.js"></script></head>
|
|
37
37
|
<body>
|
|
38
38
|
<div id="app"></div>
|
|
39
39
|
<!--app-bootstrap-->
|