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