@stacksjs/defaults 0.75.648 → 0.75.650
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.
|
@@ -137,12 +137,11 @@ Write `app/Desktop/launcher.ts` and `build:desktop` compiles that instead, the
|
|
|
137
137
|
same way anything under `app/` overrides its framework default. `DESKTOP_URL`
|
|
138
138
|
and `APP_URL` then become optional, because the launcher decides what to open.
|
|
139
139
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
your own with the same function rather than hand-written `bun build` flags.
|
|
140
|
+
Buddy builds a compact executable through `desktopLauncherCompileArgs()`
|
|
141
|
+
with minified JavaScript and one Bun runtime. The helper accepts
|
|
142
|
+
`bytecode: true` for a caller explicitly trading installed size for startup
|
|
143
|
+
time. Compile helpers with the same build options, or use subcommands to keep
|
|
144
|
+
one Bun executable in the app.
|
|
146
145
|
|
|
147
146
|
```ts
|
|
148
147
|
// app/Desktop/launcher.ts - compiled to Contents/MacOS/<AppName>
|
|
@@ -174,6 +173,37 @@ Two things follow from declaring your own launcher:
|
|
|
174
173
|
for `127.0.0.1` rather than `NSAllowsArbitraryLoads`, which would additionally
|
|
175
174
|
permit every unencrypted host on the internet.
|
|
176
175
|
|
|
176
|
+
### Building a local launcher
|
|
177
|
+
|
|
178
|
+
Declare the installed identity and packaged inputs for an
|
|
179
|
+
`app/Desktop/launcher.ts` project in `config/desktop.ts`:
|
|
180
|
+
|
|
181
|
+
```ts
|
|
182
|
+
import type { DesktopConfig } from '@stacksjs/types'
|
|
183
|
+
|
|
184
|
+
export default {
|
|
185
|
+
launcher: {
|
|
186
|
+
appName: 'Library',
|
|
187
|
+
bundleId: 'org.example.library',
|
|
188
|
+
views: { routes: ['/app'], clientScripts: 'resources/scripts' },
|
|
189
|
+
sqliteMigrations: true,
|
|
190
|
+
appStore: { networkServer: true, userSelectedFiles: true },
|
|
191
|
+
},
|
|
192
|
+
} satisfies DesktopConfig
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
`buddy build` compiles the executable, prerenders the declared routes, bundles
|
|
196
|
+
local assets, and stages fresh migrations inside the payload. On macOS it
|
|
197
|
+
also makes the `.app` and `.dmg`. Store packaging uses
|
|
198
|
+
`buddy desktop:apple:package` with Craft's App Store host and the launcher as
|
|
199
|
+
its inherited helper. The network server entitlement is for a launcher that
|
|
200
|
+
actually listens for the window's local requests.
|
|
201
|
+
|
|
202
|
+
`DESKTOP_BUN_EXECUTABLE` selects the runtime embedded by Bun's compiler.
|
|
203
|
+
For App Store distribution, preflight rejects executables dynamically linked
|
|
204
|
+
to Apple's system ICU library. Use a runtime linked to upstream ICU. The
|
|
205
|
+
regular development build can continue to use the installed Bun.
|
|
206
|
+
|
|
177
207
|
### Info.plist entries
|
|
178
208
|
|
|
179
209
|
`app/Desktop/Info.plist.json` is merged into the generated `Info.plist`. The
|
|
@@ -11,7 +11,7 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
|
|
|
11
11
|
| Package | Task guidance | Source entry | Retained tests |
|
|
12
12
|
|---|---|---|---|
|
|
13
13
|
| `@stacksjs/action-runner` | [`stacks-actions`](../stacks-actions/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/action-runner/src/index.ts) | 1 |
|
|
14
|
-
| `@stacksjs/actions` | [`stacks-actions`](../stacks-actions/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/index.ts) |
|
|
14
|
+
| `@stacksjs/actions` | [`stacks-actions`](../stacks-actions/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/index.ts) | 129 |
|
|
15
15
|
| `@stacksjs/ai` | [`stacks-ai`](../stacks-ai/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/ai/src/index.ts) | 27 |
|
|
16
16
|
| `@stacksjs/alias` | [`stacks-alias`](../stacks-alias/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/alias/src/index.ts) | 3 |
|
|
17
17
|
| `@stacksjs/analytics` | [`stacks-analytics`](../stacks-analytics/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/analytics/src/index.ts) | 7 |
|
|
@@ -123,7 +123,7 @@ Declared runtime exports: `BlogAdminError`, `DEFAULT_IOS_DEPENDENCIES`, `DEFAULT
|
|
|
123
123
|
|
|
124
124
|
Local source modules: [src/action.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/action.ts), [src/add.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/add.ts), [src/blog-admin.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/blog-admin.ts), [src/build/ios-toolchain.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/build/ios-toolchain.ts), [src/build/macos-native.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/build/macos-native.ts), [src/commit.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/commit.ts), [src/dev/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/dev/index.ts), [src/discover-packages.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/discover-packages.ts), [src/generate/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/generate/index.ts), [src/github-release.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/github-release.ts), [src/helpers/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/helpers/index.ts), [src/library/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/library/index.ts), [src/lint/lint.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/lint/lint.ts), [src/lint/stx-gate.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/lint/stx-gate.ts), [src/make-command.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-command.ts), [src/make-job.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-job.ts), [src/make-policy.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-policy.ts), [src/make-resource.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-resource.ts), [src/make.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make.ts), [src/publication-preflight.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/publication-preflight.ts), [src/release-evidence.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/release-evidence.ts), [src/reviewos-evidence.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/reviewos-evidence.ts), [src/reviewos-workflows.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/reviewos-workflows.ts), [src/scaffold-crud.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/scaffold-crud.ts), [src/setup/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/setup/index.ts), [src/stacks.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/stacks.ts), [src/stx-source.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/stx-source.ts), [src/upgrade/package-project.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/upgrade/package-project.ts), [src/upgrade/route-actions.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/upgrade/route-actions.ts).
|
|
125
125
|
|
|
126
|
-
Evidence directory: [
|
|
126
|
+
Evidence directory: [129 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
127
127
|
|
|
128
128
|
### @stacksjs/ai
|
|
129
129
|
|
package/ide/vscode/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"publisher": "Stacks",
|
|
3
3
|
"name": "vscode-stacks",
|
|
4
4
|
"displayName": "Stacks",
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.650",
|
|
6
6
|
"description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.650",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@iconify-json/f7": "^1.2.2",
|
|
47
47
|
"@iconify-json/hugeicons": "^1.2.35",
|
|
48
|
-
"@stacksjs/mobile": "0.75.
|
|
48
|
+
"@stacksjs/mobile": "0.75.650",
|
|
49
49
|
"@stacksjs/sanitizer": "^0.2.908",
|
|
50
50
|
"@stacksjs/stx": "^0.2.908",
|
|
51
|
-
"@stacksjs/strings": "0.75.
|
|
51
|
+
"@stacksjs/strings": "0.75.650",
|
|
52
52
|
"@xterm/addon-fit": "^0.11.0",
|
|
53
53
|
"@xterm/xterm": "^6.0.0",
|
|
54
54
|
"ts-qr-codes": "^0.1.8",
|
|
55
|
-
"@stacksjs/support": "0.75.
|
|
56
|
-
"@stacksjs/browser": "0.75.
|
|
55
|
+
"@stacksjs/support": "0.75.650",
|
|
56
|
+
"@stacksjs/browser": "0.75.650"
|
|
57
57
|
}
|
|
58
58
|
}
|