gui4cli 0.0.3 → 0.0.5

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.
Files changed (3) hide show
  1. package/README.md +10 -8
  2. package/bin/gui4cli.js +0 -0
  3. package/package.json +18 -15
package/README.md CHANGED
@@ -1,12 +1,14 @@
1
1
  # GUI4CLI
2
2
 
3
- Turn a Node.js CLI script into a desktop form — inputs, a Run button, and live output without rewriting the script.
3
+ Turn a Node.js CLI script into a desktop form. Inputs, a Run button, and live output. The original file is unchanged.
4
+
5
+ The window is a [windowd](https://www.npmjs.com/package/windowd) app. The first launch downloads about 200 MB of NW.js. `--build` writes a reusable windowd folder, not an installer.
4
6
 
5
7
  **Docs:** [gui4cli.dev/docs](https://gui4cli.dev/docs) · **Site:** [gui4cli.dev](https://gui4cli.dev) · **GitHub:** [Catalyst-Forge-LLC/gui4cli](https://github.com/Catalyst-Forge-LLC/gui4cli)
6
8
 
7
9
  ## Install
8
10
 
9
- Requires **Node.js 20+**.
11
+ Requires **Node.js 20+**. Expect a one-time NW.js download on the first window.
10
12
 
11
13
  ```bash
12
14
  npx gui4cli my-script.js
@@ -21,15 +23,13 @@ gui4cli my-script.js
21
23
 
22
24
  A folder works too: `gui4cli . --entry bin/cli.js`.
23
25
 
24
- The first windowd launch may download the NW.js runtime (~200 MB). If the window flashes and closes, run from a normal terminal — not Cursor's JavaScript Debug Terminal.
25
-
26
26
  ## What you get
27
27
 
28
28
  - Detects Commander and yargs (JSDoc and `--help` are fallbacks)
29
- - One window: fields, command preview, **Run**, live stdout/stderr, exit code
30
- - Last-run values under `~/.gui4cli/lastrun/`
29
+ - One window: fields, command preview, Run, live stdout/stderr, exit code
30
+ - Remembers last-run values
31
31
  - `--json` prints the form and exits (CI, no GUI)
32
- - `--build` writes a reusable windowd folder that wraps the original script **in place** (no `.exe`, no rewrite)
32
+ - `--build` writes a reusable windowd folder that wraps the original script in place (no `.exe`, no rewrite)
33
33
 
34
34
  Optional overrides: `gui4cli.config.js` or `gui4cli.json` next to the script. Flags: [CLI](https://gui4cli.dev/docs/cli).
35
35
 
@@ -42,7 +42,9 @@ pnpm exec tsx src/cli.ts fixtures/resize.js --json
42
42
  pnpm dev
43
43
  ```
44
44
 
45
- `pnpm dev` opens the Commander fixture. Site (FilePress): `pnpm site:dev` (LocalSlip `gui4cli-site` on **5201**). Redeploy: `pnpm ship`.
45
+ `pnpm dev` opens the Commander fixture. The first windowd launch may download the NW.js runtime (~200 MB). If the window flashes and closes, run from a normal terminal, not Cursor's JavaScript Debug Terminal.
46
+
47
+ Site (FilePress): `pnpm site:dev` (LocalSlip `gui4cli-site` on **5201**). Redeploy: `pnpm ship`.
46
48
 
47
49
  ## License
48
50
 
package/bin/gui4cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gui4cli",
3
- "version": "0.0.3",
4
- "description": "Turn a Node.js CLI script into a desktop form app — inputs, run button, live output.",
3
+ "version": "0.0.5",
4
+ "description": "Turn a Node.js CLI script into a desktop form. Inputs, Run, live output. The original file is unchanged.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "gui4cli": "bin/gui4cli.js"
@@ -12,6 +12,20 @@
12
12
  "README.md",
13
13
  "LICENSE"
14
14
  ],
15
+ "scripts": {
16
+ "dev": "tsx src/cli.ts fixtures/resize.js",
17
+ "detect": "tsx src/cli.ts fixtures/resize.js --json",
18
+ "build": "tsc",
19
+ "typecheck": "tsc --noEmit",
20
+ "test": "vitest run",
21
+ "prepare": "tsc",
22
+ "prepublishOnly": "node scripts/publish-gate.mjs && pnpm test && pnpm build",
23
+ "site:dev": "pnpm --dir site dev",
24
+ "site:build": "pnpm --dir site build",
25
+ "site:check": "pnpm --dir site check",
26
+ "site:deploy": "pnpm --dir site run ship",
27
+ "ship": "pnpm --dir site run ship"
28
+ },
15
29
  "keywords": [
16
30
  "cli",
17
31
  "desktop",
@@ -40,21 +54,10 @@
40
54
  "devDependencies": {
41
55
  "@types/node": "^24.0.0",
42
56
  "commander": "^14.0.0",
57
+ "smellcheck": "^0.3.4",
43
58
  "tsx": "^4.20.0",
44
59
  "typescript": "^5.9.0",
45
60
  "vitest": "^3.2.0",
46
61
  "yargs": "^18.0.0"
47
- },
48
- "scripts": {
49
- "dev": "tsx src/cli.ts fixtures/resize.js",
50
- "detect": "tsx src/cli.ts fixtures/resize.js --json",
51
- "build": "tsc",
52
- "typecheck": "tsc --noEmit",
53
- "test": "vitest run",
54
- "site:dev": "pnpm --dir site dev",
55
- "site:build": "pnpm --dir site build",
56
- "site:check": "pnpm --dir site check",
57
- "site:deploy": "pnpm --dir site run ship",
58
- "ship": "pnpm --dir site run ship"
59
62
  }
60
- }
63
+ }