@phreshos/cli 0.1.16 → 0.1.18
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/dist/derive.js +2 -0
- package/dist/pack.js +2 -2
- package/dist/project.js +2 -0
- package/dist/template/package.json +6 -6
- package/dist/template/phresh.config.ts +1 -1
- package/dist/template.json +2 -2
- package/package.json +2 -2
package/dist/derive.js
CHANGED
|
@@ -39,6 +39,7 @@ export default function derive(config, directory, which) {
|
|
|
39
39
|
...server && { server: {
|
|
40
40
|
location: resolve(directory, server.location),
|
|
41
41
|
start: server.start,
|
|
42
|
+
serviceable: server.serviceable,
|
|
42
43
|
installCommand: config.server?.installCommand,
|
|
43
44
|
startCommand: server.startCommand
|
|
44
45
|
} },
|
|
@@ -48,6 +49,7 @@ export default function derive(config, directory, which) {
|
|
|
48
49
|
...client && { client: {
|
|
49
50
|
location: /^https?:\/\//i.test(client.location) ? client.location : resolve(directory, client.location),
|
|
50
51
|
start: client.start,
|
|
52
|
+
serviceable: client.serviceable,
|
|
51
53
|
title: config.client?.title,
|
|
52
54
|
size: config.client?.size,
|
|
53
55
|
position: config.client?.position,
|
package/dist/pack.js
CHANGED
|
@@ -63,8 +63,8 @@ function program(config, version) {
|
|
|
63
63
|
version,
|
|
64
64
|
description: config.description,
|
|
65
65
|
icon: config.icon ? "icon.png" : undefined,
|
|
66
|
-
...config.server && { server: { location: "server", start: config.server.start, installCommand: config.server.installCommand, startCommand: config.server.startCommand } },
|
|
67
|
-
...config.client && { client: { location: "client", start: config.client.start, title: config.client.title, size: config.client.size, position: config.client.position, layer: config.client.layer, minimize: config.client.minimize } }
|
|
66
|
+
...config.server && { server: { location: "server", start: config.server.start, serviceable: config.server.serviceable, installCommand: config.server.installCommand, startCommand: config.server.startCommand } },
|
|
67
|
+
...config.client && { client: { location: "client", start: config.client.start, serviceable: config.client.serviceable, title: config.client.title, size: config.client.size, position: config.client.position, layer: config.client.layer, minimize: config.client.minimize } }
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
// What is at a half's location, where the package keeps it. A half that
|
package/dist/project.js
CHANGED
|
@@ -55,6 +55,8 @@ function coherent(config) {
|
|
|
55
55
|
throw new Error(`A declared ${half} half must have a location`);
|
|
56
56
|
if (declared.start !== undefined && typeof declared.start !== "boolean")
|
|
57
57
|
throw new Error(`A declared ${half} endpoint's start default must be true or false`);
|
|
58
|
+
if (declared.serviceable !== undefined && typeof declared.serviceable !== "boolean")
|
|
59
|
+
throw new Error(`A declared ${half} endpoint's serviceable capability must be true or false`);
|
|
58
60
|
}
|
|
59
61
|
if (!(config.server && (config.server.start ?? true)) && !(config.client && (config.client.start ?? true)))
|
|
60
62
|
throw new Error("A Program's default Process must start a server endpoint, a client endpoint, or both");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phresh-program",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.11",
|
|
5
5
|
"description": "The official PhreshOS starter Program.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"starter"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@phreshos/client": "^0.1.
|
|
18
|
-
"@phreshos/core": "^0.1.
|
|
19
|
-
"@phreshos/react": "^0.1.
|
|
20
|
-
"@phreshos/server": "^0.1.
|
|
17
|
+
"@phreshos/client": "^0.1.13",
|
|
18
|
+
"@phreshos/core": "^0.1.9",
|
|
19
|
+
"@phreshos/react": "^0.1.7",
|
|
20
|
+
"@phreshos/server": "^0.1.11",
|
|
21
21
|
"react": "^19.2.8",
|
|
22
22
|
"react-dom": "^19.2.8"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@phreshos/cli": "^0.1.
|
|
25
|
+
"@phreshos/cli": "^0.1.18",
|
|
26
26
|
"@types/node": "^26.2.0",
|
|
27
27
|
"@types/react": "^19.2.18",
|
|
28
28
|
"@types/react-dom": "^19.2.4",
|
|
@@ -4,7 +4,7 @@ export default defineConfig({
|
|
|
4
4
|
identity: "phresh-program",
|
|
5
5
|
name: "Phresh Program",
|
|
6
6
|
description: "A minimal counter with direct Client and Server endpoints.",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.11",
|
|
8
8
|
icon: "icon.png",
|
|
9
9
|
buildCommand: "vite-node scripts/build.ts",
|
|
10
10
|
server: {
|
package/dist/template.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"repository": "PhreshOS/phresh-program",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"sha256": "
|
|
3
|
+
"version": "0.1.11",
|
|
4
|
+
"sha256": "70248597565f2e02bb8f8b052758321d92fe54d30ef47e8e1b9347034d4a93b8",
|
|
5
5
|
"development": true
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phreshos/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.18",
|
|
5
5
|
"description": "The Phresh command-line interface for Program projects and system management.",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=20.10"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"packageManager": "bun@1.3.14",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@clack/prompts": "^1.7.0",
|
|
52
|
-
"@phreshos/core": "^0.1.
|
|
52
|
+
"@phreshos/core": "^0.1.10",
|
|
53
53
|
"adm-zip": "^0.6.0",
|
|
54
54
|
"commander": "^15.0.0",
|
|
55
55
|
"picocolors": "^1.1.1"
|