create-zenbu-app 0.0.26 → 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
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,16 +1330,18 @@ async function runDesktopMode() {
|
|
|
1331
1330
|
}
|
|
1332
1331
|
let installed = false;
|
|
1333
1332
|
if (!noInstall && !desktopDryRun) {
|
|
1333
|
+
p.log.step(`Installing dependencies (this can take a minute)`);
|
|
1334
1334
|
log.info(`running ${pm.type} install in ${appsDir}`);
|
|
1335
1335
|
installed = runInstallSilent(appsDir, pm, log);
|
|
1336
1336
|
if (!installed) {
|
|
1337
|
-
|
|
1337
|
+
p.log.error(`Failed during ${pm.type} install. See ${log.file}`);
|
|
1338
1338
|
process.stderr.write(log.tail(40) + "\n");
|
|
1339
1339
|
process.exit(1);
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
1342
|
if (!desktopDryRun) gitInitWithInitialCommit(appsDir);
|
|
1343
1343
|
const projectVersion = readProjectVersion(appsDir) ?? "0.0.1";
|
|
1344
|
+
p.log.step(`Building desktop app`);
|
|
1344
1345
|
const result = await buildDesktopApp({
|
|
1345
1346
|
displayName,
|
|
1346
1347
|
slug,
|
|
@@ -1355,7 +1356,7 @@ async function runDesktopMode() {
|
|
|
1355
1356
|
dryRun: desktopDryRun,
|
|
1356
1357
|
skipDepsSig: noInstall
|
|
1357
1358
|
});
|
|
1358
|
-
|
|
1359
|
+
p.log.success(`Created ${displayName}`);
|
|
1359
1360
|
log.close();
|
|
1360
1361
|
p.note([
|
|
1361
1362
|
`App: ${result.destApp}`,
|
|
@@ -1364,7 +1365,7 @@ async function runDesktopMode() {
|
|
|
1364
1365
|
].join("\n"), "Details");
|
|
1365
1366
|
p.outro(`Launch with: ${result.launchCommand}`);
|
|
1366
1367
|
} catch (err) {
|
|
1367
|
-
|
|
1368
|
+
p.log.error(`Failed: see ${log.file}`);
|
|
1368
1369
|
log.error(err.stack ?? err.message ?? String(err));
|
|
1369
1370
|
process.stderr.write("\n--- last log lines ---\n" + log.tail(40) + "\n");
|
|
1370
1371
|
log.close();
|
package/package.json
CHANGED
|
@@ -14,8 +14,8 @@ export function Home() {
|
|
|
14
14
|
<div className="flex-1 max-w-prose">
|
|
15
15
|
<h1 className="text-2xl font-semibold mb-2">{{displayName}}</h1>
|
|
16
16
|
<p className="text-zinc-500 dark:text-zinc-400 text-sm leading-relaxed mb-6">
|
|
17
|
-
This app is yours to edit. The source lives on your machine
|
|
18
|
-
change you save reloads instantly.
|
|
17
|
+
This app is yours to edit. The source code lives on your machine
|
|
18
|
+
and any change you save reloads instantly.
|
|
19
19
|
</p>
|
|
20
20
|
|
|
21
21
|
<div className="text-xs uppercase tracking-wide text-zinc-400 dark:text-zinc-500 mb-1.5">
|