@gjsify/create-app 0.26.1 → 0.27.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/dist-templates/adw-canvas2d/package.json +3 -3
- package/dist-templates/adw-game/package.json +4 -4
- package/dist-templates/adw-webgl/package.json +3 -3
- package/dist-templates/cli/package.json +3 -3
- package/dist-templates/gtk-minimal/package.json +1 -1
- package/dist-templates/web-server-express/package.json +3 -3
- package/dist-templates/web-server-hono/package.json +3 -3
- package/lib/create.js +16 -1
- package/package.json +3 -3
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"@girs/gjs": "^4.1.0",
|
|
17
17
|
"@girs/gobject-2.0": "^4.1.0",
|
|
18
18
|
"@girs/gtk-4.0": "^4.1.0",
|
|
19
|
-
"@gjsify/cli": "^0.
|
|
20
|
-
"@gjsify/vite-plugin-blueprint": "^0.
|
|
19
|
+
"@gjsify/cli": "^0.27.0",
|
|
20
|
+
"@gjsify/vite-plugin-blueprint": "^0.27.0",
|
|
21
21
|
"@types/node": "^25.9.2",
|
|
22
22
|
"typescript": "^6.0.3"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@gjsify/canvas2d": "^0.
|
|
25
|
+
"@gjsify/canvas2d": "^0.27.0"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"@girs/gjs": "^4.1.0",
|
|
17
17
|
"@girs/gobject-2.0": "^4.1.0",
|
|
18
18
|
"@girs/gtk-4.0": "^4.1.0",
|
|
19
|
-
"@gjsify/canvas2d": "^0.
|
|
20
|
-
"@gjsify/cli": "^0.
|
|
21
|
-
"@gjsify/vite-plugin-blueprint": "^0.
|
|
19
|
+
"@gjsify/canvas2d": "^0.27.0",
|
|
20
|
+
"@gjsify/cli": "^0.27.0",
|
|
21
|
+
"@gjsify/vite-plugin-blueprint": "^0.27.0",
|
|
22
22
|
"@types/node": "^25.9.2",
|
|
23
23
|
"typescript": "^6.0.3"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@gjsify/webgl": "^0.
|
|
26
|
+
"@gjsify/webgl": "^0.27.0",
|
|
27
27
|
"excalibur": "0.32.0"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"@girs/gjs": "^4.1.0",
|
|
17
17
|
"@girs/gobject-2.0": "^4.1.0",
|
|
18
18
|
"@girs/gtk-4.0": "^4.1.0",
|
|
19
|
-
"@gjsify/cli": "^0.
|
|
20
|
-
"@gjsify/vite-plugin-blueprint": "^0.
|
|
19
|
+
"@gjsify/cli": "^0.27.0",
|
|
20
|
+
"@gjsify/vite-plugin-blueprint": "^0.27.0",
|
|
21
21
|
"@types/node": "^25.9.2",
|
|
22
22
|
"@types/three": "^0.185.0",
|
|
23
23
|
"typescript": "^6.0.3"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@gjsify/webgl": "^0.
|
|
26
|
+
"@gjsify/webgl": "^0.27.0",
|
|
27
27
|
"three": "0.185.1"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"dev": "gjsify build src/index.ts --outfile dist/index.js && gjsify run dist/index.js"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@gjsify/cli": "^0.
|
|
15
|
-
"@gjsify/node-globals": "^0.
|
|
16
|
-
"@gjsify/runtime": "^0.
|
|
14
|
+
"@gjsify/cli": "^0.27.0",
|
|
15
|
+
"@gjsify/node-globals": "^0.27.0",
|
|
16
|
+
"@gjsify/runtime": "^0.27.0",
|
|
17
17
|
"@types/node": "^25.9.2",
|
|
18
18
|
"@types/yargs": "^17.0.35",
|
|
19
19
|
"typescript": "^6.0.3"
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"dev": "gjsify build src/index.ts --outfile dist/index.js && gjsify run dist/index.js"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@gjsify/cli": "^0.
|
|
15
|
-
"@gjsify/node-globals": "^0.
|
|
16
|
-
"@gjsify/runtime": "^0.
|
|
14
|
+
"@gjsify/cli": "^0.27.0",
|
|
15
|
+
"@gjsify/node-globals": "^0.27.0",
|
|
16
|
+
"@gjsify/runtime": "^0.27.0",
|
|
17
17
|
"@types/express": "^5.0.6",
|
|
18
18
|
"@types/node": "^25.9.2",
|
|
19
19
|
"typescript": "^6.0.3"
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"dev": "gjsify build src/index.ts --outfile dist/index.js && gjsify run dist/index.js"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@gjsify/cli": "^0.
|
|
15
|
-
"@gjsify/node-globals": "^0.
|
|
16
|
-
"@gjsify/runtime": "^0.
|
|
14
|
+
"@gjsify/cli": "^0.27.0",
|
|
15
|
+
"@gjsify/node-globals": "^0.27.0",
|
|
16
|
+
"@gjsify/runtime": "^0.27.0",
|
|
17
17
|
"@types/node": "^25.9.2",
|
|
18
18
|
"typescript": "^6.0.3"
|
|
19
19
|
},
|
package/lib/create.js
CHANGED
|
@@ -65,11 +65,26 @@ export async function createProject(options) {
|
|
|
65
65
|
substituteProjectName(targetDir, projectName);
|
|
66
66
|
if (install) {
|
|
67
67
|
console.log('Running npm install...');
|
|
68
|
+
// `shell: true` is what makes this work on Windows, where `npm` is
|
|
69
|
+
// `npm.cmd`: `CreateProcess` appends only `.exe` when it searches PATH
|
|
70
|
+
// for a bare name, so `spawnSync('npm', …)` is ENOENT there — and
|
|
71
|
+
// `spawnSync` leaves `status` NULL on a spawn error, so the `!== 0`
|
|
72
|
+
// below fired and told the user npm had failed. `npm create gjsify
|
|
73
|
+
// my-app` therefore scaffolded a project, never installed anything, and
|
|
74
|
+
// blamed npm for it. `shell: true` is the exemption the invariant in
|
|
75
|
+
// `@gjsify/cli`'s `utils/spawn.ts` sanctions for exactly this case.
|
|
68
76
|
const result = spawnSync('npm', ['install', '--no-audit', '--no-fund'], {
|
|
69
77
|
cwd: targetDir,
|
|
70
78
|
stdio: 'inherit',
|
|
79
|
+
shell: true,
|
|
71
80
|
});
|
|
72
|
-
|
|
81
|
+
// Report the spawn error itself when there is one. Without it a failure
|
|
82
|
+
// to START npm and a failure OF npm read identically, which is how the
|
|
83
|
+
// Windows case stayed invisible.
|
|
84
|
+
if (result.error) {
|
|
85
|
+
console.warn(`npm install could not start (${result.error.message}); re-run it manually.`);
|
|
86
|
+
}
|
|
87
|
+
else if (result.status !== 0) {
|
|
73
88
|
console.warn('npm install failed; re-run it manually in the project directory.');
|
|
74
89
|
}
|
|
75
90
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/create-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Create a new Gjsify project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/create.js",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"bin": "./lib/index.js",
|
|
20
20
|
"scripts": {
|
|
21
|
-
"clear": "
|
|
21
|
+
"clear": "gjsify clear lib tsconfig.tsbuildinfo",
|
|
22
22
|
"check": "gjsify tsc --noEmit",
|
|
23
|
-
"build": "node scripts/process-template.mjs && tsc &&
|
|
23
|
+
"build": "node scripts/process-template.mjs && tsc && node scripts/set-bin-mode.mjs",
|
|
24
24
|
"test": "echo 'nothing to do'"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|