@pikku/deploy-standalone 0.12.12 → 0.12.17
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/CHANGELOG.md +177 -0
- package/dist/adapter.d.ts +45 -0
- package/dist/adapter.js +448 -6
- package/dist/runtime/cli.d.ts +75 -0
- package/dist/runtime/cli.js +193 -0
- package/dist/runtime/index.d.ts +11 -0
- package/dist/runtime/index.js +9 -0
- package/dist/runtime/parent-watch.d.ts +45 -0
- package/dist/runtime/parent-watch.js +87 -0
- package/dist/tauri/generate.d.ts +45 -0
- package/dist/tauri/generate.js +230 -0
- package/dist/tauri/icon.d.ts +1 -0
- package/dist/tauri/icon.js +54 -0
- package/dist/tauri/main-rs.d.ts +31 -0
- package/dist/tauri/main-rs.js +213 -0
- package/dist/tauri/next-steps.d.ts +15 -0
- package/dist/tauri/next-steps.js +16 -0
- package/dist/tauri/target-triple.d.ts +29 -0
- package/dist/tauri/target-triple.js +42 -0
- package/knowledge/decisions/a-pikku-server-serves-a-static-frontend.md +36 -0
- package/knowledge/decisions/a-remote-desktop-shell-bundles-nothing.md +38 -0
- package/knowledge/decisions/deploy-consumes-a-built-frontend.md +33 -0
- package/knowledge/decisions/desktop-builds-are-unsigned-and-never-update-themselves.md +34 -0
- package/knowledge/decisions/index.md +19 -0
- package/knowledge/decisions/standalone-assets-are-embedded-in-the-bun-binary.md +39 -0
- package/knowledge/decisions/the-desktop-shell-runs-the-server-as-a-sidecar.md +51 -0
- package/knowledge/decisions/the-sidecar-reports-its-port-the-shell-never-picks-one.md +44 -0
- package/knowledge/index.md +22 -0
- package/package.json +7 -4
- package/src/adapter.test.ts +725 -0
- package/src/adapter.ts +508 -6
- package/src/desktop-deploy.test.ts +167 -0
- package/src/runtime/cli.test.ts +222 -0
- package/src/runtime/cli.ts +311 -0
- package/src/runtime/index.ts +31 -0
- package/src/runtime/parent-watch.process.test.ts +112 -0
- package/src/runtime/parent-watch.test.ts +148 -0
- package/src/runtime/parent-watch.ts +115 -0
- package/src/sidecar-entry.test.ts +89 -0
- package/src/tauri/generate.test.ts +401 -0
- package/src/tauri/generate.ts +327 -0
- package/src/tauri/icon.test.ts +63 -0
- package/src/tauri/icon.ts +62 -0
- package/src/tauri/main-rs.rustfmt.test.ts +86 -0
- package/src/tauri/main-rs.ts +241 -0
- package/src/tauri/next-steps.test.ts +38 -0
- package/src/tauri/next-steps.ts +30 -0
- package/src/tauri/target-triple.test.ts +84 -0
- package/src/tauri/target-triple.ts +65 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: overview
|
|
3
|
+
title: Knowledge
|
|
4
|
+
description: How a standalone unit comes to contain a frontend as well as a server, and how it becomes a double-clickable desktop app
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Knowledge
|
|
8
|
+
|
|
9
|
+
A standalone unit is meant to be one artifact you can hand someone: a binary
|
|
10
|
+
that, when run, is the whole application. Adding a UI to that picture forces
|
|
11
|
+
three questions — what kind of frontend, who builds it, and where the files
|
|
12
|
+
live at runtime — and the answers are less obvious than they look.
|
|
13
|
+
|
|
14
|
+
Wrapping that binary in a window forces a second set: who starts the server,
|
|
15
|
+
how the window learns the port it bound, who holds the passphrase, and what
|
|
16
|
+
happens to the server when the window goes away.
|
|
17
|
+
|
|
18
|
+
These notes record the answers and the constraints that produced them.
|
|
19
|
+
|
|
20
|
+
<!-- pikku:knowledge-index -->
|
|
21
|
+
- [decisions](decisions/index.md) — a rule that was chosen, and what it rules out
|
|
22
|
+
<!-- /pikku:knowledge-index -->
|
package/package.json
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/deploy-standalone",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.17",
|
|
4
4
|
"description": "Standalone deploy adapter for Pikku — bundles a project into a node bundle or a compiled bun executable",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc -b",
|
|
9
|
-
"tsc": "tsc --noEmit"
|
|
9
|
+
"tsc": "tsc --noEmit",
|
|
10
|
+
"test": "node --test --import tsx \"src/**/*.test.ts\""
|
|
10
11
|
},
|
|
11
12
|
"devDependencies": {
|
|
12
13
|
"typescript": "^6.0.3"
|
|
13
14
|
},
|
|
14
15
|
"exports": {
|
|
15
|
-
".": "./dist/index.js"
|
|
16
|
+
".": "./dist/index.js",
|
|
17
|
+
"./runtime": "./dist/runtime/index.js"
|
|
16
18
|
},
|
|
17
19
|
"license": "MIT",
|
|
18
20
|
"dependencies": {
|
|
19
|
-
"@pikku/deploy": "^0.12.
|
|
21
|
+
"@pikku/deploy": "^0.12.5",
|
|
22
|
+
"@pikku/migrator-sql": "^0.12.3"
|
|
20
23
|
}
|
|
21
24
|
}
|