@owlmeans/create-app 0.1.11 → 0.1.12
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/create-app",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Scaffold a minimal fullstack OwlMeans Common app — common + api + web workspaces, shadcn UI navigation/layout, no auth, and a session-scoped in-memory resource. Deploys agent skills via @owlmeans/agent-skills by default.",
|
|
6
6
|
"type": "module",
|
package/template/README.md
CHANGED
|
@@ -28,6 +28,10 @@ Open the **Session** page and add/remove items — they are stored per browser s
|
|
|
28
28
|
(a `sid` kept in `localStorage`) in an in-memory resource on the API. Restarting the API
|
|
29
29
|
clears them; opening a different browser/incognito window gets an isolated session.
|
|
30
30
|
|
|
31
|
+
> **Note:** The API runs over plain HTTP in dev (`cfg.security = { unsecure: true }` in
|
|
32
|
+
> `sources/common/src/config.ts`). If you edit `sources/common`, restart `bun run dev` to
|
|
33
|
+
> rebuild it before the API and web pick up the changes.
|
|
34
|
+
|
|
31
35
|
## How it fits together
|
|
32
36
|
|
|
33
37
|
1. **`sources/common`** declares the API routes as OwlMeans *entrypoints* (`session.list`,
|
package/template/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"sources/*"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"dev": "bun run --filter './sources/*' --parallel dev",
|
|
11
|
+
"dev": "bun run --filter './sources/common' build && bun run --filter './sources/*' --parallel dev",
|
|
12
12
|
"build": "bun run --filter './sources/*' build",
|
|
13
13
|
"typecheck": "bun run --filter './sources/*' typecheck"
|
|
14
14
|
},
|
|
@@ -20,5 +20,8 @@ service({
|
|
|
20
20
|
|
|
21
21
|
cfg.debug = { all: true }
|
|
22
22
|
cfg.alias = APP
|
|
23
|
+
// Local dev serves the API over plain HTTP. Without this the web client builds https:// URLs
|
|
24
|
+
// and every call fails. In production put the API behind TLS and remove this line.
|
|
25
|
+
cfg.security = { unsecure: true }
|
|
23
26
|
|
|
24
27
|
export const commonConfig = cfg
|