@donotdev/cli 0.0.25 → 0.0.27

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 (32) hide show
  1. package/README.md +7 -295
  2. package/dependencies-matrix.json +49 -21
  3. package/dist/bin/commands/agent-setup.js +1 -1
  4. package/dist/bin/commands/build.js +143 -142
  5. package/dist/bin/commands/bump.js +145 -144
  6. package/dist/bin/commands/cacheout.js +142 -141
  7. package/dist/bin/commands/coach.js +156 -151
  8. package/dist/bin/commands/create-app.js +22 -22
  9. package/dist/bin/commands/create-project.js +165 -164
  10. package/dist/bin/commands/db.js +46704 -46703
  11. package/dist/bin/commands/deploy.js +674 -575
  12. package/dist/bin/commands/dev.js +179 -159
  13. package/dist/bin/commands/doctor.js +152 -151
  14. package/dist/bin/commands/emu.js +186 -176
  15. package/dist/bin/commands/format.js +142 -141
  16. package/dist/bin/commands/get-demo.js +1 -1
  17. package/dist/bin/commands/make-admin.js +64133 -64040
  18. package/dist/bin/commands/preview.js +178 -159
  19. package/dist/bin/commands/seed.js +46704 -46703
  20. package/dist/bin/commands/setup-cicd.js +164 -158
  21. package/dist/bin/commands/setup.js +409 -209
  22. package/dist/bin/commands/staging.js +674 -575
  23. package/dist/bin/commands/sync-secrets.js +142 -141
  24. package/dist/bin/commands/type-check.js +142 -141
  25. package/dist/bin/dndev.js +93 -1
  26. package/dist/bin/donotdev.js +93 -1
  27. package/dist/index.js +713 -605
  28. package/package.json +1 -1
  29. package/templates/app-next/postcss.config.js.example +3 -54
  30. package/templates/root-consumer/bunfig.toml.example +6 -49
  31. package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +19 -0
  32. package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +50 -9
