@gjsify/cli 0.29.0 → 0.31.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.
Files changed (54) hide show
  1. package/dist/cli.gjs.mjs +197 -189
  2. package/lib/actions/build.d.ts +14 -0
  3. package/lib/actions/build.js +78 -3
  4. package/lib/actions/index.d.ts +2 -0
  5. package/lib/actions/index.js +2 -0
  6. package/lib/affected-entry.d.ts +1 -0
  7. package/lib/affected-entry.js +49 -0
  8. package/lib/bundler-pick.js +84 -19
  9. package/lib/cli-app.js +20 -0
  10. package/lib/cli-fail.d.ts +22 -0
  11. package/lib/cli-fail.js +67 -0
  12. package/lib/commands/affected.d.ts +2 -2
  13. package/lib/commands/affected.js +16 -0
  14. package/lib/commands/install.d.ts +55 -0
  15. package/lib/commands/install.js +38 -21
  16. package/lib/commands/run.js +25 -6
  17. package/lib/commands/test.js +4 -4
  18. package/lib/commands/tsc.js +59 -11
  19. package/lib/commands/workspace.js +13 -0
  20. package/lib/config.js +6 -2
  21. package/lib/index.js +18 -1
  22. package/lib/templates/install.mjs.tmpl +27 -2
  23. package/lib/types/command.d.ts +18 -0
  24. package/lib/utils/bin-shim.d.ts +39 -0
  25. package/lib/utils/bin-shim.js +89 -13
  26. package/lib/utils/check-system-deps.d.ts +88 -1
  27. package/lib/utils/check-system-deps.js +177 -6
  28. package/lib/utils/detect-native-packages.js +12 -1
  29. package/lib/utils/discover-showcases.d.ts +0 -2
  30. package/lib/utils/discover-showcases.js +0 -1
  31. package/lib/utils/dlx-cache.d.ts +22 -2
  32. package/lib/utils/dlx-cache.js +62 -6
  33. package/lib/utils/force-exit.d.ts +10 -0
  34. package/lib/utils/force-exit.js +43 -0
  35. package/lib/utils/gi-search-path.d.ts +36 -0
  36. package/lib/utils/gi-search-path.js +146 -0
  37. package/lib/utils/gjs-source-escape.d.ts +10 -0
  38. package/lib/utils/gjs-source-escape.js +49 -0
  39. package/lib/utils/gjsify-shim.d.ts +29 -2
  40. package/lib/utils/gjsify-shim.js +131 -22
  41. package/lib/utils/install-backend-native.d.ts +8 -0
  42. package/lib/utils/install-backend-native.js +8 -2
  43. package/lib/utils/install-global.d.ts +30 -2
  44. package/lib/utils/install-global.js +51 -5
  45. package/lib/utils/oxc-resolve.d.ts +1 -1
  46. package/lib/utils/oxc-resolve.js +10 -6
  47. package/lib/utils/run-lifecycle-script.js +41 -25
  48. package/lib/utils/spawn.d.ts +17 -1
  49. package/lib/utils/spawn.js +23 -6
  50. package/lib/utils/stdin.d.ts +3 -13
  51. package/lib/utils/stdin.js +21 -100
  52. package/lib/utils/system-gi.js +10 -1
  53. package/package.json +22 -17
  54. package/showcases.json +8 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/cli",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "description": "CLI for Gjsify",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -101,6 +101,11 @@
101
101
  "__PACKAGE_VERSION__": {
102
102
  "field": "version"
103
103
  }
104
+ },
105
+ "os": {
106
+ "linux": "supported",
107
+ "darwin": "supported",
108
+ "win32": "supported"
104
109
  }
105
110
  },
106
111
  "files": [
@@ -129,19 +134,19 @@
129
134
  "cli"
130
135
  ],
131
136
  "dependencies": {
132
- "@gjsify/buffer": "^0.29.0",
133
- "@gjsify/create-app": "^0.29.0",
134
- "@gjsify/node-globals": "^0.29.0",
135
- "@gjsify/node-polyfills": "^0.29.0",
136
- "@gjsify/npm-registry": "^0.29.0",
137
- "@gjsify/resolve-npm": "^0.29.0",
138
- "@gjsify/rolldown-plugin-gjsify": "^0.29.0",
139
- "@gjsify/rolldown-plugin-pnp": "^0.29.0",
140
- "@gjsify/semver": "^0.29.0",
141
- "@gjsify/tar": "^0.29.0",
142
- "@gjsify/tsc": "^0.29.0",
143
- "@gjsify/web-polyfills": "^0.29.0",
144
- "@gjsify/workspace": "^0.29.0",
137
+ "@gjsify/buffer": "^0.31.0",
138
+ "@gjsify/create-app": "^0.31.0",
139
+ "@gjsify/node-globals": "^0.31.0",
140
+ "@gjsify/node-polyfills": "^0.31.0",
141
+ "@gjsify/npm-registry": "^0.31.0",
142
+ "@gjsify/resolve-npm": "^0.31.0",
143
+ "@gjsify/rolldown-plugin-gjsify": "^0.31.0",
144
+ "@gjsify/rolldown-plugin-pnp": "^0.31.0",
145
+ "@gjsify/semver": "^0.31.0",
146
+ "@gjsify/tar": "^0.31.0",
147
+ "@gjsify/tsc": "^0.31.0",
148
+ "@gjsify/web-polyfills": "^0.31.0",
149
+ "@gjsify/workspace": "^0.31.0",
145
150
  "cosmiconfig": "^9.0.2",
146
151
  "get-tsconfig": "^4.14.0",
147
152
  "pkg-types": "^2.3.1",
@@ -149,13 +154,13 @@
149
154
  "yargs": "^18.0.0"
150
155
  },
