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
- ` ${paint("FLOWDULAR", "bold")} ${paint("Project created", "green")}`,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-flowdular",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "type": "module",
5
5
  "description": "Scaffold a Flowdular application: the platform, one example module and the secrets a fresh install needs.",
6
6
  "license": "MIT",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "octane": "0.1.51",
18
- "segment-state": "0.2.0",
19
- "@flowdular/sdk": "0.2.3"
18
+ "segment-state": "0.2.1",
19
+ "@flowdular/sdk": "0.2.4"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@tsrx/typescript-plugin": "0.3.120",
@@ -24,7 +24,7 @@
24
24
  "devDependencies": {
25
25
  "@tsrx/prettier-plugin": "0.3.120",
26
26
  "prettier": "3.6.2",
27
- "flowdular": "0.2.3",
27
+ "flowdular": "0.2.4",
28
28
  "rulesync": "16.21.0"
29
29
  }
30
30
  }
@@ -15,7 +15,7 @@
15
15
  "@octanejs/vite-plugin": "0.1.51",
16
16
  "octane": "0.1.51",
17
17
  "pg": "8.23.0",
18
- "@flowdular/sdk": "0.2.3"
18
+ "@flowdular/sdk": "0.2.4"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@octanejs/app-core": "0.0.47",
@@ -4,3 +4,4 @@ packages:
4
4
 
5
5
  allowBuilds:
6
6
  esbuild: true
7
+ tldjs: false