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.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -7
  2. 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
- spinner.message(`Installing dependencies`);
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
- spinner.stop(`Failed during ${pm.type} install. See ${log.file}`);
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
- spinner.message(`Building app`);
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
- spinner.stop(`Created ${displayName}`);
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
- spinner.stop(`Failed: see ${log.file}`);
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-zenbu-app",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "Scaffold a new Zenbu app",
5
5
  "type": "module",
6
6
  "publishConfig": {