@gjsify/cli 0.30.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 (47) hide show
  1. package/dist/cli.gjs.mjs +186 -185
  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/check-system-deps.d.ts +66 -1
  25. package/lib/utils/check-system-deps.js +139 -2
  26. package/lib/utils/detect-native-packages.js +12 -1
  27. package/lib/utils/discover-showcases.d.ts +0 -2
  28. package/lib/utils/discover-showcases.js +0 -1
  29. package/lib/utils/dlx-cache.d.ts +22 -2
  30. package/lib/utils/dlx-cache.js +62 -6
  31. package/lib/utils/force-exit.d.ts +10 -0
  32. package/lib/utils/force-exit.js +43 -0
  33. package/lib/utils/gi-search-path.d.ts +36 -0
  34. package/lib/utils/gi-search-path.js +146 -0
  35. package/lib/utils/gjs-source-escape.d.ts +10 -0
  36. package/lib/utils/gjs-source-escape.js +49 -0
  37. package/lib/utils/gjsify-shim.d.ts +29 -2
  38. package/lib/utils/gjsify-shim.js +131 -22
  39. package/lib/utils/install-global.d.ts +30 -2
  40. package/lib/utils/install-global.js +38 -4
  41. package/lib/utils/oxc-resolve.d.ts +1 -1
  42. package/lib/utils/oxc-resolve.js +10 -6
  43. package/lib/utils/stdin.d.ts +3 -13
  44. package/lib/utils/stdin.js +21 -100
  45. package/lib/utils/system-gi.js +10 -1
  46. package/package.json +22 -17
  47. package/showcases.json +8 -16
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
  }