@geastack/cli 0.1.1 → 0.1.3
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/docs/SPEC.md +1 -2
- package/package.json +3 -3
- package/src/create-geastack.mjs +12 -10
- package/src/gea.mjs +0 -2
- package/starters/bundled/counter/package.json +0 -1
- package/starters/catalog.json +0 -1
package/docs/SPEC.md
CHANGED
|
@@ -154,7 +154,6 @@ Core fields:
|
|
|
154
154
|
"id": "bouncing-balls-jsx",
|
|
155
155
|
"name": "Balls JSX",
|
|
156
156
|
"entry": "index.tsx",
|
|
157
|
-
"runtime": "gea",
|
|
158
157
|
"targets": {
|
|
159
158
|
"web": true,
|
|
160
159
|
"esp32": true,
|
|
@@ -171,7 +170,7 @@ Validation rules:
|
|
|
171
170
|
|
|
172
171
|
- `id` is required and should be stable.
|
|
173
172
|
- `entry` is required and must exist.
|
|
174
|
-
- `runtime` defaults to `gea
|
|
173
|
+
- `runtime` defaults to `gea`; only non-Gea native applications should set it.
|
|
175
174
|
- `targets` must be explicit for generated apps.
|
|
176
175
|
- target backends may reject apps whose runtime or capabilities they do not
|
|
177
176
|
support.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geastack/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Command-line front door for GeaStack apps, targets, and local toolchains.",
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"create-geastack": "bin/create-geastack.mjs"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@geastack/core": "0.1.
|
|
31
|
-
"@geastack/targets": "0.1.
|
|
30
|
+
"@geastack/core": "0.1.4",
|
|
31
|
+
"@geastack/targets": "0.1.4"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"check": "node --check bin/gea.mjs && node --check bin/create-geastack.mjs && find src test packages -name '*.mjs' -print0 | xargs -0 -n1 node --check",
|
package/src/create-geastack.mjs
CHANGED
|
@@ -37,8 +37,8 @@ export async function runCreateGeastack(argv, io = {}) {
|
|
|
37
37
|
|
|
38
38
|
const ctx = createContext(parsed, env, cwd)
|
|
39
39
|
const displayName = option(parsed, 'name', titleFromId(appId))
|
|
40
|
-
const coreDependency = option(parsed, 'core-dependency') || '^0.1.
|
|
41
|
-
const cliDependency = option(parsed, 'cli-dependency') || '^0.1.
|
|
40
|
+
const coreDependency = option(parsed, 'core-dependency') || '^0.1.4'
|
|
41
|
+
const cliDependency = option(parsed, 'cli-dependency') || '^0.1.3'
|
|
42
42
|
const starter = await resolveStarter(ctx, parsed, io)
|
|
43
43
|
|
|
44
44
|
fs.mkdirSync(targetDir, { recursive: true })
|
|
@@ -204,6 +204,15 @@ function targetManifestFromObject(targets = {}) {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
function packageJson({ appId, displayName, targets, coreDependency, cliDependency, sourcePackage = {}, sourceManifest = {} }) {
|
|
207
|
+
const geaManifest = {
|
|
208
|
+
...sourceManifest,
|
|
209
|
+
id: appId,
|
|
210
|
+
name: displayName,
|
|
211
|
+
entry: sourceManifest.entry || 'index.tsx',
|
|
212
|
+
targets
|
|
213
|
+
}
|
|
214
|
+
if (!geaManifest.runtime || geaManifest.runtime === 'gea') delete geaManifest.runtime
|
|
215
|
+
|
|
207
216
|
return {
|
|
208
217
|
name: `gea-${appId}`,
|
|
209
218
|
version: '0.1.0',
|
|
@@ -226,14 +235,7 @@ function packageJson({ appId, displayName, targets, coreDependency, cliDependenc
|
|
|
226
235
|
typescript: sourcePackage.devDependencies?.typescript || 'latest',
|
|
227
236
|
vite: sourcePackage.devDependencies?.vite || 'latest'
|
|
228
237
|
},
|
|
229
|
-
gea:
|
|
230
|
-
...sourceManifest,
|
|
231
|
-
id: appId,
|
|
232
|
-
name: displayName,
|
|
233
|
-
entry: sourceManifest.entry || 'index.tsx',
|
|
234
|
-
runtime: sourceManifest.runtime || 'gea',
|
|
235
|
-
targets
|
|
236
|
-
},
|
|
238
|
+
gea: geaManifest,
|
|
237
239
|
license: 'MIT'
|
|
238
240
|
}
|
|
239
241
|
}
|
package/src/gea.mjs
CHANGED
|
@@ -267,8 +267,6 @@ function runBoard(ctx, action, parsed, opts) {
|
|
|
267
267
|
if (opts.board) args.push(`--board=${opts.board}`)
|
|
268
268
|
if (opts.target) args.push(`--target=${opts.target}`)
|
|
269
269
|
if (opts.appId) args.push(`--app=${opts.appId}`)
|
|
270
|
-
const residentApps = option(parsed, 'resident-apps')
|
|
271
|
-
if (residentApps) args.push(`--resident-apps=${residentApps}`)
|
|
272
270
|
const port = option(parsed, 'port')
|
|
273
271
|
if (port) args.push(String(port))
|
|
274
272
|
args.push(...parsed.passthrough)
|