151
156
  "devDependencies": {
152
- "@gjsify/unit": "^0.29.0",
157
+ "@gjsify/unit": "^0.31.0",
153
158
  "@types/yargs": "^17.0.35",
154
159
  "typescript": "^6.0.3"
155
160
  },
156
161
  "peerDependencies": {
157
- "@gjsify/oxfmt-native": "^0.29.0",
158
- "@gjsify/rolldown-native": "^0.29.0"
162
+ "@gjsify/oxfmt-native": "^0.31.0",
163
+ "@gjsify/rolldown-native": "^0.31.0"
159
164
  },
160
165
  "peerDependenciesMeta": {
161
166
  "@gjsify/oxfmt-native": {
package/showcases.json CHANGED
@@ -5,57 +5,49 @@
5
5
  "name": "canvas2d-fireworks",
6
6
  "category": "dom",
7
7
  "package": "@gjsify/example-dom-canvas2d-fireworks",
8
- "description": "Colorful fireworks Canvas 2D example with Adwaita controls",
9
- "needsWebgl": false
8
+ "description": "Colorful fireworks Canvas 2D example with Adwaita controls"
10
9
  },
11
10
  {
12
11
  "name": "excalibur-jelly-jumper",
13
12
  "category": "dom",
14
13
  "package": "@gjsify/example-dom-excalibur-jelly-jumper",
15
- "description": "Excalibur.js jelly-jumper game",
16
- "needsWebgl": false
14
+ "description": "Excalibur.js jelly-jumper game"
17
15
  },
18
16
  {
19
17
  "name": "three-geometry-teapot",
20
18
  "category": "dom",
21
19
  "package": "@gjsify/example-dom-three-geometry-teapot",
22
- "description": "Three.js Utah teapot",
23
- "needsWebgl": true
20
+ "description": "Three.js Utah teapot"
24
21
  },
25
22
  {
26
23
  "name": "three-postprocessing-pixel",
27
24
  "category": "dom",
28
25
  "package": "@gjsify/example-dom-three-postprocessing-pixel",
29
- "description": "Three.js postprocessing pixel demo",
30
- "needsWebgl": true
26
+ "description": "Three.js postprocessing pixel demo"
31
27
  },
32
28
  {
33
29
  "name": "webrtc-loopback",
34
30
  "category": "dom",
35
31
  "package": "@gjsify/example-dom-webrtc-loopback",
36
- "description": "WebRTC data-channel loopback: two local peers exchange offer/answer + ICE, then echo messages over an RTCDataChannel",
37
- "needsWebgl": false
32
+ "description": "WebRTC data-channel loopback: two local peers exchange offer/answer + ICE, then echo messages over an RTCDataChannel"
38
33
  },
39
34
  {
40
35
  "name": "minimalist-browser",
41
36
  "category": "dom",
42
37
  "package": "@gjsify/example-dom-minimalist-browser",
43
- "description": "Minimalist browser with URL bar + back/forward + iframe content area; same code runs in browser (real iframe) and GJS (IFrameBridge over WebKit.WebView)",
44
- "needsWebgl": false
38
+ "description": "Minimalist browser with URL bar + back/forward + iframe content area; same code runs in browser (real iframe) and GJS (IFrameBridge over WebKit.WebView)"
45
39
  },
46
40
  {
47
41
  "name": "express-webserver",
48
42
  "category": "node",
49
43
  "package": "@gjsify/example-node-express-webserver",
50
- "description": "Express web server on GJS via @gjsify/http",
51
- "needsWebgl": false
44
+ "description": "Express web server on GJS via @gjsify/http"
52
45
  },
53
46
  {
54
47
  "name": "adwaita-storybook",
55
48
  "category": "gtk",
56
49
  "package": "@gjsify/example-gtk-adwaita-storybook",
57
- "description": "Interactive Libadwaita component browser — author one story per widget, rendered natively (GTK) and in the browser",
58
- "needsWebgl": false
50
+ "description": "Interactive Libadwaita component browser — author one story per widget, rendered natively (GTK) and in the browser"
59
51
  }
60
52
  ]
61
53
  }