@powerhousedao/ph-cli 0.40.83-dev.2 → 0.40.85-staging.0

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/README.md CHANGED
@@ -1,72 +1,18 @@
1
1
  # Powerhouse CLI (ph-cli)
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/ph-cli.svg)](https://www.npmjs.com/package/ph-cli)
4
- [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
5
- [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md)
6
-
7
- A powerful command-line interface tool for Powerhouse DAO that streamlines the development and management of Powerhouse packages and services. The CLI provides a unified interface for common development tasks, package management, and service operations.
8
-
9
- ## Table of Contents
10
-
11
- - [Features](#features)
12
- - [Installation](#installation)
13
- - [Quick Start](#quick-start)
14
- - [Commands](#commands)
15
- - [Connect](#ph-connect)
16
- - [Generate](#ph-generate)
17
- - [Install](#ph-install)
18
- - [Uninstall](#ph-uninstall)
19
- - [List](#ph-list)
20
- - [Inspect](#ph-inspect)
21
- - [Service](#ph-service)
22
- - [Version](#ph-version)
23
- - [Help](#ph-help)
24
- - [Configuration](#configuration)
25
- - [Troubleshooting](#troubleshooting)
26
- - [Contributing](#contributing)
27
- - [License](#license)
28
-
29
- ## Features
30
-
31
- - 🚀 Fast and efficient package management
32
- - 🔧 Powerful code generation capabilities
33
- - 🌐 Connect Studio development environment
34
- - 📦 Workspace-aware package operations
35
- - 🔍 Package inspection and dependency management
36
- - 🛠 Service management and monitoring
37
- - 📝 Comprehensive documentation and help system
3
+ A command-line interface tool for Powerhouse DAO that helps you manage and interact with Powerhouse packages and services.
38
4
 
39
5
  ## Installation
40
6
 
41
7
  ```bash
42
- # Install globally
43
- npm install -g ph-cli
44
-
45
- # Install as a dev dependency
46
- npm install --save-dev ph-cli
47
- ```
48
-
49
- ## Quick Start
50
-
51
- ```bash
52
- # Initialize a new Powerhouse project
53
- ph init
54
-
55
- # Start the development environment
56
- ph connect
57
-
58
- # Install required dependencies
59
- ph install @powerhousedao/core
60
-
61
- # Generate code from models
62
- ph generate --interactive
8
+ npm install ph-cli
63
9
  ```
64
10
 
65
- ## Commands
11
+ ## Available Commands
66
12
 
67
13
  ### `ph connect`
68
14
 
69
- Starts Connect Studio, a development environment for Powerhouse. This command launches a local development server with hot-reloading and debugging capabilities.
15
+ Starts Connect Studio, a development environment for Powerhouse.
70
16
 
71
17
  #### Options:
72
18
  - `-p, --port <port>`: Port to run the server on (default: 3000)
@@ -75,7 +21,6 @@ Starts Connect Studio, a development environment for Powerhouse. This command la
75
21
  - `--open`: Open the browser automatically
76
22
  - `--config-file <configFile>`: Path to the powerhouse.config.js file
77
23
 
78
- #### Examples:
79
24
  ```bash
80
25
  # Start Connect Studio on default port (3000)
81
26
  ph connect
@@ -95,7 +40,7 @@ ph connect --config-file ./my-config.js
95
40
 
96
41
  ### `ph generate`
97
42
 
98
- Generate code from document models with various options. This command supports multiple generation types including editors, processors, subgraphs, and import scripts.
43
+ Generate code from document models with various options.
99
44
 
100
45
  #### Options:
101
46
  - `-i, --interactive`: Run the command in interactive mode
@@ -113,7 +58,6 @@ Generate code from document models with various options. This command supports m
113
58
  - `-w, --watch`: Watch the generated code
114
59
  - `-d, --drive-editor <name>`: Generate a drive editor with the specified name
115
60
 
116
- #### Examples:
117
61
  ```bash
118
62
  # Generate code from a specific file
119
63
  ph generate path/to/model.json
@@ -142,7 +86,7 @@ ph generate --watch
142
86
 
143
87
  ### `ph install` (or `ph add`, `ph i`)
144
88
 
145
- Install Powerhouse dependencies with support for global and workspace-specific installations.
89
+ Install Powerhouse dependencies.
146
90
 
147
91
  #### Options:
148
92
  - `-g, --global`: Install the dependency globally
@@ -150,7 +94,6 @@ Install Powerhouse dependencies with support for global and workspace-specific i
150
94
  - `-w, --workspace`: Install the dependency in the workspace (use this option for monorepos)
151
95
  - `--package-manager <packageManager>`: Force package manager to use
152
96
 
153
- #### Examples:
154
97
  ```bash
155
98
  # Install a package
156
99
  ph install @powerhousedao/package-name
@@ -167,7 +110,7 @@ ph install @powerhousedao/package1 @powerhousedao/package2
167
110
 
168
111
  ### `ph uninstall` (or `ph remove`)
169
112
 
170
- Remove Powerhouse dependencies from your project.
113
+ Remove Powerhouse dependencies.
171
114
 
172
115
  #### Options:
173
116
  - `-g, --global`: Remove the dependency globally
@@ -175,7 +118,6 @@ Remove Powerhouse dependencies from your project.
175
118
  - `-w, --workspace`: Remove the dependency in the workspace (use this option for monorepos)
176
119
  - `--package-manager <packageManager>`: Force package manager to use
177
120
 
178
- #### Examples:
179
121
  ```bash
180
122
  # Remove a package
181
123
  ph uninstall @powerhousedao/package-name
@@ -189,12 +131,11 @@ ph uninstall -w @powerhousedao/package-name
189
131
 
190
132
  ### `ph list` (or `ph l`)
191
133
 
192
- List all installed Powerhouse packages in your project with detailed information.
134
+ List all installed Powerhouse packages in your project.
193
135
 
194
136
  #### Options:
195
137
  - `--debug`: Show additional logs
196
138
 
197
- #### Examples:
198
139
  ```bash
199
140
  # List packages
200
141
  ph list
@@ -205,12 +146,11 @@ ph list --debug
205
146
 
206
147
  ### `ph inspect` (or `ph is`)
207
148
 
208
- Inspect a specific package for detailed information about its dependencies, configuration, and usage.
149
+ Inspect a specific package.
209
150
 
210
151
  #### Options:
211
152
  - `--debug`: Show additional logs
212
153
 
213
- #### Examples:
214
154
  ```bash
215
155
  # Inspect a package
216
156
  ph inspect @powerhousedao/package-name
@@ -221,13 +161,12 @@ ph inspect --debug @powerhousedao/package-name
221
161
 
222
162
  ### `ph service`
223
163
 
224
- Manage Powerhouse services with various operations.
164
+ Manage Powerhouse services.
225
165
 
226
166
  #### Options:
227
167
  - `action`: The action to perform (default: "list")
228
168
  - `service`: The service to manage (default: "all")
229
169
 
230
- #### Examples:
231
170
  ```bash
232
171
  # List all services
233
172
  ph service list
@@ -238,21 +177,19 @@ ph service list service-name
238
177
 
239
178
  ### `ph version` (or `ph v`)
240
179
 
241
- Display the current version of the PH CLI and related information.
180
+ Display the current version of the PH CLI.
242
181
 
243
182
  #### Options:
244
183
  - `--debug`: Show additional logs
245
184
 
246
- #### Examples:
247
185
  ```bash
248
186
  ph version
249
187
  ```
250
188
 
251
189
  ### `ph help`
252
190
 
253
- Display comprehensive help information about the CLI and its commands.
191
+ Display help information about the CLI and its commands.
254
192
 
255
- #### Examples:
256
193
  ```bash
257
194
  # Show general help
258
195
  ph help
@@ -261,58 +198,17 @@ ph help
261
198
  ph help <command>
262
199
  ```
263
200
 
264
- ## Configuration
265
-
266
- The CLI can be configured using a `powerhouse.config.js` file in your project root. Here's an example configuration:
267
-
268
- ```javascript
269
- module.exports = {
270
- port: 3000,
271
- host: false,
272
- https: false,
273
- packageManager: 'npm',
274
- workspace: {
275
- enabled: true,
276
- root: './packages'
277
- }
278
- };
279
- ```
280
-
281
- ## Troubleshooting
282
-
283
- ### Common Issues
284
-
285
- 1. **Command not found**
286
- - Ensure ph-cli is installed globally or locally
287
- - Check your PATH environment variable
288
-
289
- 2. **Permission errors**
290
- - Use sudo for global installations
291
- - Check directory permissions
201
+ ## Global Options
292
202
 
293
- 3. **Package installation failures**
294
- - Clear npm cache: `npm cache clean --force`
295
- - Check network connectivity
296
- - Verify package name and version
203
+ Most commands support the following global options:
297
204
 
298
- ### Debug Mode
299
-
300
- Most commands support a `--debug` flag for additional logging:
301
-
302
- ```bash
303
- ph install --debug @powerhousedao/package-name
304
- ```
205
+ - `--debug`: Show additional debug logs
206
+ - `--package-manager <manager>`: Force the use of a specific package manager
305
207
 
306
208
  ## Contributing
307
209
 
308
- We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details on:
309
-
310
- - Code of Conduct
311
- - Development Process
312
- - Pull Request Process
313
- - Style Guide
314
- - Testing Requirements
210
+ Please refer to the project's contribution guidelines for details on our code of conduct and the process for submitting pull requests.
315
211
 
316
212
  ## License
317
213
 
318
- This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
214
+ This project is licensed under the terms specified in the LICENSE file.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/ph-cli",
3
- "version": "0.40.83-dev.2",
3
+ "version": "0.40.85-staging.0",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",
@@ -30,7 +30,7 @@
30
30
  "keywords": [],
31
31
  "author": "",
32
32
  "devDependencies": {
33
- "@types/node": "^22.15.17",
33
+ "@types/node": "^22.14.1",
34
34
  "concurrently": "^9.1.2",
35
35
  "nodemon": "^3.1.9",
36
36
  "vitest": "^3.1.2"
@@ -1,4 +1,4 @@
1
- import { Command } from "commander";
1
+ import { type Command } from "commander";
2
2
  import { type ConnectOptions } from "../services/connect.js";
3
3
  import { type CommandActionType } from "../types.js";
4
4
  export declare const connect: CommandActionType<[
@@ -1 +1 @@
1
- {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/commands/connect.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AASrD,eAAO,MAAM,OAAO,EAAE,iBAAiB,CACrC;IAAC,cAAc;CAAC,EAChB,OAAO,CAAC,IAAI,CAAC,CAGd,CAAC;AA2CF,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,QAY9C"}
1
+ {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/commands/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AASrD,eAAO,MAAM,OAAO,EAAE,iBAAiB,CACrC;IAAC,cAAc;CAAC,EAChB,OAAO,CAAC,IAAI,CAAC,CAGd,CAAC;AAEF,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,QAmB9C"}
@@ -1,6 +1,4 @@
1
- import { buildConnect, previewConnect, } from "@powerhousedao/builder-tools/connect-build";
2
- import { Command } from "commander";
3
- import { connectBuildHelp, connectPreviewHelp, connectStudioHelp, } from "../help.js";
1
+ import { connectHelp } from "../help.js";
4
2
  import { setCustomHelp } from "../utils.js";
5
3
  async function startConnect(options) {
6
4
  const Connect = await import("../services/connect.js");
@@ -10,45 +8,17 @@ async function startConnect(options) {
10
8
  export const connect = async (options) => {
11
9
  return startConnect(options);
12
10
  };
13
- const studioCommand = new Command("studio")
14
- .description("Starts Connect Studio (default)")
15
- .option("-p, --port <port>", "Port to run the server on", "3000")
16
- .option("-h, --host", "Expose the server to the network")
17
- .option("--https", "Enable HTTPS")
18
- .option("--open", "Open the browser")
19
- .option("--config-file <configFile>", "Path to the powerhouse.config.js file")
20
- .action(async (...args) => {
21
- await connect(...args);
22
- });
23
- setCustomHelp(studioCommand, connectStudioHelp);
24
- const buildCommand = new Command("build")
25
- .description("Build Connect project")
26
- .option("--project-root <path>", "The root directory of the project", process.cwd())
27
- .option("--assets-dir-name <name>", "The name of the assets directory")
28
- .option("--external-packages-file-name <name>", "The name of the external packages file")
29
- .option("--styles-file-name <name>", "The name of the styles file")
30
- .option("--connect-path <path>", "The path to the Connect dist directory")
31
- .action(async (...args) => {
32
- await buildConnect(...args);
33
- });
34
- setCustomHelp(buildCommand, connectBuildHelp);
35
- const previewCommand = new Command("preview")
36
- .description("Preview built Connect project")
37
- .option("--project-root <path>", "The root directory of the project")
38
- .option("-p, --port <port>", "The port to run the server on", "4173")
39
- .option("--open", "Open the browser")
40
- .action(async (...args) => {
41
- await previewConnect(...args);
42
- });
43
- setCustomHelp(previewCommand, connectPreviewHelp);
44
11
  export function connectCommand(program) {
45
12
  const cmd = program
46
13
  .command("connect")
47
- .description("Powerhouse Connect commands")
48
- .addCommand(studioCommand)
49
- .addCommand(buildCommand)
50
- .addCommand(previewCommand);
51
- // Set studio as the default command
14
+ .description("Starts Connect Studio")
15
+ .option("-p, --port <port>", "Port to run the server on", "3000")
16
+ .option("-h, --host", "Expose the server to the network")
17
+ .option("--https", "Enable HTTPS")
18
+ .option("--open", "Open the browser")
19
+ .option("--config-file <configFile>", "Path to the powerhouse.config.js file");
20
+ // Use the setCustomHelp utility to apply custom help formatting
21
+ setCustomHelp(cmd, connectHelp);
52
22
  cmd.action(async (...args) => {
53
23
  await connect(...args);
54
24
  });
@@ -1 +1 @@
1
- {"version":3,"file":"connect.js","sourceRoot":"","sources":["../../../src/commands/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,cAAc,GAGf,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,KAAK,UAAU,YAAY,CAAC,OAAuB;IACjD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAC;IACvD,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IACjC,OAAO,YAAY,CAAC,OAAO,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAGhB,KAAK,EAAE,OAAO,EAAE,EAAE;IACpB,OAAO,YAAY,CAAC,OAAO,CAAC,CAAC;AAC/B,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC;KACxC,WAAW,CAAC,iCAAiC,CAAC;KAC9C,MAAM,CAAC,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,CAAC;KAChE,MAAM,CAAC,YAAY,EAAE,kCAAkC,CAAC;KACxD,MAAM,CAAC,SAAS,EAAE,cAAc,CAAC;KACjC,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,YAAY,CAAC,OAAO,CAAC,CAAC;AAC/B,CAAC,CAAC;AAEF,MAAM,UAAU,cAAc,CAAC,OAAgB;IAC7C,MAAM,GAAG,GAAG,OAAO;SAChB,OAAO,CAAC,SAAS,CAAC;SAClB,WAAW,CAAC,uBAAuB,CAAC;SACpC,MAAM,CAAC,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,CAAC;SAChE,MAAM,CAAC,YAAY,EAAE,kCAAkC,CAAC;SACxD,MAAM,CAAC,SAAS,EAAE,cAAc,CAAC;SACjC,MAAM,CAAC,QAAQ,EAAE,kBAAkB,CAAC;SACpC,MAAM,CACL,4BAA4B,EAC5B,uCAAuC,CACxC,CAAC;IAEJ,gEAAgE;IAChE,aAAa,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;IAEhC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,IAAsB,EAAE,EAAE;QAC7C,MAAM,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC;AAED,IAAI,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC;IACnC,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACtC,MAAM,OAAO,GAAG,UAAU,CAAC,CAAC,CAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAoB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7E,YAAY,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAU,EAAE,EAAE;QACzC,MAAM,CAAC,CAAC;IACV,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,15 +1,7 @@
1
1
  /**
2
- * Help text for the connect studio command
2
+ * Help text for the connect command
3
3
  */
4
- export declare const connectStudioHelp = "\nCommand Overview:\n The connect command starts the Connect Studio, a development environment for building\n and testing Powerhouse applications. It provides a visual interface for working with \n your project.\n\n This command:\n 1. Starts a local Connect Studio server\n 2. Provides a web interface for development\n 3. Allows you to interact with your project components\n 4. Supports various configuration options for customization\n\nOptions:\n -p, --port <port> Port to run the server on. Default is 3000.\n \n -h, --host Expose the server to the network. By default, the server\n only accepts connections from localhost.\n \n --https Enable HTTPS for secure connections. You may need to provide\n certificate files for this option to work properly.\n \n --open Automatically open the browser window after starting the server.\n \n --config-file <path> Path to the powerhouse.config.js file. This allows you to\n customize the behavior of Connect Studio.\n\nExamples:\n $ ph connect # Start Connect Studio on default port 3000\n $ ph connect -p 8080 # Start on port 8080\n $ ph connect -h # Expose to network (not just localhost)\n $ ph connect --https # Enable HTTPS\n $ ph connect --open # Open browser automatically\n $ ph connect --config-file custom.config.js # Use custom configuration\n $ ph connect -p 8080 --open # Start on port 8080 and open browser\n";
5
- /**
6
- * Help text for the connect build command
7
- */
8
- export declare const connectBuildHelp = "\nCommand Overview:\n The Connect build command creates a connect build with the project's local and external packages included.\n\nOptions:\n --project-root <path> The root directory of the project. Default is \"process.cwd()\".\n --assets-dir-name <name> The name of the assets directory. Default is \"assets\".\n --external-packages-file-name <name> The name of the external packages file. Default is \"external-packages.js\".\n --styles-file-name <name> The name of the styles file. Default is \"style.css\".\n --connect-path <path> The path to the Connect dist directory. Calls \"resolveConnect()\" if not provided.\n";
9
- /**
10
- * Help text for the connect preview command
11
- */
12
- export declare const connectPreviewHelp = "\nCommand Overview:\n The Connect preview command previews a built Connect project.\n NOTE: You must run `ph connect build` first.\n\nOptions:\n --project-root <path> The root directory of the project. Default is \"process.cwd()\".\n --port <port> The port to run the server on. Default is 4173.\n --open Open the browser. Default is true.\n";
4
+ export declare const connectHelp = "\nCommand Overview:\n The connect command starts the Connect Studio, a development environment for building\n and testing Powerhouse applications. It provides a visual interface for working with \n your project.\n\n This command:\n 1. Starts a local Connect Studio server\n 2. Provides a web interface for development\n 3. Allows you to interact with your project components\n 4. Supports various configuration options for customization\n\nOptions:\n -p, --port <port> Port to run the server on. Default is 3000.\n \n -h, --host Expose the server to the network. By default, the server\n only accepts connections from localhost.\n \n --https Enable HTTPS for secure connections. You may need to provide\n certificate files for this option to work properly.\n \n --open Automatically open the browser window after starting the server.\n \n --config-file <path> Path to the powerhouse.config.js file. This allows you to\n customize the behavior of Connect Studio.\n\nExamples:\n $ ph connect # Start Connect Studio on default port 3000\n $ ph connect -p 8080 # Start on port 8080\n $ ph connect -h # Expose to network (not just localhost)\n $ ph connect --https # Enable HTTPS\n $ ph connect --open # Open browser automatically\n $ ph connect --config-file custom.config.js # Use custom configuration\n $ ph connect -p 8080 --open # Start on port 8080 and open browser\n";
13
5
  /**
14
6
  * Help text for the generate command
15
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/help.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,iBAAiB,itDAkC7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,2nBAU5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,yXAS9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,kpGA0DxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,+jEAsCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,4pEAwCzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,ypCA2BpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,m7DAoCnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,miDAkCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,+mEAuCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,ixDAoC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,s6DAuCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,2kCA0BvB,CAAC"}
1
+ {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/help.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,WAAW,itDAkCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,kpGA0DxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,+jEAsCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,4pEAwCzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,ypCA2BpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,m7DAoCnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,miDAkCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,+mEAuCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,ixDAoC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,s6DAuCvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,2kCA0BvB,CAAC"}
package/dist/src/help.js CHANGED
@@ -1,8 +1,7 @@
1
- import { DEFAULT_ASSETS_DIR_NAME, DEFAULT_EXTERNAL_PACKAGES_FILE_NAME, DEFAULT_STYLES_FILE_NAME, } from "@powerhousedao/builder-tools/connect-build";
2
1
  /**
3
- * Help text for the connect studio command
2
+ * Help text for the connect command
4
3
  */
5
- export const connectStudioHelp = `
4
+ export const connectHelp = `
6
5
  Command Overview:
7
6
  The connect command starts the Connect Studio, a development environment for building
8
7
  and testing Powerhouse applications. It provides a visual interface for working with
@@ -37,33 +36,6 @@ Examples:
37
36
  $ ph connect --config-file custom.config.js # Use custom configuration
38
37
  $ ph connect -p 8080 --open # Start on port 8080 and open browser
39
38
  `;
40
- /**
41
- * Help text for the connect build command
42
- */
43
- export const connectBuildHelp = `
44
- Command Overview:
45
- The Connect build command creates a connect build with the project's local and external packages included.
46
-
47
- Options:
48
- --project-root <path> The root directory of the project. Default is "process.cwd()".
49
- --assets-dir-name <name> The name of the assets directory. Default is "${DEFAULT_ASSETS_DIR_NAME}".
50
- --external-packages-file-name <name> The name of the external packages file. Default is "${DEFAULT_EXTERNAL_PACKAGES_FILE_NAME}".
51
- --styles-file-name <name> The name of the styles file. Default is "${DEFAULT_STYLES_FILE_NAME}".
52
- --connect-path <path> The path to the Connect dist directory. Calls "resolveConnect()" if not provided.
53
- `;
54
- /**
55
- * Help text for the connect preview command
56
- */
57
- export const connectPreviewHelp = `
58
- Command Overview:
59
- The Connect preview command previews a built Connect project.
60
- NOTE: You must run \`ph connect build\` first.
61
-
62
- Options:
63
- --project-root <path> The root directory of the project. Default is "process.cwd()".
64
- --port <port> The port to run the server on. Default is 4173.
65
- --open Open the browser. Default is true.
66
- `;
67
39
  /**
68
40
  * Help text for the generate command
69
41
  */
@@ -1 +1 @@
1
- {"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/help.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,mCAAmC,EACnC,wBAAwB,GACzB,MAAM,4CAA4C,CAAC;AAEpD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkChC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;;;;2EAM2C,uBAAuB;6FACL,mCAAmC;uEACzD,wBAAwB;;CAE9F,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;CASjC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D3B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsC1B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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M,CAAA;CAAE,EAAE,EAC3E,IAAI,GAAE,SAAS,GAAG,WAAuB,GACxC,gBAAgB,CAAC,UAAU,CAAC,CAmB9B;AAGD,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,EAC3E,WAAW,EAAE,MAAM,EACnB,IAAI,GAAE,SAAS,GAAG,WAAuB,QAoB1C;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,cACtB,MAAM,cACL,MAAM,KACjB,MAAM,GAAG,IAeX,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAiBzE;AAED,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const version = "0.40.83-dev.2";
1
+ export declare const version = "0.40.85-staging.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,sBAAsB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated. DO NOT EDIT.
2
- export const version = "0.40.83-dev.2";
2
+ export const version = "0.40.85-staging.0";
3
3
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CAAC"}