@geastack/cli 0.1.2 → 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
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
package/src/create-geastack.mjs
CHANGED
|
@@ -38,7 +38,7 @@ export async function runCreateGeastack(argv, io = {}) {
|
|
|
38
38
|
const ctx = createContext(parsed, env, cwd)
|
|
39
39
|
const displayName = option(parsed, 'name', titleFromId(appId))
|
|
40
40
|
const coreDependency = option(parsed, 'core-dependency') || '^0.1.4'
|
|
41
|
-
const cliDependency = option(parsed, 'cli-dependency') || '^0.1.
|
|
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
|
}
|