@donotdev/cli 0.0.6 → 0.0.8

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 (87) hide show
  1. package/README.md +3 -18
  2. package/dependencies-matrix.json +64 -121
  3. package/dist/bin/commands/build.js +173 -161
  4. package/dist/bin/commands/bump.js +181 -156
  5. package/dist/bin/commands/cacheout.js +188 -171
  6. package/dist/bin/commands/create-app.js +213 -156
  7. package/dist/bin/commands/create-project.js +183 -154
  8. package/dist/bin/commands/deploy.js +491 -477
  9. package/dist/bin/commands/dev.js +176 -160
  10. package/dist/bin/commands/emu.js +181 -165
  11. package/dist/bin/commands/format.js +191 -174
  12. package/dist/bin/commands/lint.js +191 -171
  13. package/dist/bin/commands/preview.js +177 -161
  14. package/dist/bin/commands/sync-secrets.js +172 -158
  15. package/dist/bin/commands/wai.d.ts +11 -0
  16. package/dist/bin/commands/wai.d.ts.map +1 -0
  17. package/dist/bin/commands/wai.js +12 -0
  18. package/dist/bin/commands/wai.js.map +1 -0
  19. package/dist/bin/dndev.js +24 -24
  20. package/dist/bin/donotdev.js +24 -24
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +661 -669
  24. package/dist/index.js.map +1 -1
  25. package/package.json +1 -1
  26. package/templates/app-demo/src/config/app.ts.example +12 -0
  27. package/templates/app-next/src/config/app.ts.example +75 -48
  28. package/templates/app-vite/index.html.example +71 -37
  29. package/templates/app-vite/src/config/app.ts.example +75 -47
  30. package/templates/app-vite/src/pages/FormPageExample.tsx.example +152 -0
  31. package/templates/app-vite/src/pages/HomePage.tsx.example +81 -134
  32. package/templates/app-vite/src/pages/ListPageExample.tsx.example +88 -0
  33. package/templates/functions-firebase/build.mjs.example +8 -1
  34. package/templates/functions-firebase/functions-firebase/build.mjs.example +8 -1
  35. package/templates/functions-firebase/functions-firebase/src/index.ts.example +19 -25
  36. package/templates/functions-firebase/functions.config.js.example +35 -0
  37. package/templates/root-consumer/entities/ExampleEntity.ts.example +223 -0
  38. package/templates/root-consumer/entities/demo.ts.example +576 -0
  39. package/templates/root-consumer/entities/index.ts.example +15 -0
  40. package/templates/root-consumer/eslint.config.js.example +2 -80
  41. package/templates/root-consumer/guides/{AGENT_START_HERE.md.example → dndev/AGENT_START_HERE.md.example} +22 -0
  42. package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +231 -0
  43. package/templates/root-consumer/guides/{SETUP_AUTH.md.example → dndev/SETUP_AUTH.md.example} +30 -0
  44. package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +539 -0
  45. package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +116 -0
  46. package/templates/root-consumer/guides/{SETUP_I18N.md.example → dndev/SETUP_I18N.md.example} +46 -0
  47. package/templates/root-consumer/guides/wai-way/WAI_WAY_CLI.md.example +404 -0
  48. package/templates/root-consumer/guides/wai-way/agents/architect.md.example +78 -0
  49. package/templates/root-consumer/guides/wai-way/agents/builder.md.example +87 -0
  50. package/templates/root-consumer/guides/wai-way/agents/extractor.md.example +325 -0
  51. package/templates/root-consumer/guides/wai-way/agents/polisher.md.example +100 -0
  52. package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +281 -0
  53. package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +77 -0
  54. package/templates/root-consumer/guides/wai-way/blueprints/2_entities.md.example +104 -0
  55. package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +124 -0
  56. package/templates/root-consumer/guides/wai-way/blueprints/4_configure.md.example +165 -0
  57. package/templates/root-consumer/guides/wai-way/context_map.json.example +95 -0
  58. package/templates/root-consumer/guides/wai-way/entity_patterns.md.example +840 -0
  59. package/templates/root-consumer/guides/wai-way/page_patterns.md.example +686 -0
  60. package/templates/root-consumer/guides/wai-way/presets_guide.md.example +217 -0
  61. package/templates/root-consumer/guides/wai-way/spec_template.md.example +312 -0
  62. package/templates/functions-firebase/functions-firebase/src/crud/createEntity.ts.example +0 -19
  63. package/templates/functions-firebase/functions-firebase/src/crud/deleteEntity.ts.example +0 -14
  64. package/templates/functions-firebase/functions-firebase/src/crud/getEntity.ts.example +0 -14
  65. package/templates/functions-firebase/functions-firebase/src/crud/index.ts.example +0 -12
  66. package/templates/functions-firebase/functions-firebase/src/crud/listEntities.ts.example +0 -14
  67. package/templates/functions-firebase/functions-firebase/src/crud/updateEntity.ts.example +0 -14
  68. package/templates/root-consumer/guides/COMPONENTS_CRUD.md.example +0 -70
  69. package/templates/root-consumer/guides/SETUP_CRUD.md.example +0 -1244
  70. package/templates/root-consumer/guides/SETUP_FUNCTIONS.md.example +0 -114
  71. /package/templates/root-consumer/guides/{COMPONENTS_ADV.md.example → dndev/COMPONENTS_ADV.md.example} +0 -0
  72. /package/templates/root-consumer/guides/{COMPONENTS_ATOMIC.md.example → dndev/COMPONENTS_ATOMIC.md.example} +0 -0
  73. /package/templates/root-consumer/guides/{COMPONENTS_UI.md.example → dndev/COMPONENTS_UI.md.example} +0 -0
  74. /package/templates/root-consumer/guides/{ENV_SETUP.md.example → dndev/ENV_SETUP.md.example} +0 -0
  75. /package/templates/root-consumer/guides/{INDEX.md.example → dndev/INDEX.md.example} +0 -0
  76. /package/templates/root-consumer/guides/{SETUP_APP_CONFIG.md.example → dndev/SETUP_APP_CONFIG.md.example} +0 -0
  77. /package/templates/root-consumer/guides/{SETUP_BILLING.md.example → dndev/SETUP_BILLING.md.example} +0 -0
  78. /package/templates/root-consumer/guides/{SETUP_LAYOUTS.md.example → dndev/SETUP_LAYOUTS.md.example} +0 -0
  79. /package/templates/root-consumer/guides/{SETUP_OAUTH.md.example → dndev/SETUP_OAUTH.md.example} +0 -0
  80. /package/templates/root-consumer/guides/{SETUP_PAGES.md.example → dndev/SETUP_PAGES.md.example} +0 -0
  81. /package/templates/root-consumer/guides/{SETUP_PWA.md.example → dndev/SETUP_PWA.md.example} +0 -0
  82. /package/templates/root-consumer/guides/{SETUP_THEMES.md.example → dndev/SETUP_THEMES.md.example} +0 -0
  83. /package/templates/root-consumer/guides/{USE_ROUTING.md.example → dndev/USE_ROUTING.md.example} +0 -0
  84. /package/templates/root-consumer/guides/{advanced → dndev/advanced}/APP_CHECK.md.example +0 -0
  85. /package/templates/root-consumer/guides/{advanced → dndev/advanced}/COOKIE_REFERENCE.md.example +0 -0
  86. /package/templates/root-consumer/guides/{advanced → dndev/advanced}/EMULATORS.md.example +0 -0
  87. /package/templates/root-consumer/guides/{advanced → dndev/advanced}/VERSION_CONTROL.md.example +0 -0
