@geastack/cli 0.1.112 → 0.1.113
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/package.json +2 -2
- package/src/build-config.mjs +1 -0
- package/src/manifest.mjs +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geastack/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.113",
|
|
4
4
|
"description": "Command-line front door for GeaStack apps, targets, and local toolchains.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@clack/prompts": "^1.8.0",
|
|
40
40
|
"@geastack/simulator": "^0.1.15",
|
|
41
|
-
"@geastack/targets": "^0.1.
|
|
41
|
+
"@geastack/targets": "^0.1.110",
|
|
42
42
|
"picocolors": "^1.1.1",
|
|
43
43
|
"serialport": "^13.0.0"
|
|
44
44
|
},
|
package/src/build-config.mjs
CHANGED
|
@@ -16,6 +16,7 @@ export const buildOptions = {
|
|
|
16
16
|
'compiler.staticCssTapeMinChunk': { type: 'integer', min: 1 },
|
|
17
17
|
'compiler.translationUnits': { values: ['default', 'per-file', 'balanced'] },
|
|
18
18
|
'compiler.storeRelowering': { type: 'boolean' },
|
|
19
|
+
'compiler.heapMiB': { type: 'integer', min: 512 },
|
|
19
20
|
'compiler.generatedCodeOptimization': { values: ['O0', 'O1', 'O2', 'O3', 'Os', 'Og'] },
|
|
20
21
|
'compiler.numberPrecision': { values: ['float64', 'float32'], macro: 'GEA_NUMBER_FLOAT', encode: v => v === 'float32' ? 1 : undefined },
|
|
21
22
|
'ui.styleStorage': { values: ['inline', 'shared'], macro: 'GEA_EMBEDDED_SHARED_STYLES', encode: v => Number(v === 'shared') },
|
package/src/manifest.mjs
CHANGED
|
@@ -96,7 +96,7 @@ export function validateApp(app) {
|
|
|
96
96
|
}
|
|
97
97
|
if (config.providers !== null && (typeof config.providers !== 'object' || Array.isArray(config.providers))) errors.push(`${where('providers')} must be an object keyed by capability`)
|
|
98
98
|
else if (Object.keys(config.providers).length && !TARGET_PROVIDER_TARGETS.includes(target)) errors.push(`${where('providers')} is supported only by ${TARGET_PROVIDER_TARGETS.join(', ')}`)
|
|
99
|
-
if (config.tsconfig && !
|
|
99
|
+
if (config.tsconfig && !TARGET_TSCONFIG_TARGETS.includes(target)) errors.push(`${where('tsconfig')} is supported only by ${TARGET_TSCONFIG_TARGETS.join(', ')}`)
|
|
100
100
|
else if (config.tsconfig && !exists(path.join(app.root, config.tsconfig))) errors.push(`${where('tsconfig')} does not exist: ${config.tsconfig}`)
|
|
101
101
|
try { resolveNativeResources(app.root, target, config.nativeResources); resolveNativeLink(app.root, target, config) } catch (error) { errors.push(`${where('nativeLibraries/frameworks')}: ${error.message}`) }
|
|
102
102
|
for (const fragment of config.ldFragments) {
|
|
@@ -362,10 +362,11 @@ export function resolveAppSourcePath(root, source) {
|
|
|
362
362
|
|
|
363
363
|
// Targets whose build consumes per-target gea.targets.<target>.nativeSources,
|
|
364
364
|
// gea.targets.<target>.providers (runtime implementations a package requires,
|
|
365
|
-
// staged with the executable)
|
|
366
|
-
// TypeScript project the compiler reads the program under). The other targets
|
|
367
|
-
// take gea.nativeSources only.
|
|
365
|
+
// staged with the executable). The other targets take gea.nativeSources only.
|
|
368
366
|
const TARGET_NATIVE_SOURCE_TARGETS = ['windows', 'ios', 'tvos']
|
|
367
|
+
// Targets whose build passes gea.targets.<target>.tsconfig (the TypeScript
|
|
368
|
+
// project the compiler reads the program under) to the compiler.
|
|
369
|
+
const TARGET_TSCONFIG_TARGETS = ['windows', 'ios', 'tvos', 'macos']
|
|
369
370
|
const TARGET_PROVIDER_TARGETS = ['windows']
|
|
370
371
|
|
|
371
372
|
export function normalizeNativeSources(raw) {
|