@stacksjs/defaults 0.70.252 → 0.70.253
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.
|
@@ -126,23 +126,26 @@ buddy dev -o/--docs # docs only
|
|
|
126
126
|
buddy dev -s/--system-tray # system tray only
|
|
127
127
|
buddy dev -i/--interactive # interactive server selection menu
|
|
128
128
|
buddy dev -l/--with-localhost # include localhost URL in output
|
|
129
|
+
buddy dev --browser # open the browser app instead of a configured native window
|
|
129
130
|
buddy dev --site # open the marketing site instead of the detected app entry
|
|
130
131
|
buddy dev -p/--project [name]
|
|
131
132
|
buddy dev --verbose
|
|
132
133
|
```
|
|
133
134
|
|
|
134
135
|
When `config/app.ts` defines `appPath` (for example, `/dashboard`), plain
|
|
135
|
-
`buddy dev` treats it as the primary application URL
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
the marketing homepage for that session.
|
|
139
|
-
|
|
136
|
+
`buddy dev` treats it as the primary application URL. Set `devLaunch: 'native'`
|
|
137
|
+
for a desktop app to open that URL in a Craft window by default. Use
|
|
138
|
+
`buddy dev --browser` to open the application in a browser or `buddy dev --site`
|
|
139
|
+
to force the marketing homepage for that session. Without `appPath`, Buddy
|
|
140
|
+
detects common application views and falls back to `/` for site-only projects.
|
|
141
|
+
Set `STACKS_DEV_NO_OPEN=1` when the browser should remain closed.
|
|
140
142
|
|
|
141
143
|
Sub-commands with aliases:
|
|
142
144
|
```bash
|
|
143
145
|
buddy dev:components # component library dev server
|
|
144
146
|
buddy dev:docs # documentation dev server
|
|
145
147
|
buddy dev:desktop # desktop app dev server
|
|
148
|
+
buddy dev:native # equivalent native desktop app flow
|
|
146
149
|
buddy dev:api # API dev server
|
|
147
150
|
buddy dev:frontend # frontend dev server (aliases: dev:pages, dev:views)
|
|
148
151
|
buddy dev:dashboard # dashboard dev server (alias: dev:admin)
|
|
@@ -79,6 +79,8 @@ buddy/src/commands/
|
|
|
79
79
|
- `buddy dev` -- Start ALL dev servers in parallel (frontend, API, docs, dashboard + reverse proxy if custom domain)
|
|
80
80
|
- `buddy dev [server]` -- Start a specific server: `frontend`, `api`, `components`, `dashboard`, `desktop`, `system-tray`, `docs`
|
|
81
81
|
- `buddy dev -i` / `--interactive` -- Interactive prompt to choose which server to start
|
|
82
|
+
- `buddy dev --browser` -- Override a configured native launch and open the browser app
|
|
83
|
+
- `buddy dev --site` -- Open the marketing site instead of the app or native window
|
|
82
84
|
- `buddy dev --verbose` -- Show detailed output including proxy info and dependency logs
|
|
83
85
|
- `buddy dev:frontend` (aliases: `dev:pages`, `dev:views`) -- Frontend only
|
|
84
86
|
- `buddy dev:api` -- API server only
|
|
@@ -86,6 +88,7 @@ buddy/src/commands/
|
|
|
86
88
|
- `buddy dev:docs` -- Documentation server only
|
|
87
89
|
- `buddy dev:components` -- Vue component library dev server
|
|
88
90
|
- `buddy dev:desktop` -- Desktop app dev server
|
|
91
|
+
- `buddy dev:native` -- Equivalent native app development flow
|
|
89
92
|
- `buddy dev:system-tray` (alias: `dev:tray`) -- System tray dev server
|
|
90
93
|
|
|
91
94
|
### Build Commands
|
|
@@ -111,17 +114,18 @@ buddy/src/commands/
|
|
|
111
114
|
|
|
112
115
|
### Unified Dev Server (`buddy dev` with no arguments)
|
|
113
116
|
When `buddy dev` runs without a specific server flag, `startDevelopmentServer()` in `dev.ts`:
|
|
114
|
-
1. Reads
|
|
115
|
-
2.
|
|
116
|
-
3.
|
|
117
|
-
4.
|
|
118
|
-
5.
|
|
117
|
+
1. Reads `config/app.ts` `devLaunch`; `native` opens `appPath` in Craft, while `browser` keeps the browser default
|
|
118
|
+
2. Reads port configuration from env vars (`PORT`, `PORT_API`, `PORT_DOCS`, `PORT_ADMIN`)
|
|
119
|
+
3. Detects custom domain from `APP_URL` (e.g., `stacks.localhost`)
|
|
120
|
+
4. Prints Vite-style banner with URLs for Frontend, API, Docs, Dashboard
|
|
121
|
+
5. Sets `STACKS_PROXY_MANAGED=1` to prevent subprocesses from starting their own proxies
|
|
122
|
+
6. Starts all servers in parallel via `Promise.all()`:
|
|
119
123
|
- `runFrontendDevServer()` -- STX template server on port 3000
|
|
120
124
|
- `runApiDevServer()` -- bun-router API on port 3008
|
|
121
125
|
- `runDocsDevServer()` -- bunpress docs on port 3006
|
|
122
126
|
- `runDashboardDevServer()` -- STX + Craft native window on port 3002
|
|
123
127
|
- `startReverseProxy()` -- rpx HTTPS proxy on port 443 (only if custom domain set)
|
|
124
|
-
|
|
128
|
+
7. Registers SIGINT/SIGTERM handlers that `SIGKILL` the entire process group
|
|
125
129
|
|
|
126
130
|
### Action Execution (`runAction` in helpers/utils.ts)
|
|
127
131
|
- Dev actions (paths starting with `dev/`) automatically get `--watch` flag via `bun --watch`
|
package/ide/vscode/package.json
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.70.
|
|
5
|
+
"version": "0.70.253",
|
|
6
6
|
"description": "The complete managed Stacks application scaffold, including runtime defaults, AI guidance, editor metadata, and npm-backed project support files.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|