create-zenbu-app 0.0.27 → 0.0.29
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/index.mjs +5 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1307,8 +1307,6 @@ async function runDesktopMode() {
|
|
|
1307
1307
|
log.info(`template=${slugTemplate} pm=${pm.type}@${pm.version}`);
|
|
1308
1308
|
log.info(`appsDir=${appsDir}`);
|
|
1309
1309
|
log.info(`logFile=${log.file}`);
|
|
1310
|
-
const spinner = p.spinner();
|
|
1311
|
-
spinner.start(`Creating ${displayName}`);
|
|
1312
1310
|
try {
|
|
1313
1311
|
if (desktopDryRun) log.info(`[dry-run] would scaffold template into ${appsDir}`);
|
|
1314
1312
|
else {
|
|
@@ -1331,18 +1329,18 @@ async function runDesktopMode() {
|
|
|
1331
1329
|
}
|
|
1332
1330
|
let installed = false;
|
|
1333
1331
|
if (!noInstall && !desktopDryRun) {
|
|
1334
|
-
|
|
1332
|
+
p.log.step(`Installing dependencies`);
|
|
1335
1333
|
log.info(`running ${pm.type} install in ${appsDir}`);
|
|
1336
1334
|
installed = runInstallSilent(appsDir, pm, log);
|
|
1337
1335
|
if (!installed) {
|
|
1338
|
-
|
|
1336
|
+
p.log.error(`Failed during ${pm.type} install. See ${log.file}`);
|
|
1339
1337
|
process.stderr.write(log.tail(40) + "\n");
|
|
1340
1338
|
process.exit(1);
|
|
1341
1339
|
}
|
|
1342
1340
|
}
|
|
1343
1341
|
if (!desktopDryRun) gitInitWithInitialCommit(appsDir);
|
|
1344
1342
|
const projectVersion = readProjectVersion(appsDir) ?? "0.0.1";
|
|
1345
|
-
|
|
1343
|
+
p.log.step(`Building desktop app`);
|
|
1346
1344
|
const result = await buildDesktopApp({
|
|
1347
1345
|
displayName,
|
|
1348
1346
|
slug,
|
|
@@ -1357,7 +1355,7 @@ async function runDesktopMode() {
|
|
|
1357
1355
|
dryRun: desktopDryRun,
|
|
1358
1356
|
skipDepsSig: noInstall
|
|
1359
1357
|
});
|
|
1360
|
-
|
|
1358
|
+
p.log.success(`Created ${displayName}`);
|
|
1361
1359
|
log.close();
|
|
1362
1360
|
p.note([
|
|
1363
1361
|
`App: ${result.destApp}`,
|
|
@@ -1366,7 +1364,7 @@ async function runDesktopMode() {
|
|
|
1366
1364
|
].join("\n"), "Details");
|
|
1367
1365
|
p.outro(`Launch with: ${result.launchCommand}`);
|
|
1368
1366
|
} catch (err) {
|
|
1369
|
-
|
|
1367
|
+
p.log.error(`Failed: see ${log.file}`);
|
|
1370
1368
|
log.error(err.stack ?? err.message ?? String(err));
|
|
1371
1369
|
process.stderr.write("\n--- last log lines ---\n" + log.tail(40) + "\n");
|
|
1372
1370
|
log.close();
|