package/dist/bin/dndev.js CHANGED
@@ -340,6 +340,80 @@ var init_command_registry = __esm({
340
340
  loader: "../quality/validate-package.ts",
341
341
  exportName: "validatePackage"
342
342
  },
343
+ {
344
+ name: "syncpack",
345
+ description: "Check dependency version consistency across all packages (syncpack)",
346
+ category: "development",
347
+ options: [
348
+ {
349
+ flags: "--fix",
350
+ description: "auto-fix version mismatches"
351
+ }
352
+ ],
353
+ loader: "../quality/syncpack.ts",
354
+ exportName: "syncpack"
355
+ },
356
+ {
357
+ name: "knip",
358
+ description: "Detect dead code, unused exports, and unlisted dependencies (knip)",
359
+ category: "development",
360
+ options: [
361
+ {
362
+ flags: "--fix",
363
+ description: "auto-remove unused exports"
364
+ }
365
+ ],
366
+ loader: "../quality/knip.ts",
367
+ exportName: "knip"
368
+ },
369
+ {
370
+ name: "publint",
371
+ description: "Validate package.json exports/files fields for all published packages",
372
+ category: "development",
373
+ options: [
374
+ {
375
+ flags: "--package <package>",
376
+ description: "validate a specific package"
377
+ }
378
+ ],
379
+ loader: "../quality/publint.ts",
380
+ exportName: "publint"
381
+ },
382
+ {
383
+ name: "attw",
384
+ description: "Verify TypeScript type resolution for published packages (@arethetypeswrong)",
385
+ category: "development",
386
+ options: [
387
+ {
388
+ flags: "--package <package>",
389
+ description: "check a specific package"
390
+ }
391
+ ],
392
+ loader: "../quality/attw.ts",
393
+ exportName: "attw"
394
+ },
395
+ {
396
+ name: "size",
397
+ description: "Check bundle sizes against budgets (size-limit)",
398
+ alias: "size-limit",
399
+ category: "development",
400
+ options: [
401
+ {
402
+ flags: "--json",
403
+ description: "output machine-readable JSON"
404
+ }
405
+ ],
406
+ loader: "../quality/size-limit.ts",
407
+ exportName: "sizeLimit"
408
+ },
409
+ {
410
+ name: "preflight",
411
+ description: "Run all quality gates before bundling (lint, syncpack, knip, publint, attw, size)",
412
+ alias: "pf",
413
+ category: "development",
414
+ loader: "../quality/preflight.ts",
415
+ exportName: "preflight"
416
+ },
343
417
  // ---------------------------------------------------------------------------
344
418
  // Build & Maintenance
345
419
  // ---------------------------------------------------------------------------
@@ -361,6 +435,10 @@ var init_command_registry = __esm({
361
435
  flags: "--skip-validation",
362
436
  description: "skip package validation before build"
363
437
  },
438
+ {
439
+ flags: "--skip-preflight",
440
+ description: "skip publint + attw pre-publish checks"
441
+ },
364
442
  {
365
443
  flags: "--verdaccio",
366
444
  description: "publish to local Verdaccio registry instead of npm"
@@ -374,6 +452,20 @@ var init_command_registry = __esm({
374
452
  loader: "../bundler/bundle.ts",
375
453
  exportName: "bundle"
376
454
  },
455
+ {
456
+ name: "pack [packages...]",
457
+ description: "Create tarballs for testing in consumer apps",
458
+ category: "build",
459
+ options: [
460
+ {
461
+ flags: "--install <path...>",
462
+ description: "Install tarballs into consumer app(s). Repeatable: --install ../wai --install ../apc"
463
+ },
464
+ { flags: "--skip-build", description: "Use existing dist/ (no rebuild)" }
465
+ ],
466
+ loader: "../bundler/pack.ts",
467
+ exportName: "pack"
468
+ },
377
469
  {
378
470
  name: "clean",
379
471
  description: "Clean build artifacts, caches, and node_modules",
@@ -858,7 +950,7 @@ function registerCommand(program2, def, action) {
858
950
  }
859
951
 
860
952
  // packages/cli/src/bin/dndev.mjs
861
- var CLI_VERSION = true ? "0.0.25" : "0.0.0";
953
+ var CLI_VERSION = true ? "0.0.27" : "0.0.0";
862
954
  var args = process.argv.slice(2);
863
955
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
864
956
  console.log(CLI_VERSION);
@@ -340,6 +340,80 @@ var init_command_registry = __esm({
340
340
  loader: "../quality/validate-package.ts",
341
341
  exportName: "validatePackage"
342
342
  },
343
+ {
344
+ name: "syncpack",
345
+ description: "Check dependency version consistency across all packages (syncpack)",
346
+ category: "development",
347
+ options: [
348
+ {
349
+ flags: "--fix",
350
+ description: "auto-fix version mismatches"
351
+ }
352
+ ],
353
+ loader: "../quality/syncpack.ts",
354
+ exportName: "syncpack"
355
+ },
356
+ {
357
+ name: "knip",
358
+ description: "Detect dead code, unused exports, and unlisted dependencies (knip)",
359
+ category: "development",
360
+ options: [
361
+ {
362
+ flags: "--fix",
363
+ description: "auto-remove unused exports"
364
+ }
365
+ ],
366
+ loader: "../quality/knip.ts",
367
+ exportName: "knip"
368
+ },
369
+ {
370
+ name: "publint",
371
+ description: "Validate package.json exports/files fields for all published packages",
372
+ category: "development",
373
+ options: [
374
+ {
375
+ flags: "--package <package>",
376
+ description: "validate a specific package"
377
+ }
378
+ ],
379
+ loader: "../quality/publint.ts",
380
+ exportName: "publint"
381
+ },
382
+ {
383
+ name: "attw",
384
+ description: "Verify TypeScript type resolution for published packages (@arethetypeswrong)",
385
+ category: "development",
386
+ options: [
387
+ {
388
+ flags: "--package <package>",
389
+ description: "check a specific package"
390
+ }
391
+ ],
392
+ loader: "../quality/attw.ts",
393
+ exportName: "attw"
394
+ },
395
+ {
396
+ name: "size",
397
+ description: "Check bundle sizes against budgets (size-limit)",
398
+ alias: "size-limit",
399
+ category: "development",
400
+ options: [
401
+ {
402
+ flags: "--json",
403
+ description: "output machine-readable JSON"
404
+ }
405
+ ],
406
+ loader: "../quality/size-limit.ts",
407
+ exportName: "sizeLimit"
408
+ },
409
+ {
410
+ name: "preflight",
411
+ description: "Run all quality gates before bundling (lint, syncpack, knip, publint, attw, size)",
412
+ alias: "pf",
413
+ category: "development",
414
+ loader: "../quality/preflight.ts",
415
+ exportName: "preflight"
416
+ },
343
417
  // ---------------------------------------------------------------------------
344
418
  // Build & Maintenance
345
419
  // ---------------------------------------------------------------------------
@@ -361,6 +435,10 @@ var init_command_registry = __esm({
361
435
  flags: "--skip-validation",
362
436
  description: "skip package validation before build"
363
437
  },
438
+ {
439
+ flags: "--skip-preflight",
440
+ description: "skip publint + attw pre-publish checks"
441
+ },
364
442
  {
365
443
  flags: "--verdaccio",
366
444
  description: "publish to local Verdaccio registry instead of npm"
@@ -374,6 +452,20 @@ var init_command_registry = __esm({
374
452
  loader: "../bundler/bundle.ts",
375
453
  exportName: "bundle"
376
454
  },
455
+ {
456
+ name: "pack [packages...]",
457
+ description: "Create tarballs for testing in consumer apps",
458
+ category: "build",
459
+ options: [
460
+ {
461
+ flags: "--install <path...>",
462
+ description: "Install tarballs into consumer app(s). Repeatable: --install ../wai --install ../apc"
463
+ },
464
+ { flags: "--skip-build", description: "Use existing dist/ (no rebuild)" }
465
+ ],
466
+ loader: "../bundler/pack.ts",
467
+ exportName: "pack"
468
+ },
377
469
  {
378
470
  name: "clean",
379
471
  description: "Clean build artifacts, caches, and node_modules",
@@ -858,7 +950,7 @@ function registerCommand(program2, def, action) {
858
950
  }
859
951
 
860
952
  // packages/cli/src/bin/dndev.mjs
861
- var CLI_VERSION = true ? "0.0.23" : "0.0.0";
953
+ var CLI_VERSION = true ? "0.0.26" : "0.0.0";
862
954
  var args = process.argv.slice(2);
863
955
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
864
956
  console.log(CLI_VERSION);