create-flowdular 0.2.5 → 0.2.6
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/bin.js
CHANGED
|
@@ -243,6 +243,38 @@ function installDependencies(packageManager, directory) {
|
|
|
243
243
|
return { ok: true };
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
+
// ../dev-console/src/brand.mjs
|
|
247
|
+
var MARK = [
|
|
248
|
+
" XXX XXX",
|
|
249
|
+
" XXX XXX",
|
|
250
|
+
" XXXXXXXXXXXXXXXXX",
|
|
251
|
+
"XXXXXXXXXXXXXXXXXXX",
|
|
252
|
+
" XXX XXX",
|
|
253
|
+
"XXXXXXXXXXXXXXXXXXX",
|
|
254
|
+
" XXXXXXXXXXXXXXXXX",
|
|
255
|
+
" XXX XXX",
|
|
256
|
+
" XXX XXX"
|
|
257
|
+
];
|
|
258
|
+
function renderBrandHeader({
|
|
259
|
+
title = "FLOWDULAR",
|
|
260
|
+
subtitle = "",
|
|
261
|
+
color = false,
|
|
262
|
+
columns = process.stdout.columns ?? 80,
|
|
263
|
+
terminal = Boolean(process.stdout.isTTY)
|
|
264
|
+
} = {}) {
|
|
265
|
+
const brand = (text) => color ? `\x1B[1;38;5;42m${text}\x1B[0m` : text;
|
|
266
|
+
const muted = (text) => color ? `\x1B[90m${text}\x1B[0m` : text;
|
|
267
|
+
if (!terminal) {
|
|
268
|
+
return ` ${brand(title)}${subtitle ? ` ${muted(subtitle)}` : ""}`;
|
|
269
|
+
}
|
|
270
|
+
const heading = [
|
|
271
|
+
` ${brand(title)}`,
|
|
272
|
+
...subtitle ? [` ${muted(subtitle)}`] : []
|
|
273
|
+
];
|
|
274
|
+
if (columns < 21) return heading.join("\n");
|
|
275
|
+
return [...MARK.map((row) => ` ${brand(row)}`), "", ...heading].join("\n");
|
|
276
|
+
}
|
|
277
|
+
|
|
246
278
|
// src/report.ts
|
|
247
279
|
import { styleText } from "node:util";
|
|
248
280
|
var DEV_URL = "http://localhost:4310";
|
|
@@ -271,7 +303,11 @@ function renderNextSteps(input, color = false) {
|
|
|
271
303
|
];
|
|
272
304
|
return [
|
|
273
305
|
"",
|
|
274
|
-
|
|
306
|
+
renderBrandHeader({
|
|
307
|
+
title: "FLOWDULAR",
|
|
308
|
+
subtitle: "Project created",
|
|
309
|
+
color
|
|
310
|
+
}),
|
|
275
311
|
"",
|
|
276
312
|
...nextSteps(input).flatMap((step, index) => [
|
|
277
313
|
` ${paint(`${index + 1}.`, "cyan")} ${labels[index]}`,
|
package/package.json
CHANGED