@@ -164,6 +164,8 @@ var require_picocolors = __commonJS({
164
164
  });
165
165
 
166
166
  // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
167
+ import { stdin as j, stdout as M } from "node:process";
168
+ import { Writable as X } from "node:stream";
167
169
  function DD({ onlyFirst: e2 = false } = {}) {
168
170
  const t = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
169
171
  return new RegExp(t, e2 ? void 0 : "g");
@@ -259,11 +261,12 @@ var init_dist = __esm({
259
261
  });
260
262
 
261
263
  // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs
264
+ import { stripVTControlCharacters as S } from "node:util";
262
265
  import y from "node:process";
263
266
  function ce() {
264
267
  return y.platform !== "win32" ? y.env.TERM !== "linux" : !!y.env.CI || !!y.env.WT_SESSION || !!y.env.TERMINUS_SUBLIME || y.env.ConEmuTask === "{cmd::Cmder}" || y.env.TERM_PROGRAM === "Terminus-Sublime" || y.env.TERM_PROGRAM === "vscode" || y.env.TERM === "xterm-256color" || y.env.TERM === "alacritty" || y.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
265
268
  }
266
- var import_picocolors, import_sisteransi2, V, u, le, L2, W2, C, ue, o, d, k, P, A2, T, F, $e, _2, me, de, pe, q, D, U, K, M, J;
269
+ var import_picocolors, import_sisteransi2, V, u, le, L2, W2, C, ue, o, d, k, P, A2, T, F, $e, _2, me, de, pe, q, D, U, K, M2, J;
267
270
  var init_dist2 = __esm({
268
271
  "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs"() {
269
272
  init_utils();
@@ -294,7 +297,7 @@ var init_dist2 = __esm({
294
297
  D = u("\u25C6", "*");
295
298
  U = u("\u25B2", "!");
296
299
  K = u("\u25A0", "x");
297
- M = { message: (t = "", { symbol: n = import_picocolors.default.gray(o) } = {}) => {
300
+ M2 = { message: (t = "", { symbol: n = import_picocolors.default.gray(o) } = {}) => {
298
301
  const r2 = [`${import_picocolors.default.gray(o)}`];
299
302
  if (t) {
300
303
  const [i, ...s] = t.split(`
@@ -305,23 +308,24 @@ var init_dist2 = __esm({
305
308
  `)}
306
309
  `);
307
310
  }, info: (t) => {
308
- M.message(t, { symbol: import_picocolors.default.blue(q) });
311
+ M2.message(t, { symbol: import_picocolors.default.blue(q) });
309
312
  }, success: (t) => {
310
- M.message(t, { symbol: import_picocolors.default.green(D) });
313
+ M2.message(t, { symbol: import_picocolors.default.green(D) });
311
314
  }, step: (t) => {
312
- M.message(t, { symbol: import_picocolors.default.green(C) });
315
+ M2.message(t, { symbol: import_picocolors.default.green(C) });
313
316
  }, warn: (t) => {
314
- M.message(t, { symbol: import_picocolors.default.yellow(U) });
317
+ M2.message(t, { symbol: import_picocolors.default.yellow(U) });
315
318
  }, warning: (t) => {
316
- M.warn(t);
319
+ M2.warn(t);
317
320
  }, error: (t) => {
318
- M.message(t, { symbol: import_picocolors.default.red(K) });
321
+ M2.message(t, { symbol: import_picocolors.default.red(K) });
319
322
  } };
320
323
  J = `${import_picocolors.default.gray(o)} `;
321
324
  }
322
325
  });
323
326
 
324
327
  // packages/tooling/src/utils/cli-output.ts
328
+ import "node:os";
325
329
  function supportsColor() {
326
330
  if (process.env.NO_COLOR) return false;
327
331
  if (process.platform === "win32") {
@@ -402,7 +406,7 @@ var init_cli_output = __esm({
402
406
  error(...args) {
403
407
  if (currentLogLevel < 0 /* Quiet */) return;
404
408
  const message = formatMessage(...args);
405
- M.error(colorize(message, colors.brightRed));
409
+ M2.error(colorize(message, colors.brightRed));
406
410
  },
407
411
  /**
408
412
  * Logs a warning message (shows at Normal level and above)
@@ -411,7 +415,7 @@ var init_cli_output = __esm({
411
415
  warn(...args) {
412
416
  if (currentLogLevel < 1 /* Normal */) return;
413
417
  const message = formatMessage(...args);
414
- M.warn(colorize(message, colors.brightYellow));
418
+ M2.warn(colorize(message, colors.brightYellow));
415
419
  },
416
420
  /**
417
421
  * Logs an info message (shows at Normal level and above)
@@ -420,7 +424,7 @@ var init_cli_output = __esm({
420
424
  info(...args) {
421
425
  if (currentLogLevel < 1 /* Normal */) return;
422
426
  const message = formatMessage(...args);
423
- M.info(colorize(message, colors.brightCyan));
427
+ M2.info(colorize(message, colors.brightCyan));
424
428
  },
425
429
  /**
426
430
  * Logs a success message (shows at Normal level and above)
@@ -429,7 +433,7 @@ var init_cli_output = __esm({
429
433
  success(...args) {
430
434
  if (currentLogLevel < 1 /* Normal */) return;
431
435
  const message = formatMessage(...args);
432
- M.success(colorize(message, colors.brightGreen));
436
+ M2.success(colorize(message, colors.brightGreen));
433
437
  },
434
438
  /**
435
439
  * Logs a debug message (only shows at Verbose level and above)
@@ -438,7 +442,7 @@ var init_cli_output = __esm({
438
442
  debug(...args) {
439
443
  if (currentLogLevel < 2 /* Verbose */) return;
440
444
  const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
441
- M.message(
445
+ M2.message(
442
446
  colorize(
443
447
  `[${timeStamp}] \u{1F50D} DEBUG: ${formatMessage(...args)}`,
444
448
  colors.gray
@@ -452,7 +456,7 @@ var init_cli_output = __esm({
452
456
  trace(...args) {
453
457
  if (currentLogLevel < 3 /* Debug */) return;
454
458
  const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
455
- M.message(
459
+ M2.message(
456
460
  colorize(
457
461
  `[${timeStamp}] \u{1F52C} TRACE: ${formatMessage(...args)}`,
458
462
  colors.gray
@@ -467,155 +471,6 @@ var init_cli_output = __esm({
467
471
  }
468
472
  });
469
473
 
470
- // packages/core/config/constants.js
471
- function getPatternsFor(type, repoRoot = null) {
472
- const patterns = SCAN_PATTERNS[type];
473
- if (!patterns) {
474
- throw new Error(`Unknown pattern type: ${type}`);
475
- }
476
- if (repoRoot && patterns.framework) {
477
- return {
478
- ...patterns,
479
- framework: patterns.framework.map((pattern) => `${repoRoot}/${pattern}`)
480
- };
481
- }
482
- return patterns;
483
- }
484
- function getGlobOptionsFor(type) {
485
- return GLOB_OPTIONS[type] || GLOB_OPTIONS.base;
486
- }
487
- var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
488
- var init_constants = __esm({
489
- "packages/core/config/constants.js"() {
490
- "use strict";
491
- init_utils();
492
- I18N_PATHS = {
493
- // Monorepo source structure (locales at root, not in src/)
494
- SOURCE_ROOT: "packages/core/i18n",
495
- SOURCE_LOCALES: "packages/core/i18n/locales",
496
- SOURCE_EAGER: "packages/core/i18n/locales/eager",
497
- SOURCE_LAZY: "packages/core/i18n/locales/lazy",
498
- // Published structure (same as source - no flattening needed)
499
- PUBLISHED_ROOT: "i18n",
500
- PUBLISHED_LOCALES: "i18n/locales",
501
- PUBLISHED_EAGER: "i18n/locales/eager",
502
- PUBLISHED_LAZY: "i18n/locales/lazy"
503
- };
504
- SCAN_PATTERNS = {
505
- routes: {
506
- consumer: ["src/**/*Page.tsx", "src/pages/**/*Page.tsx"],
507
- exclude: [
508
- "**/node_modules/**",
509
- "**/dist/**",
510
- "**/build/**",
511
- "**/*.test.tsx",
512
- "**/*.stories.tsx"
513
- ],
514
- extensions: [".tsx"]
515
- },
516
- css: {
517
- consumer: ["src/**/*.css"],
518
- themes: ["src/**/*.css"],
519
- extensions: [".css", ".scss", ".sass"],
520
- framework: [
521
- "packages/ui/src/**/*.css",
522
- "packages/core/components/src/**/*.css",
523
- "packages/core/templates/src/**/*.css"
524
- ]
525
- },
526
- i18n: {
527
- eager: ["src/locales/*_*.json"],
528
- lazy: ["src/**/locales/*_*.json", "!src/locales/*_*.json"],
529
- framework: {
530
- eager: [`${I18N_PATHS.SOURCE_EAGER}/*_*.json`],
531
- lazy: [`${I18N_PATHS.SOURCE_LAZY}/*_*.json`]
532
- },
533
- extensions: [".json"]
534
- },
535
- assets: {
536
- consumer: ["public/**/*"],
537
- fallback: ["manifest.json"],
538
- modern: [
539
- "logo.svg",
540
- "favicon.svg",
541
- "apple-touch-icon.png",
542
- "android-chrome-192x192.png",
543
- "android-chrome-512x512.png"
544
- ],
545
- patterns: [
546
- "favicon.svg",
547
- "favicon.ico",
548
- "favicon-*.png",
549
- "logo.svg",
550
- "logo.png",
551
- "logo.webp",
552
- "logo.avif",
553
- "apple-touch-icon*.png",
554
- "android-chrome-*.png",
555
- "manifest.json"
556
- ],
557
- fonts: ["fonts/**/*.woff2", "fonts/**/*.woff", "fonts/**/*.ttf"],
558
- framework: ["packages/ui/assets/**/*"]
559
- },
560
- pwa: {
561
- consumer: [
562
- "public/manifest.json",
563
- "public/service-worker.js",
564
- "public/sw.js",
565
- "public/icon-192x192.png",
566
- "public/icon-512x512.png",
567
- "public/favicon.ico",
568
- "public/favicon.svg",
569
- "public/apple-touch-icon.png",
570
- "public/logo.svg"
571
- ],
572
- exclude: ["**/node_modules/**", "**/dist/**", "**/build/**"],
573
- extensions: [".json", ".js", ".png", ".svg", ".ico"],
574
- framework: ["packages/ui/assets/**/*"]
575
- },
576
- globalIgnore: [
577
- "**/node_modules/**",
578
- "**/dist/**",
579
- "**/build/**",
580
- "**/.git/**",
581
- "**/coverage/**",
582
- "**/test/**"
583
- ]
584
- };
585
- GLOB_OPTIONS = {
586
- base: {
587
- absolute: true,
588
- onlyFiles: true,
589
- ignore: SCAN_PATTERNS.globalIgnore
590
- },
591
- css: {
592
- absolute: true,
593
- onlyFiles: true,
594
- ignore: [...SCAN_PATTERNS.globalIgnore, "**/*.test.css"]
595
- },
596
- routes: {
597
- absolute: true,
598
- onlyFiles: true,
599
- ignore: [
600
- ...SCAN_PATTERNS.globalIgnore,
601
- "**/*.test.tsx",
602
- "**/*.stories.tsx"
603
- ]
604
- },
605
- i18n: {
606
- absolute: true,
607
- onlyFiles: true,
608
- ignore: SCAN_PATTERNS.globalIgnore
609
- },
610
- assets: {
611
- absolute: true,
612
- onlyFiles: true,
613
- ignore: SCAN_PATTERNS.globalIgnore
614
- }
615
- };
616
- }
617
- });
618
-
619
474
  // node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
620
475
  var require_array = __commonJS({
621
476
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
@@ -6200,7 +6055,167 @@ var require_out4 = __commonJS({
6200
6055
  }
6201
6056
  });
6202
6057
 
6058
+ // packages/core/config/constants.js
6059
+ function getPatternsFor(type, repoRoot = null) {
6060
+ const patterns = SCAN_PATTERNS[type];
6061
+ if (!patterns) {
6062
+ throw new Error(`Unknown pattern type: ${type}`);
6063
+ }
6064
+ if (repoRoot && patterns.framework) {
6065
+ return {
6066
+ ...patterns,
6067
+ framework: patterns.framework.map((pattern) => `${repoRoot}/${pattern}`)
6068
+ };
6069
+ }
6070
+ return patterns;
6071
+ }
6072
+ function getGlobOptionsFor(type) {
6073
+ return GLOB_OPTIONS[type] || GLOB_OPTIONS.base;
6074
+ }
6075
+ var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
6076
+ var init_constants = __esm({
6077
+ "packages/core/config/constants.js"() {
6078
+ "use strict";
6079
+ init_utils();
6080
+ I18N_PATHS = {
6081
+ // Monorepo source structure (locales at root, not in src/)
6082
+ SOURCE_ROOT: "packages/core/i18n",
6083
+ SOURCE_LOCALES: "packages/core/i18n/locales",
6084
+ SOURCE_EAGER: "packages/core/i18n/locales/eager",
6085
+ SOURCE_LAZY: "packages/core/i18n/locales/lazy",
6086
+ // Published structure (same as source - no flattening needed)
6087
+ PUBLISHED_ROOT: "i18n",
6088
+ PUBLISHED_LOCALES: "i18n/locales",
6089
+ PUBLISHED_EAGER: "i18n/locales/eager",
6090
+ PUBLISHED_LAZY: "i18n/locales/lazy"
6091
+ };
6092
+ SCAN_PATTERNS = {
6093
+ routes: {
6094
+ consumer: ["src/**/*Page.tsx", "src/pages/**/*Page.tsx"],
6095
+ exclude: [
6096
+ "**/node_modules/**",
6097
+ "**/dist/**",
6098
+ "**/build/**",
6099
+ "**/*.test.tsx",
6100
+ "**/*.stories.tsx"
6101
+ ],
6102
+ extensions: [".tsx"]
6103
+ },
6104
+ css: {
6105
+ consumer: ["src/**/*.css"],
6106
+ themes: ["src/**/*.css"],
6107
+ extensions: [".css", ".scss", ".sass"],
6108
+ framework: [
6109
+ "packages/ui/src/**/*.css",
6110
+ "packages/core/components/src/**/*.css",
6111
+ "packages/core/templates/src/**/*.css"
6112
+ ]
6113
+ },
6114
+ i18n: {
6115
+ eager: ["src/locales/*_*.json"],
6116
+ lazy: [
6117
+ "src/**/locales/*_*.json",
6118
+ "!src/locales/*_*.json",
6119
+ // Auto-detect shared entity translations in monorepos (if exists, use it; if not, no problem)
6120
+ "../../entities/locales/*_*.json"
6121
+ ],
6122
+ // Additional paths from workspace packages (e.g., shared entities)
6123
+ // Consumers can still configure via i18n.additionalPaths in dndev/vite config for custom paths
6124
+ // Example: ['../../packages/shared/locales/*_*.json']
6125
+ additional: [],
6126
+ framework: {
6127
+ eager: [`${I18N_PATHS.SOURCE_EAGER}/*_*.json`],
6128
+ lazy: [`${I18N_PATHS.SOURCE_LAZY}/*_*.json`]
6129
+ },
6130
+ extensions: [".json"]
6131
+ },
6132
+ assets: {
6133
+ consumer: ["public/**/*"],
6134
+ fallback: ["manifest.json"],
6135
+ modern: [
6136
+ "logo.svg",
6137
+ "favicon.svg",
6138
+ "apple-touch-icon.png",
6139
+ "android-chrome-192x192.png",
6140
+ "android-chrome-512x512.png"
6141
+ ],
6142
+ patterns: [
6143
+ "favicon.svg",
6144
+ "favicon.ico",
6145
+ "favicon-*.png",
6146
+ "logo.svg",
6147
+ "logo.png",
6148
+ "logo.webp",
6149
+ "logo.avif",
6150
+ "apple-touch-icon*.png",
6151
+ "android-chrome-*.png",
6152
+ "manifest.json"
6153
+ ],
6154
+ fonts: ["fonts/**/*.woff2", "fonts/**/*.woff", "fonts/**/*.ttf"],
6155
+ framework: ["packages/ui/assets/**/*"]
6156
+ },
6157
+ pwa: {
6158
+ consumer: [
6159
+ "public/manifest.json",
6160
+ "public/service-worker.js",
6161
+ "public/sw.js",
6162
+ "public/icon-192x192.png",
6163
+ "public/icon-512x512.png",
6164
+ "public/favicon.ico",
6165
+ "public/favicon.svg",
6166
+ "public/apple-touch-icon.png",
6167
+ "public/logo.svg"
6168
+ ],
6169
+ exclude: ["**/node_modules/**", "**/dist/**", "**/build/**"],
6170
+ extensions: [".json", ".js", ".png", ".svg", ".ico"],
6171
+ framework: ["packages/ui/assets/**/*"]
6172
+ },
6173
+ globalIgnore: [
6174
+ "**/node_modules/**",
6175
+ "**/dist/**",
6176
+ "**/build/**",
6177
+ "**/.git/**",
6178
+ "**/coverage/**",
6179
+ "**/test/**"
6180
+ ]
6181
+ };
6182
+ GLOB_OPTIONS = {
6183
+ base: {
6184
+ absolute: true,
6185
+ onlyFiles: true,
6186
+ ignore: SCAN_PATTERNS.globalIgnore
6187
+ },
6188
+ css: {
6189
+ absolute: true,
6190
+ onlyFiles: true,
6191
+ ignore: [...SCAN_PATTERNS.globalIgnore, "**/*.test.css"]
6192
+ },
6193
+ routes: {
6194
+ absolute: true,
6195
+ onlyFiles: true,
6196
+ ignore: [
6197
+ ...SCAN_PATTERNS.globalIgnore,
6198
+ "**/*.test.tsx",
6199
+ "**/*.stories.tsx"
6200
+ ]
6201
+ },
6202
+ i18n: {
6203
+ absolute: true,
6204
+ onlyFiles: true,
6205
+ ignore: SCAN_PATTERNS.globalIgnore
6206
+ },
6207
+ assets: {
6208
+ absolute: true,
6209
+ onlyFiles: true,
6210
+ ignore: SCAN_PATTERNS.globalIgnore
6211
+ }
6212
+ };
6213
+ }
6214
+ });
6215
+
6203
6216
  // packages/core/config/utils/PathResolver.ts
6217
+ import * as fs from "node:fs";
6218
+ import "node:fs";
6204
6219
  import { createRequire } from "node:module";
6205
6220
  import {
6206
6221
  resolve,
@@ -6212,7 +6227,6 @@ import {
6212
6227
  extname
6213
6228
  } from "node:path";
6214
6229
  import { fileURLToPath } from "node:url";
6215
- import * as fs from "node:fs";
6216
6230
  function safeExecuteAsync(fn, message) {
6217
6231
  return fn().catch((error2) => {
6218
6232
  throw new Error(
@@ -6225,8 +6239,8 @@ var init_PathResolver = __esm({
6225
6239
  "packages/core/config/utils/PathResolver.ts"() {
6226
6240
  "use strict";
6227
6241
  init_utils();
6228
- init_constants();
6229
6242
  import_fast_glob = __toESM(require_out4(), 1);
6243
+ init_constants();
6230
6244
  constants = {
6231
6245
  getGlobOptionsFor: getGlobOptionsFor || void 0,
6232
6246
  SCAN_PATTERNS: SCAN_PATTERNS || void 0,
@@ -7314,6 +7328,7 @@ var init_errors = __esm({
7314
7328
  });
7315
7329
 
7316
7330
  // packages/tooling/src/utils/pathResolver.ts
7331
+ import { createRequire as createRequire2 } from "node:module";
7317
7332
  import {
7318
7333
  join as join2,
7319
7334
  dirname as dirname2,
@@ -7323,6 +7338,7 @@ import {
7323
7338
  resolve as resolve2,
7324
7339
  isAbsolute as pathIsAbsolute
7325
7340
  } from "node:path";
7341
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
7326
7342
  function readdirSync2(dirPath, options) {
7327
7343
  return pathResolverInstance.readdirSync(dirPath, options);
7328
7344
  }
@@ -7353,17 +7369,18 @@ var init_pathResolver = __esm({
7353
7369
  });
7354
7370
 
7355
7371
  // packages/tooling/src/bundler/utils.ts
7356
- import { createRequire as createRequire2 } from "node:module";
7357
- import { fileURLToPath as fileURLToPath2 } from "node:url";
7358
- import { dirname as dirname3, resolve as resolve3 } from "node:path";
7359
7372
  import { Buffer as Buffer2 } from "node:buffer";
7373
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
7374
+ import { createRequire as createRequire3 } from "node:module";
7375
+ import { dirname as dirname3, resolve as resolve3 } from "node:path";
7360
7376
  import process from "node:process";
7377
+ import { fileURLToPath as fileURLToPath3 } from "node:url";
7361
7378
  var require2, __filename, __dirname;
7362
7379
  var init_utils = __esm({
7363
7380
  "packages/tooling/src/bundler/utils.ts"() {
7364
7381
  "use strict";
7365
- require2 = createRequire2(import.meta.url);
7366
- __filename = fileURLToPath2(import.meta.url);
7382
+ require2 = createRequire3(import.meta.url);
7383
+ __filename = fileURLToPath3(import.meta.url);
7367
7384
  __dirname = dirname3(__filename);
7368
7385
  if (typeof globalThis !== "undefined") {
7369
7386
  globalThis.require = require2;
@@ -7389,11 +7406,11 @@ init_utils();
7389
7406
 
7390
7407
  // packages/tooling/src/quality/format.ts
7391
7408
  init_utils();
7392
- init_errors();
7393
7409
  init_cli_output();
7410
+ init_errors();
7394
7411
  init_pathResolver();
7395
7412
  import { spawnSync } from "node:child_process";
7396
- import { EOL } from "node:os";
7413
+ import { EOL as EOL2 } from "node:os";
7397
7414
  async function main(options = {}) {
7398
7415
  const dryRun = options.dryRun ?? false;
7399
7416
  const verbose = options.verbose ?? false;
@@ -7511,7 +7528,7 @@ async function addPathComments(files, rootDir, dryRun, verbose) {
7511
7528
  let modified = false;
7512
7529
  if (contentLines.length === 0) {
7513
7530
  if (!dryRun) {
7514
- writeSync(file, `${expectedPathComment}${EOL}`, {
7531
+ writeSync(file, `${expectedPathComment}${EOL2}`, {
7515
7532
  overwrite: true
7516
7533
  });
7517
7534
  }
@@ -7636,7 +7653,7 @@ async function addPathComments(files, rootDir, dryRun, verbose) {
7636
7653
  newLines.push("");
7637
7654
  }
7638
7655
  newLines.push(...contentLines);
7639
- const newContent = newLines.join(EOL);
7656
+ const newContent = newLines.join(EOL2);
7640
7657
  const contentChanged = fileContent !== newContent;
7641
7658
  if (contentChanged) {
7642
7659
  try {