@cbnventures/nova 0.14.0 → 0.15.0

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 (974) hide show
  1. package/README.md +48 -0
  2. package/bin/nova.mjs +3 -0
  3. package/build/package.json +33 -23
  4. package/build/src/api/node-releases.d.ts +4 -4
  5. package/build/src/api/node-releases.d.ts.map +1 -1
  6. package/build/src/api/node-releases.js +31 -26
  7. package/build/src/api/node-releases.js.map +1 -1
  8. package/build/src/api/spdx-licenses.d.ts +4 -4
  9. package/build/src/api/spdx-licenses.d.ts.map +1 -1
  10. package/build/src/api/spdx-licenses.js +21 -18
  11. package/build/src/api/spdx-licenses.js.map +1 -1
  12. package/build/src/cli/generate/github/funding.d.ts +5 -0
  13. package/build/src/cli/generate/github/funding.d.ts.map +1 -0
  14. package/build/src/cli/generate/github/funding.js +68 -0
  15. package/build/src/cli/generate/github/funding.js.map +1 -0
  16. package/build/src/cli/generate/github/issue-template.d.ts +5 -0
  17. package/build/src/cli/generate/github/issue-template.d.ts.map +1 -0
  18. package/build/src/cli/generate/github/issue-template.js +267 -0
  19. package/build/src/cli/generate/github/issue-template.js.map +1 -0
  20. package/build/src/cli/generate/github/workflows.d.ts +10 -0
  21. package/build/src/cli/generate/github/workflows.d.ts.map +1 -0
  22. package/build/src/cli/generate/github/workflows.js +464 -0
  23. package/build/src/cli/generate/github/workflows.js.map +1 -0
  24. package/build/src/cli/generate/must-haves/agent-conventions.d.ts +5 -0
  25. package/build/src/cli/generate/must-haves/agent-conventions.d.ts.map +1 -0
  26. package/build/src/cli/generate/must-haves/agent-conventions.js +114 -0
  27. package/build/src/cli/generate/must-haves/agent-conventions.js.map +1 -0
  28. package/build/src/cli/generate/must-haves/dotenv.d.ts +12 -0
  29. package/build/src/cli/generate/must-haves/dotenv.d.ts.map +1 -0
  30. package/build/src/cli/generate/must-haves/dotenv.js +504 -0
  31. package/build/src/cli/generate/must-haves/dotenv.js.map +1 -0
  32. package/build/src/cli/generate/must-haves/editorconfig.d.ts +5 -0
  33. package/build/src/cli/generate/must-haves/editorconfig.d.ts.map +1 -0
  34. package/build/src/cli/generate/must-haves/editorconfig.js +37 -0
  35. package/build/src/cli/generate/must-haves/editorconfig.js.map +1 -0
  36. package/build/src/cli/generate/must-haves/gitignore.d.ts +13 -0
  37. package/build/src/cli/generate/must-haves/gitignore.d.ts.map +1 -0
  38. package/build/src/cli/generate/must-haves/gitignore.js +446 -0
  39. package/build/src/cli/generate/must-haves/gitignore.js.map +1 -0
  40. package/build/src/cli/generate/must-haves/license.d.ts +5 -0
  41. package/build/src/cli/generate/must-haves/license.d.ts.map +1 -0
  42. package/build/src/cli/generate/must-haves/license.js +131 -0
  43. package/build/src/cli/generate/must-haves/license.js.map +1 -0
  44. package/build/src/cli/generate/must-haves/read-me.d.ts +8 -0
  45. package/build/src/cli/generate/must-haves/read-me.d.ts.map +1 -0
  46. package/build/src/cli/generate/must-haves/read-me.js +255 -0
  47. package/build/src/cli/generate/must-haves/read-me.js.map +1 -0
  48. package/build/src/cli/index.js +298 -100
  49. package/build/src/cli/index.js.map +1 -1
  50. package/build/src/cli/recipe/index.d.ts +2 -2
  51. package/build/src/cli/recipe/index.d.ts.map +1 -1
  52. package/build/src/cli/recipe/index.js +19 -19
  53. package/build/src/cli/recipe/index.js.map +1 -1
  54. package/build/src/cli/recipe/package-json/cleanup.d.ts +3 -3
  55. package/build/src/cli/recipe/package-json/cleanup.d.ts.map +1 -1
  56. package/build/src/cli/recipe/package-json/cleanup.js +59 -50
  57. package/build/src/cli/recipe/package-json/cleanup.js.map +1 -1
  58. package/build/src/cli/recipe/package-json/normalize-artifacts.d.ts +3 -3
  59. package/build/src/cli/recipe/package-json/normalize-artifacts.d.ts.map +1 -1
  60. package/build/src/cli/recipe/package-json/normalize-artifacts.js +120 -112
  61. package/build/src/cli/recipe/package-json/normalize-artifacts.js.map +1 -1
  62. package/build/src/cli/recipe/package-json/normalize-bundler.d.ts +3 -3
  63. package/build/src/cli/recipe/package-json/normalize-bundler.d.ts.map +1 -1
  64. package/build/src/cli/recipe/package-json/normalize-bundler.js +36 -35
  65. package/build/src/cli/recipe/package-json/normalize-bundler.js.map +1 -1
  66. package/build/src/cli/recipe/package-json/normalize-dependencies.d.ts +3 -3
  67. package/build/src/cli/recipe/package-json/normalize-dependencies.d.ts.map +1 -1
  68. package/build/src/cli/recipe/package-json/normalize-dependencies.js +70 -64
  69. package/build/src/cli/recipe/package-json/normalize-dependencies.js.map +1 -1
  70. package/build/src/cli/recipe/package-json/normalize-modules.d.ts +3 -3
  71. package/build/src/cli/recipe/package-json/normalize-modules.d.ts.map +1 -1
  72. package/build/src/cli/recipe/package-json/normalize-modules.js +156 -142
  73. package/build/src/cli/recipe/package-json/normalize-modules.js.map +1 -1
  74. package/build/src/cli/recipe/package-json/normalize-tooling.d.ts +3 -3
  75. package/build/src/cli/recipe/package-json/normalize-tooling.d.ts.map +1 -1
  76. package/build/src/cli/recipe/package-json/normalize-tooling.js +52 -57
  77. package/build/src/cli/recipe/package-json/normalize-tooling.js.map +1 -1
  78. package/build/src/cli/recipe/package-json/sync-environment.d.ts +3 -3
  79. package/build/src/cli/recipe/package-json/sync-environment.d.ts.map +1 -1
  80. package/build/src/cli/recipe/package-json/sync-environment.js +94 -97
  81. package/build/src/cli/recipe/package-json/sync-environment.js.map +1 -1
  82. package/build/src/cli/recipe/package-json/sync-identity.d.ts +3 -3
  83. package/build/src/cli/recipe/package-json/sync-identity.d.ts.map +1 -1
  84. package/build/src/cli/recipe/package-json/sync-identity.js +67 -62
  85. package/build/src/cli/recipe/package-json/sync-identity.js.map +1 -1
  86. package/build/src/cli/recipe/package-json/sync-ownership.d.ts +3 -3
  87. package/build/src/cli/recipe/package-json/sync-ownership.d.ts.map +1 -1
  88. package/build/src/cli/recipe/package-json/sync-ownership.js +106 -106
  89. package/build/src/cli/recipe/package-json/sync-ownership.js.map +1 -1
  90. package/build/src/cli/scaffold/app/expressjs.d.ts +5 -0
  91. package/build/src/cli/scaffold/app/expressjs.d.ts.map +1 -0
  92. package/build/src/cli/scaffold/app/expressjs.js +8 -0
  93. package/build/src/cli/scaffold/app/expressjs.js.map +1 -0
  94. package/build/src/cli/scaffold/app/nextjs.d.ts +5 -0
  95. package/build/src/cli/scaffold/app/nextjs.d.ts.map +1 -0
  96. package/build/src/cli/scaffold/app/nextjs.js +8 -0
  97. package/build/src/cli/scaffold/app/nextjs.js.map +1 -0
  98. package/build/src/cli/scaffold/app/vite.d.ts +5 -0
  99. package/build/src/cli/scaffold/app/vite.d.ts.map +1 -0
  100. package/build/src/cli/scaffold/app/vite.js +8 -0
  101. package/build/src/cli/scaffold/app/vite.js.map +1 -0
  102. package/build/src/cli/scaffold/app/workers.d.ts +5 -0
  103. package/build/src/cli/scaffold/app/workers.d.ts.map +1 -0
  104. package/build/src/cli/scaffold/app/workers.js +8 -0
  105. package/build/src/cli/scaffold/app/workers.js.map +1 -0
  106. package/build/src/cli/scaffold/docs/docusaurus.d.ts +5 -0
  107. package/build/src/cli/scaffold/docs/docusaurus.d.ts.map +1 -0
  108. package/build/src/cli/scaffold/docs/docusaurus.js +8 -0
  109. package/build/src/cli/scaffold/docs/docusaurus.js.map +1 -0
  110. package/build/src/cli/scaffold/starter/base.d.ts +5 -0
  111. package/build/src/cli/scaffold/starter/base.d.ts.map +1 -0
  112. package/build/src/cli/scaffold/starter/base.js +132 -0
  113. package/build/src/cli/scaffold/starter/base.js.map +1 -0
  114. package/build/src/cli/utility/changelog.d.ts +3 -3
  115. package/build/src/cli/utility/changelog.d.ts.map +1 -1
  116. package/build/src/cli/utility/changelog.js +206 -172
  117. package/build/src/cli/utility/changelog.js.map +1 -1
  118. package/build/src/cli/utility/initialize.d.ts +6 -3
  119. package/build/src/cli/utility/initialize.d.ts.map +1 -1
  120. package/build/src/cli/utility/initialize.js +990 -265
  121. package/build/src/cli/utility/initialize.js.map +1 -1
  122. package/build/src/cli/utility/run-recipes.d.ts +3 -3
  123. package/build/src/cli/utility/run-recipes.d.ts.map +1 -1
  124. package/build/src/cli/utility/run-recipes.js +15 -14
  125. package/build/src/cli/utility/run-recipes.js.map +1 -1
  126. package/build/src/cli/utility/run-scripts.d.ts +4 -4
  127. package/build/src/cli/utility/run-scripts.d.ts.map +1 -1
  128. package/build/src/cli/utility/run-scripts.js +167 -70
  129. package/build/src/cli/utility/run-scripts.js.map +1 -1
  130. package/build/src/cli/utility/transpile.d.ts +3 -3
  131. package/build/src/cli/utility/transpile.d.ts.map +1 -1
  132. package/build/src/cli/utility/transpile.js +24 -19
  133. package/build/src/cli/utility/transpile.js.map +1 -1
  134. package/build/src/cli/utility/type-check.d.ts +3 -3
  135. package/build/src/cli/utility/type-check.d.ts.map +1 -1
  136. package/build/src/cli/utility/type-check.js +24 -19
  137. package/build/src/cli/utility/type-check.js.map +1 -1
  138. package/build/src/cli/utility/version.d.ts +3 -3
  139. package/build/src/cli/utility/version.d.ts.map +1 -1
  140. package/build/src/cli/utility/version.js +126 -68
  141. package/build/src/cli/utility/version.js.map +1 -1
  142. package/build/src/lib/item.d.ts +31 -29
  143. package/build/src/lib/item.d.ts.map +1 -1
  144. package/build/src/lib/item.js +106 -43
  145. package/build/src/lib/item.js.map +1 -1
  146. package/build/src/lib/nova-config.d.ts +6 -5
  147. package/build/src/lib/nova-config.d.ts.map +1 -1
  148. package/build/src/lib/nova-config.js +217 -59
  149. package/build/src/lib/nova-config.js.map +1 -1
  150. package/build/src/lib/regex.d.ts +92 -26
  151. package/build/src/lib/regex.d.ts.map +1 -1
  152. package/build/src/lib/regex.js +92 -26
  153. package/build/src/lib/regex.js.map +1 -1
  154. package/build/src/lib/scaffold.d.ts +10 -0
  155. package/build/src/lib/scaffold.d.ts.map +1 -0
  156. package/build/src/lib/scaffold.js +535 -0
  157. package/build/src/lib/scaffold.js.map +1 -0
  158. package/build/src/lib/schema.d.ts +2 -9
  159. package/build/src/lib/schema.d.ts.map +1 -1
  160. package/build/src/lib/schema.js +6 -8
  161. package/build/src/lib/schema.js.map +1 -1
  162. package/build/src/lib/utility.d.ts +21 -18
  163. package/build/src/lib/utility.d.ts.map +1 -1
  164. package/build/src/lib/utility.js +173 -79
  165. package/build/src/lib/utility.js.map +1 -1
  166. package/build/src/lib/workflow-templates.d.ts +3 -0
  167. package/build/src/lib/workflow-templates.d.ts.map +1 -0
  168. package/build/src/lib/workflow-templates.js +187 -0
  169. package/build/src/lib/workflow-templates.js.map +1 -0
  170. package/build/src/presets/eslint/dx-code-style.d.ts +4 -0
  171. package/build/src/presets/eslint/dx-code-style.d.ts.map +1 -0
  172. package/build/src/presets/eslint/dx-code-style.js +523 -0
  173. package/build/src/presets/eslint/dx-code-style.js.map +1 -0
  174. package/build/src/presets/eslint/dx-ignore.d.ts +4 -0
  175. package/build/src/presets/eslint/dx-ignore.d.ts.map +1 -0
  176. package/build/src/presets/eslint/{dx-ignore.mjs → dx-ignore.js} +1 -1
  177. package/build/src/presets/eslint/dx-ignore.js.map +1 -0
  178. package/build/src/presets/eslint/fw-docusaurus.d.ts +4 -0
  179. package/build/src/presets/eslint/fw-docusaurus.d.ts.map +1 -0
  180. package/build/src/presets/eslint/fw-docusaurus.js +6 -0
  181. package/build/src/presets/eslint/fw-docusaurus.js.map +1 -0
  182. package/build/src/presets/eslint/fw-expressjs.d.ts +4 -0
  183. package/build/src/presets/eslint/fw-expressjs.d.ts.map +1 -0
  184. package/build/src/presets/eslint/{fw-expressjs.mjs → fw-expressjs.js} +3 -5
  185. package/build/src/presets/eslint/fw-expressjs.js.map +1 -0
  186. package/build/src/presets/eslint/fw-nextjs.d.ts +4 -0
  187. package/build/src/presets/eslint/fw-nextjs.d.ts.map +1 -0
  188. package/build/src/presets/eslint/{fw-nextjs.mjs → fw-nextjs.js} +3 -5
  189. package/build/src/presets/eslint/fw-nextjs.js.map +1 -0
  190. package/build/src/presets/eslint/index.d.ts +16 -0
  191. package/build/src/presets/eslint/index.d.ts.map +1 -0
  192. package/build/src/presets/eslint/index.js +16 -0
  193. package/build/src/presets/eslint/index.js.map +1 -0
  194. package/build/src/presets/eslint/lang-javascript.d.ts +4 -0
  195. package/build/src/presets/eslint/lang-javascript.d.ts.map +1 -0
  196. package/build/src/presets/eslint/lang-javascript.js +34 -0
  197. package/build/src/presets/eslint/lang-javascript.js.map +1 -0
  198. package/build/src/presets/eslint/lang-mdx.d.ts +4 -0
  199. package/build/src/presets/eslint/lang-mdx.d.ts.map +1 -0
  200. package/build/src/presets/eslint/{lang-mdx.mjs → lang-mdx.js} +4 -8
  201. package/build/src/presets/eslint/lang-mdx.js.map +1 -0
  202. package/build/src/presets/eslint/lang-typescript.d.ts +4 -0
  203. package/build/src/presets/eslint/lang-typescript.d.ts.map +1 -0
  204. package/build/src/presets/eslint/lang-typescript.js +148 -0
  205. package/build/src/presets/eslint/lang-typescript.js.map +1 -0
  206. package/build/src/presets/eslint/runtime-browser.d.ts +4 -0
  207. package/build/src/presets/eslint/runtime-browser.d.ts.map +1 -0
  208. package/build/src/presets/eslint/{env-web-worker.mjs → runtime-browser.js} +1 -1
  209. package/build/src/presets/eslint/runtime-browser.js.map +1 -0
  210. package/build/src/presets/eslint/runtime-cloudflare-workers.d.ts +4 -0
  211. package/build/src/presets/eslint/runtime-cloudflare-workers.d.ts.map +1 -0
  212. package/build/src/presets/eslint/runtime-cloudflare-workers.js +6 -0
  213. package/build/src/presets/eslint/runtime-cloudflare-workers.js.map +1 -0
  214. package/build/src/presets/eslint/runtime-edge.d.ts +4 -0
  215. package/build/src/presets/eslint/runtime-edge.d.ts.map +1 -0
  216. package/build/src/presets/eslint/{env-edge.mjs → runtime-edge.js} +1 -1
  217. package/build/src/presets/eslint/runtime-edge.js.map +1 -0
  218. package/build/src/presets/eslint/runtime-node.d.ts +4 -0
  219. package/build/src/presets/eslint/runtime-node.d.ts.map +1 -0
  220. package/build/src/presets/eslint/{env-node.mjs → runtime-node.js} +4 -4
  221. package/build/src/presets/eslint/runtime-node.js.map +1 -0
  222. package/build/src/presets/eslint/runtime-service-worker.d.ts +4 -0
  223. package/build/src/presets/eslint/runtime-service-worker.d.ts.map +1 -0
  224. package/build/src/presets/eslint/runtime-service-worker.js +3 -0
  225. package/build/src/presets/eslint/runtime-service-worker.js.map +1 -0
  226. package/build/src/presets/eslint/runtime-web-worker.d.ts +4 -0
  227. package/build/src/presets/eslint/runtime-web-worker.d.ts.map +1 -0
  228. package/build/src/presets/eslint/runtime-web-worker.js +3 -0
  229. package/build/src/presets/eslint/runtime-web-worker.js.map +1 -0
  230. package/build/src/presets/eslint/tool-vite.d.ts +4 -0
  231. package/build/src/presets/eslint/tool-vite.d.ts.map +1 -0
  232. package/build/src/presets/eslint/{tool-vite.mjs → tool-vite.js} +3 -5
  233. package/build/src/presets/eslint/tool-vite.js.map +1 -0
  234. package/build/src/presets/tsconfig/dx-strict.json +1 -0
  235. package/build/src/presets/tsconfig/runtime-cloudflare-workers.json +12 -0
  236. package/build/src/presets/tsconfig/{platform-cloudflare-workers.json → runtime-web-worker.json} +2 -2
  237. package/build/src/rules/eslint/conventions/no-default-export-declaration.d.ts +11 -0
  238. package/build/src/rules/eslint/conventions/no-default-export-declaration.d.ts.map +1 -0
  239. package/build/src/rules/eslint/conventions/no-default-export-declaration.js +73 -0
  240. package/build/src/rules/eslint/conventions/no-default-export-declaration.js.map +1 -0
  241. package/build/src/rules/eslint/conventions/no-implicit-boolean.d.ts +15 -0
  242. package/build/src/rules/eslint/conventions/no-implicit-boolean.d.ts.map +1 -0
  243. package/build/src/rules/eslint/conventions/no-implicit-boolean.js +140 -0
  244. package/build/src/rules/eslint/conventions/no-implicit-boolean.js.map +1 -0
  245. package/build/src/rules/eslint/conventions/require-explicit-return.d.ts +15 -0
  246. package/build/src/rules/eslint/conventions/require-explicit-return.d.ts.map +1 -0
  247. package/build/src/rules/eslint/conventions/require-explicit-return.js +184 -0
  248. package/build/src/rules/eslint/conventions/require-explicit-return.js.map +1 -0
  249. package/build/src/rules/eslint/conventions/require-hash-private.d.ts +12 -0
  250. package/build/src/rules/eslint/conventions/require-hash-private.d.ts.map +1 -0
  251. package/build/src/rules/eslint/conventions/require-hash-private.js +67 -0
  252. package/build/src/rules/eslint/conventions/require-hash-private.js.map +1 -0
  253. package/build/src/rules/eslint/conventions/require-kebab-case-filename.d.ts +14 -0
  254. package/build/src/rules/eslint/conventions/require-kebab-case-filename.d.ts.map +1 -0
  255. package/build/src/rules/eslint/conventions/require-kebab-case-filename.js +95 -0
  256. package/build/src/rules/eslint/conventions/require-kebab-case-filename.js.map +1 -0
  257. package/build/src/rules/eslint/conventions/require-naming-convention.d.ts +34 -0
  258. package/build/src/rules/eslint/conventions/require-naming-convention.d.ts.map +1 -0
  259. package/build/src/rules/eslint/conventions/require-naming-convention.js +382 -0
  260. package/build/src/rules/eslint/conventions/require-naming-convention.js.map +1 -0
  261. package/build/src/rules/eslint/conventions/require-undefined-init.d.ts +11 -0
  262. package/build/src/rules/eslint/conventions/require-undefined-init.d.ts.map +1 -0
  263. package/build/src/rules/eslint/conventions/require-undefined-init.js +71 -0
  264. package/build/src/rules/eslint/conventions/require-undefined-init.js.map +1 -0
  265. package/build/src/rules/eslint/conventions/switch-case-blocks.d.ts +13 -0
  266. package/build/src/rules/eslint/conventions/switch-case-blocks.d.ts.map +1 -0
  267. package/build/src/rules/eslint/conventions/switch-case-blocks.js +82 -0
  268. package/build/src/rules/eslint/conventions/switch-case-blocks.js.map +1 -0
  269. package/build/src/rules/eslint/formatting/no-complex-arrow-concise.d.ts +15 -0
  270. package/build/src/rules/eslint/formatting/no-complex-arrow-concise.d.ts.map +1 -0
  271. package/build/src/rules/eslint/formatting/no-complex-arrow-concise.js +166 -0
  272. package/build/src/rules/eslint/formatting/no-complex-arrow-concise.js.map +1 -0
  273. package/build/src/rules/eslint/formatting/no-multiline-strings.d.ts +15 -0
  274. package/build/src/rules/eslint/formatting/no-multiline-strings.d.ts.map +1 -0
  275. package/build/src/rules/eslint/formatting/no-multiline-strings.js +162 -0
  276. package/build/src/rules/eslint/formatting/no-multiline-strings.js.map +1 -0
  277. package/build/src/rules/eslint/formatting/no-raw-text-in-code.d.ts +9 -4
  278. package/build/src/rules/eslint/formatting/no-raw-text-in-code.d.ts.map +1 -1
  279. package/build/src/rules/eslint/formatting/no-raw-text-in-code.js +53 -30
  280. package/build/src/rules/eslint/formatting/no-raw-text-in-code.js.map +1 -1
  281. package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.d.ts +11 -0
  282. package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.d.ts.map +1 -0
  283. package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.js +55 -0
  284. package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.js.map +1 -0
  285. package/build/src/rules/eslint/formatting/require-import-order.d.ts +14 -0
  286. package/build/src/rules/eslint/formatting/require-import-order.d.ts.map +1 -0
  287. package/build/src/rules/eslint/formatting/require-import-order.js +187 -0
  288. package/build/src/rules/eslint/formatting/require-import-order.js.map +1 -0
  289. package/build/src/rules/eslint/formatting/require-multiline-condition-groups.d.ts +13 -0
  290. package/build/src/rules/eslint/formatting/require-multiline-condition-groups.d.ts.map +1 -0
  291. package/build/src/rules/eslint/formatting/require-multiline-condition-groups.js +138 -0
  292. package/build/src/rules/eslint/formatting/require-multiline-condition-groups.js.map +1 -0
  293. package/build/src/rules/eslint/formatting/require-multiline-conditions.d.ts +13 -0
  294. package/build/src/rules/eslint/formatting/require-multiline-conditions.d.ts.map +1 -0
  295. package/build/src/rules/eslint/formatting/require-multiline-conditions.js +94 -0
  296. package/build/src/rules/eslint/formatting/require-multiline-conditions.js.map +1 -0
  297. package/build/src/rules/eslint/formatting/require-padding-lines.d.ts +23 -11
  298. package/build/src/rules/eslint/formatting/require-padding-lines.d.ts.map +1 -1
  299. package/build/src/rules/eslint/formatting/require-padding-lines.js +291 -155
  300. package/build/src/rules/eslint/formatting/require-padding-lines.js.map +1 -1
  301. package/build/src/rules/eslint/formatting/require-ternary-parens.d.ts +11 -0
  302. package/build/src/rules/eslint/formatting/require-ternary-parens.d.ts.map +1 -0
  303. package/build/src/rules/eslint/formatting/require-ternary-parens.js +76 -0
  304. package/build/src/rules/eslint/formatting/require-ternary-parens.js.map +1 -0
  305. package/build/src/rules/eslint/index.d.ts +44 -14
  306. package/build/src/rules/eslint/index.d.ts.map +1 -1
  307. package/build/src/rules/eslint/index.js +44 -14
  308. package/build/src/rules/eslint/index.js.map +1 -1
  309. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.d.ts +15 -0
  310. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.d.ts.map +1 -0
  311. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.js +176 -0
  312. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.js.map +1 -0
  313. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts +26 -0
  314. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts.map +1 -0
  315. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.js +495 -0
  316. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.js.map +1 -0
  317. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.d.ts +12 -0
  318. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.d.ts.map +1 -0
  319. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.js +144 -0
  320. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.js.map +1 -0
  321. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts +12 -0
  322. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts.map +1 -0
  323. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.js +97 -0
  324. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.js.map +1 -0
  325. package/build/src/rules/eslint/jsdoc/require-jsdoc-private.d.ts +11 -0
  326. package/build/src/rules/eslint/jsdoc/require-jsdoc-private.d.ts.map +1 -0
  327. package/build/src/rules/eslint/jsdoc/require-jsdoc-private.js +90 -0
  328. package/build/src/rules/eslint/jsdoc/require-jsdoc-private.js.map +1 -0
  329. package/build/src/rules/eslint/jsdoc/require-jsdoc-since.d.ts +11 -0
  330. package/build/src/rules/eslint/jsdoc/require-jsdoc-since.d.ts.map +1 -0
  331. package/build/src/rules/eslint/jsdoc/require-jsdoc-since.js +88 -0
  332. package/build/src/rules/eslint/jsdoc/require-jsdoc-since.js.map +1 -0
  333. package/build/src/rules/eslint/nova/no-logger-dev.d.ts +11 -4
  334. package/build/src/rules/eslint/nova/no-logger-dev.d.ts.map +1 -1
  335. package/build/src/rules/eslint/nova/no-logger-dev.js +104 -82
  336. package/build/src/rules/eslint/nova/no-logger-dev.js.map +1 -1
  337. package/build/src/rules/eslint/patterns/no-assign-then-return.d.ts +9 -4
  338. package/build/src/rules/eslint/patterns/no-assign-then-return.d.ts.map +1 -1
  339. package/build/src/rules/eslint/patterns/no-assign-then-return.js +92 -51
  340. package/build/src/rules/eslint/patterns/no-assign-then-return.js.map +1 -1
  341. package/build/src/rules/eslint/patterns/no-await-in-loop.d.ts +17 -0
  342. package/build/src/rules/eslint/patterns/no-await-in-loop.d.ts.map +1 -0
  343. package/build/src/rules/eslint/patterns/no-await-in-loop.js +103 -0
  344. package/build/src/rules/eslint/patterns/no-await-in-loop.js.map +1 -0
  345. package/build/src/rules/eslint/patterns/no-boolean-var-for-if.d.ts +11 -0
  346. package/build/src/rules/eslint/patterns/no-boolean-var-for-if.d.ts.map +1 -0
  347. package/build/src/rules/eslint/patterns/no-boolean-var-for-if.js +100 -0
  348. package/build/src/rules/eslint/patterns/no-boolean-var-for-if.js.map +1 -0
  349. package/build/src/rules/eslint/patterns/no-bracket-assignment.d.ts +9 -4
  350. package/build/src/rules/eslint/patterns/no-bracket-assignment.d.ts.map +1 -1
  351. package/build/src/rules/eslint/patterns/no-bracket-assignment.js +60 -22
  352. package/build/src/rules/eslint/patterns/no-bracket-assignment.js.map +1 -1
  353. package/build/src/rules/eslint/patterns/no-bracket-method-call.d.ts +12 -0
  354. package/build/src/rules/eslint/patterns/no-bracket-method-call.d.ts.map +1 -0
  355. package/build/src/rules/eslint/patterns/no-bracket-method-call.js +86 -0
  356. package/build/src/rules/eslint/patterns/no-bracket-method-call.js.map +1 -0
  357. package/build/src/rules/eslint/patterns/no-template-curly-in-string.d.ts +11 -0
  358. package/build/src/rules/eslint/patterns/no-template-curly-in-string.d.ts.map +1 -0
  359. package/build/src/rules/eslint/patterns/no-template-curly-in-string.js +77 -0
  360. package/build/src/rules/eslint/patterns/no-template-curly-in-string.js.map +1 -0
  361. package/build/src/rules/eslint/patterns/no-use-before-define.d.ts +15 -0
  362. package/build/src/rules/eslint/patterns/no-use-before-define.d.ts.map +1 -0
  363. package/build/src/rules/eslint/patterns/no-use-before-define.js +148 -0
  364. package/build/src/rules/eslint/patterns/no-use-before-define.js.map +1 -0
  365. package/build/src/rules/eslint/regex/no-regex-literal-flags.d.ts +9 -4
  366. package/build/src/rules/eslint/regex/no-regex-literal-flags.d.ts.map +1 -1
  367. package/build/src/rules/eslint/regex/no-regex-literal-flags.js +51 -26
  368. package/build/src/rules/eslint/regex/no-regex-literal-flags.js.map +1 -1
  369. package/build/src/rules/eslint/regex/no-regex-literals.d.ts +10 -7
  370. package/build/src/rules/eslint/regex/no-regex-literals.d.ts.map +1 -1
  371. package/build/src/rules/eslint/regex/no-regex-literals.js +62 -45
  372. package/build/src/rules/eslint/regex/no-regex-literals.js.map +1 -1
  373. package/build/src/rules/eslint/safety/no-script-url.d.ts +12 -0
  374. package/build/src/rules/eslint/safety/no-script-url.d.ts.map +1 -0
  375. package/build/src/rules/eslint/safety/no-script-url.js +71 -0
  376. package/build/src/rules/eslint/safety/no-script-url.js.map +1 -0
  377. package/build/src/rules/eslint/syntax/no-destructuring.d.ts +21 -0
  378. package/build/src/rules/eslint/syntax/no-destructuring.d.ts.map +1 -0
  379. package/build/src/rules/eslint/syntax/no-destructuring.js +219 -0
  380. package/build/src/rules/eslint/syntax/no-destructuring.js.map +1 -0
  381. package/build/src/rules/eslint/syntax/no-numeric-literals.d.ts +14 -0
  382. package/build/src/rules/eslint/syntax/no-numeric-literals.d.ts.map +1 -0
  383. package/build/src/rules/eslint/syntax/no-numeric-literals.js +108 -0
  384. package/build/src/rules/eslint/syntax/no-numeric-literals.js.map +1 -0
  385. package/build/src/rules/eslint/syntax/no-optional-chaining.d.ts +11 -0
  386. package/build/src/rules/eslint/syntax/no-optional-chaining.d.ts.map +1 -0
  387. package/build/src/rules/eslint/syntax/no-optional-chaining.js +51 -0
  388. package/build/src/rules/eslint/syntax/no-optional-chaining.js.map +1 -0
  389. package/build/src/rules/eslint/syntax/no-rest-params.d.ts +15 -0
  390. package/build/src/rules/eslint/syntax/no-rest-params.d.ts.map +1 -0
  391. package/build/src/rules/eslint/syntax/no-rest-params.js +158 -0
  392. package/build/src/rules/eslint/syntax/no-rest-params.js.map +1 -0
  393. package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.d.ts +9 -4
  394. package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.d.ts.map +1 -1
  395. package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.js +61 -34
  396. package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.js.map +1 -1
  397. package/build/src/rules/eslint/typescript/no-explicit-any.d.ts +11 -0
  398. package/build/src/rules/eslint/typescript/no-explicit-any.d.ts.map +1 -0
  399. package/build/src/rules/eslint/typescript/no-explicit-any.js +51 -0
  400. package/build/src/rules/eslint/typescript/no-explicit-any.js.map +1 -0
  401. package/build/src/rules/eslint/typescript/no-inline-type-annotation.d.ts +14 -4
  402. package/build/src/rules/eslint/typescript/no-inline-type-annotation.d.ts.map +1 -1
  403. package/build/src/rules/eslint/typescript/no-inline-type-annotation.js +180 -30
  404. package/build/src/rules/eslint/typescript/no-inline-type-annotation.js.map +1 -1
  405. package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts +10 -7
  406. package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts.map +1 -1
  407. package/build/src/rules/eslint/typescript/no-shared-type-import.js +65 -51
  408. package/build/src/rules/eslint/typescript/no-shared-type-import.js.map +1 -1
  409. package/build/src/rules/eslint/typescript/require-bracket-property-access.d.ts +12 -0
  410. package/build/src/rules/eslint/typescript/require-bracket-property-access.d.ts.map +1 -0
  411. package/build/src/rules/eslint/typescript/require-bracket-property-access.js +115 -0
  412. package/build/src/rules/eslint/typescript/require-bracket-property-access.js.map +1 -0
  413. package/build/src/rules/eslint/typescript/require-type-naming.d.ts +12 -0
  414. package/build/src/rules/eslint/typescript/require-type-naming.d.ts.map +1 -0
  415. package/build/src/rules/eslint/typescript/require-type-naming.js +98 -0
  416. package/build/src/rules/eslint/typescript/require-type-naming.js.map +1 -0
  417. package/build/src/toolkit/bootstrap.d.ts +13 -0
  418. package/build/src/toolkit/bootstrap.d.ts.map +1 -0
  419. package/build/src/toolkit/bootstrap.js +175 -0
  420. package/build/src/toolkit/bootstrap.js.map +1 -0
  421. package/build/src/toolkit/cli-header.d.ts +5 -4
  422. package/build/src/toolkit/cli-header.d.ts.map +1 -1
  423. package/build/src/toolkit/cli-header.js +76 -62
  424. package/build/src/toolkit/cli-header.js.map +1 -1
  425. package/build/src/toolkit/index.d.ts +1 -0
  426. package/build/src/toolkit/index.d.ts.map +1 -1
  427. package/build/src/toolkit/index.js +1 -0
  428. package/build/src/toolkit/index.js.map +1 -1
  429. package/build/src/toolkit/logger.d.ts +9 -8
  430. package/build/src/toolkit/logger.d.ts.map +1 -1
  431. package/build/src/toolkit/logger.js +51 -32
  432. package/build/src/toolkit/logger.js.map +1 -1
  433. package/build/src/toolkit/markdown-table.d.ts +6 -5
  434. package/build/src/toolkit/markdown-table.d.ts.map +1 -1
  435. package/build/src/toolkit/markdown-table.js +36 -20
  436. package/build/src/toolkit/markdown-table.js.map +1 -1
  437. package/build/src/types/api/node-releases.d.ts +51 -0
  438. package/build/src/types/api/spdx-licenses.d.ts +41 -0
  439. package/build/src/types/cli/generate/github/funding.d.ts +59 -0
  440. package/build/src/types/cli/generate/github/issue-template.d.ts +142 -0
  441. package/build/src/types/cli/generate/github/workflows.d.ts +336 -0
  442. package/build/src/types/cli/generate/must-haves/agent-conventions.d.ts +43 -0
  443. package/build/src/types/cli/generate/must-haves/dotenv.d.ts +414 -0
  444. package/build/src/types/cli/generate/must-haves/editorconfig.d.ts +33 -0
  445. package/build/src/types/cli/generate/must-haves/gitignore.d.ts +344 -0
  446. package/build/src/types/cli/generate/must-haves/license.d.ts +72 -0
  447. package/build/src/types/cli/generate/must-haves/read-me.d.ts +175 -0
  448. package/build/src/types/cli/index.d.ts +182 -0
  449. package/build/src/types/cli/recipe/index.d.ts +36 -0
  450. package/build/src/types/cli/recipe/package-json/cleanup.d.ts +125 -0
  451. package/build/src/types/cli/recipe/package-json/normalize-artifacts.d.ts +104 -0
  452. package/build/src/types/cli/recipe/package-json/normalize-bundler.d.ts +78 -0
  453. package/build/src/types/cli/recipe/package-json/normalize-dependencies.d.ts +150 -0
  454. package/build/src/types/cli/recipe/package-json/normalize-modules.d.ts +76 -0
  455. package/build/src/types/cli/recipe/package-json/normalize-tooling.d.ts +89 -0
  456. package/build/src/types/cli/recipe/package-json/sync-environment.d.ts +140 -0
  457. package/build/src/types/cli/recipe/package-json/sync-identity.d.ts +107 -0
  458. package/build/src/types/cli/recipe/package-json/sync-ownership.d.ts +152 -0
  459. package/build/src/types/cli/scaffold/app/expressjs.d.ts +21 -0
  460. package/build/src/types/cli/scaffold/app/nextjs.d.ts +21 -0
  461. package/build/src/types/cli/scaffold/app/vite.d.ts +21 -0
  462. package/build/src/types/cli/scaffold/app/workers.d.ts +21 -0
  463. package/build/src/types/cli/scaffold/docs/docusaurus.d.ts +21 -0
  464. package/build/src/types/cli/scaffold/starter/base.d.ts +57 -0
  465. package/build/src/types/cli/utility/changelog.d.ts +381 -0
  466. package/build/src/types/cli/utility/initialize.d.ts +1185 -0
  467. package/build/src/types/cli/utility/run-recipes.d.ts +25 -0
  468. package/build/src/types/cli/utility/run-scripts.d.ts +133 -0
  469. package/build/src/types/cli/utility/transpile.d.ts +90 -0
  470. package/build/src/types/cli/utility/type-check.d.ts +88 -0
  471. package/build/src/types/cli/utility/version.d.ts +286 -0
  472. package/build/src/types/fetch-response.d.ts +12 -0
  473. package/build/src/types/lib/item.d.ts +536 -0
  474. package/build/src/types/lib/nova-config.d.ts +421 -0
  475. package/build/src/types/lib/scaffold.d.ts +342 -0
  476. package/build/src/types/lib/utility.d.ts +486 -0
  477. package/build/src/types/lib/workflow-templates.d.ts +48 -0
  478. package/build/src/types/presets/eslint/dx-code-style.d.ts +8 -0
  479. package/build/src/types/presets/eslint/dx-ignore.d.ts +8 -0
  480. package/build/src/types/presets/eslint/fw-docusaurus.d.ts +8 -0
  481. package/build/src/types/presets/eslint/fw-expressjs.d.ts +8 -0
  482. package/build/src/types/presets/eslint/fw-nextjs.d.ts +8 -0
  483. package/build/src/types/presets/eslint/lang-javascript.d.ts +8 -0
  484. package/build/src/types/presets/eslint/lang-mdx.d.ts +8 -0
  485. package/build/src/types/presets/eslint/lang-typescript.d.ts +8 -0
  486. package/build/src/types/presets/eslint/runtime-browser.d.ts +8 -0
  487. package/build/src/types/presets/eslint/runtime-cloudflare-workers.d.ts +8 -0
  488. package/build/src/types/presets/eslint/runtime-edge.d.ts +8 -0
  489. package/build/src/types/presets/eslint/runtime-node.d.ts +8 -0
  490. package/build/src/types/presets/eslint/runtime-service-worker.d.ts +8 -0
  491. package/build/src/types/presets/eslint/runtime-web-worker.d.ts +8 -0
  492. package/build/src/types/presets/eslint/tool-vite.d.ts +8 -0
  493. package/build/src/types/rules/eslint/conventions/no-default-export-declaration.d.ts +32 -0
  494. package/build/src/types/rules/eslint/conventions/no-implicit-boolean.d.ts +72 -0
  495. package/build/src/types/rules/eslint/conventions/require-explicit-return.d.ts +73 -0
  496. package/build/src/types/rules/eslint/conventions/require-hash-private.d.ts +31 -0
  497. package/build/src/types/rules/eslint/conventions/require-kebab-case-filename.d.ts +64 -0
  498. package/build/src/types/rules/eslint/conventions/require-naming-convention.d.ts +265 -0
  499. package/build/src/types/rules/eslint/conventions/require-undefined-init.d.ts +30 -0
  500. package/build/src/types/rules/eslint/conventions/switch-case-blocks.d.ts +48 -0
  501. package/build/src/types/rules/eslint/formatting/no-complex-arrow-concise.d.ts +74 -0
  502. package/build/src/types/rules/eslint/formatting/no-multiline-strings.d.ts +104 -0
  503. package/build/src/types/rules/eslint/formatting/no-raw-text-in-code.d.ts +28 -0
  504. package/build/src/types/rules/eslint/formatting/no-ternary-in-template-literal.d.ts +26 -0
  505. package/build/src/types/rules/eslint/formatting/require-import-order.d.ts +91 -0
  506. package/build/src/types/rules/eslint/formatting/require-multiline-condition-groups.d.ts +64 -0
  507. package/build/src/types/rules/eslint/formatting/require-multiline-conditions.d.ts +52 -0
  508. package/build/src/types/rules/eslint/formatting/require-padding-lines.d.ts +212 -0
  509. package/build/src/types/rules/eslint/formatting/require-ternary-parens.d.ts +32 -0
  510. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-body.d.ts +56 -0
  511. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts +302 -0
  512. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-param-alignment.d.ts +108 -0
  513. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts +61 -0
  514. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-private.d.ts +40 -0
  515. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-since.d.ts +30 -0
  516. package/build/src/types/rules/eslint/nova/no-logger-dev.d.ts +60 -0
  517. package/build/src/types/rules/eslint/patterns/no-assign-then-return.d.ts +42 -0
  518. package/build/src/types/rules/eslint/patterns/no-await-in-loop.d.ts +87 -0
  519. package/build/src/types/rules/eslint/patterns/no-boolean-var-for-if.d.ts +48 -0
  520. package/build/src/types/rules/eslint/patterns/no-bracket-assignment.d.ts +34 -0
  521. package/build/src/types/rules/eslint/patterns/no-bracket-method-call.d.ts +46 -0
  522. package/build/src/types/rules/eslint/patterns/no-template-curly-in-string.d.ts +32 -0
  523. package/build/src/types/rules/eslint/patterns/no-use-before-define.d.ts +84 -0
  524. package/build/src/types/rules/eslint/regex/no-regex-literal-flags.d.ts +26 -0
  525. package/build/src/types/rules/eslint/regex/no-regex-literals.d.ts +40 -0
  526. package/build/src/types/rules/eslint/safety/no-script-url.d.ts +37 -0
  527. package/build/src/types/rules/eslint/syntax/no-destructuring.d.ts +131 -0
  528. package/build/src/types/rules/eslint/syntax/no-numeric-literals.d.ts +57 -0
  529. package/build/src/types/rules/eslint/syntax/no-optional-chaining.d.ts +26 -0
  530. package/build/src/types/rules/eslint/syntax/no-rest-params.d.ts +78 -0
  531. package/build/src/types/rules/eslint/typescript/no-catch-unknown-annotation.d.ts +30 -0
  532. package/build/src/types/rules/eslint/typescript/no-explicit-any.d.ts +26 -0
  533. package/build/src/types/rules/eslint/typescript/no-inline-type-annotation.d.ts +94 -0
  534. package/build/src/types/rules/eslint/typescript/no-shared-type-import.d.ts +43 -0
  535. package/build/src/types/rules/eslint/typescript/require-bracket-property-access.d.ts +53 -0
  536. package/build/src/types/rules/eslint/typescript/require-type-naming.d.ts +51 -0
  537. package/build/src/types/shared.d.ts +724 -0
  538. package/build/src/types/tests/api/node-releases.test.d.ts +14 -0
  539. package/build/src/types/tests/api/spdx-licenses.test.d.ts +18 -0
  540. package/build/src/types/tests/cli/generate/github/funding.test.d.ts +26 -0
  541. package/build/src/types/tests/cli/generate/github/issue-template.test.d.ts +14 -0
  542. package/build/src/types/tests/cli/generate/github/workflows.test.d.ts +38 -0
  543. package/build/src/types/tests/cli/generate/must-haves/agent-conventions.test.d.ts +32 -0
  544. package/build/src/types/tests/cli/generate/must-haves/dotenv.test.d.ts +14 -0
  545. package/build/src/types/tests/cli/generate/must-haves/editorconfig.test.d.ts +22 -0
  546. package/build/src/types/tests/cli/generate/must-haves/gitignore.test.d.ts +14 -0
  547. package/build/src/types/tests/cli/generate/must-haves/license.test.d.ts +26 -0
  548. package/build/src/types/tests/cli/generate/must-haves/read-me.test.d.ts +26 -0
  549. package/build/src/types/tests/cli/recipe/package-json/cleanup.test.d.ts +42 -0
  550. package/build/src/types/tests/cli/recipe/package-json/normalize-artifacts.test.d.ts +32 -0
  551. package/build/src/types/tests/cli/recipe/package-json/normalize-bundler.test.d.ts +32 -0
  552. package/build/src/types/tests/cli/recipe/package-json/normalize-dependencies.test.d.ts +40 -0
  553. package/build/src/types/tests/cli/recipe/package-json/normalize-modules.test.d.ts +32 -0
  554. package/build/src/types/tests/cli/recipe/package-json/normalize-tooling.test.d.ts +32 -0
  555. package/build/src/types/tests/cli/recipe/package-json/sync-environment.test.d.ts +32 -0
  556. package/build/src/types/tests/cli/recipe/package-json/sync-identity.test.d.ts +32 -0
  557. package/build/src/types/tests/cli/recipe/package-json/sync-ownership.test.d.ts +32 -0
  558. package/build/src/types/tests/cli/scaffold/app/expressjs.test.d.ts +40 -0
  559. package/build/src/types/tests/cli/scaffold/app/nextjs.test.d.ts +42 -0
  560. package/build/src/types/tests/cli/scaffold/app/vite.test.d.ts +42 -0
  561. package/build/src/types/tests/cli/scaffold/app/workers.test.d.ts +40 -0
  562. package/build/src/types/tests/cli/scaffold/docs/docusaurus.test.d.ts +40 -0
  563. package/build/src/types/tests/cli/scaffold/starter/base.test.d.ts +40 -0
  564. package/build/src/types/tests/cli/utility/changelog.test.d.ts +68 -0
  565. package/build/src/types/tests/cli/utility/initialize.test.d.ts +14 -0
  566. package/build/src/types/tests/cli/utility/run-recipes.test.d.ts +22 -0
  567. package/build/src/types/tests/cli/utility/run-scripts.test.d.ts +52 -0
  568. package/build/src/types/tests/cli/utility/transpile.test.d.ts +26 -0
  569. package/build/src/types/tests/cli/utility/type-check.test.d.ts +22 -0
  570. package/build/src/types/tests/cli/utility/version.test.d.ts +12 -0
  571. package/build/src/types/tests/lib/item.test.d.ts +88 -0
  572. package/build/src/types/tests/lib/nova-config.test.d.ts +138 -0
  573. package/build/src/types/tests/lib/regex.test.d.ts +122 -0
  574. package/build/src/types/tests/lib/scaffold.test.d.ts +26 -0
  575. package/build/src/types/tests/lib/schema.test.d.ts +36 -0
  576. package/build/src/types/tests/lib/utility.test.d.ts +324 -0
  577. package/build/src/types/tests/lib/workflow-templates.test.d.ts +77 -0
  578. package/build/src/types/tests/rules/eslint/conventions/no-default-export-declaration.test.d.ts +8 -0
  579. package/build/src/types/tests/rules/eslint/conventions/no-implicit-boolean.test.d.ts +8 -0
  580. package/build/src/types/tests/rules/eslint/conventions/require-explicit-return.test.d.ts +8 -0
  581. package/build/src/types/tests/rules/eslint/conventions/require-hash-private.test.d.ts +8 -0
  582. package/build/src/types/tests/rules/eslint/conventions/require-kebab-case-filename.test.d.ts +8 -0
  583. package/build/src/types/tests/rules/eslint/conventions/require-naming-convention.test.d.ts +8 -0
  584. package/build/src/types/tests/rules/eslint/conventions/require-undefined-init.test.d.ts +8 -0
  585. package/build/src/types/tests/rules/eslint/conventions/switch-case-blocks.test.d.ts +8 -0
  586. package/build/src/types/tests/rules/eslint/formatting/no-complex-arrow-concise.test.d.ts +8 -0
  587. package/build/src/types/tests/rules/eslint/formatting/no-multiline-strings.test.d.ts +8 -0
  588. package/build/src/types/tests/rules/eslint/formatting/no-raw-text-in-code.test.d.ts +8 -0
  589. package/build/src/types/tests/rules/eslint/formatting/no-ternary-in-template-literal.test.d.ts +8 -0
  590. package/build/src/types/tests/rules/eslint/formatting/require-import-order.test.d.ts +8 -0
  591. package/build/src/types/tests/rules/eslint/formatting/require-multiline-condition-groups.test.d.ts +8 -0
  592. package/build/src/types/tests/rules/eslint/formatting/require-multiline-conditions.test.d.ts +8 -0
  593. package/build/src/types/tests/rules/eslint/formatting/require-padding-lines.test.d.ts +8 -0
  594. package/build/src/types/tests/rules/eslint/formatting/require-ternary-parens.test.d.ts +8 -0
  595. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-body.test.d.ts +8 -0
  596. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-hierarchy.test.d.ts +8 -0
  597. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-param-alignment.test.d.ts +8 -0
  598. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-param-name.test.d.ts +8 -0
  599. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-private.test.d.ts +8 -0
  600. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-since.test.d.ts +8 -0
  601. package/build/src/types/tests/rules/eslint/nova/no-logger-dev.test.d.ts +8 -0
  602. package/build/src/types/tests/rules/eslint/patterns/no-assign-then-return.test.d.ts +8 -0
  603. package/build/src/types/tests/rules/eslint/patterns/no-await-in-loop.test.d.ts +8 -0
  604. package/build/src/types/tests/rules/eslint/patterns/no-boolean-var-for-if.test.d.ts +8 -0
  605. package/build/src/types/tests/rules/eslint/patterns/no-bracket-assignment.test.d.ts +8 -0
  606. package/build/src/types/tests/rules/eslint/patterns/no-bracket-method-call.test.d.ts +8 -0
  607. package/build/src/types/tests/rules/eslint/patterns/no-template-curly-in-string.test.d.ts +8 -0
  608. package/build/src/types/tests/rules/eslint/patterns/no-use-before-define.test.d.ts +8 -0
  609. package/build/src/types/tests/rules/eslint/regex/no-regex-literal-flags.test.d.ts +8 -0
  610. package/build/src/types/tests/rules/eslint/regex/no-regex-literals.test.d.ts +8 -0
  611. package/build/src/types/tests/rules/eslint/safety/no-script-url.test.d.ts +8 -0
  612. package/build/src/types/tests/rules/eslint/syntax/no-destructuring.test.d.ts +8 -0
  613. package/build/src/types/tests/rules/eslint/syntax/no-numeric-literals.test.d.ts +8 -0
  614. package/build/src/types/tests/rules/eslint/syntax/no-optional-chaining.test.d.ts +8 -0
  615. package/build/src/types/tests/rules/eslint/syntax/no-rest-params.test.d.ts +8 -0
  616. package/build/src/types/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.d.ts +8 -0
  617. package/build/src/types/tests/rules/eslint/typescript/no-explicit-any.test.d.ts +8 -0
  618. package/build/src/types/tests/rules/eslint/typescript/no-inline-type-annotation.test.d.ts +8 -0
  619. package/build/src/types/tests/rules/eslint/typescript/no-shared-type-import.test.d.ts +8 -0
  620. package/build/src/types/tests/rules/eslint/typescript/require-bracket-property-access.test.d.ts +12 -0
  621. package/build/src/types/tests/rules/eslint/typescript/require-type-naming.test.d.ts +8 -0
  622. package/build/src/types/tests/toolkit/bootstrap.test.d.ts +108 -0
  623. package/build/src/types/tests/toolkit/cli-header.test.d.ts +46 -0
  624. package/build/src/types/tests/toolkit/logger.test.d.ts +20 -0
  625. package/build/src/types/tests/toolkit/markdown-table.test.d.ts +65 -0
  626. package/build/src/types/tests/type-declarations.test.d.ts +564 -0
  627. package/build/src/types/toolkit/bootstrap.d.ts +133 -0
  628. package/build/src/types/toolkit/cli-header.d.ts +203 -0
  629. package/build/src/types/toolkit/logger.d.ts +160 -0
  630. package/build/src/types/toolkit/markdown-table.d.ts +159 -0
  631. package/build/templates/.novaignore +0 -0
  632. package/build/templates/generators/github/funding/FUNDING.yml +12 -0
  633. package/build/templates/generators/github/issue-template/BUG-REPORT.yml +86 -0
  634. package/build/templates/generators/github/issue-template/FEATURE-REQUEST.yml +61 -0
  635. package/build/templates/generators/github/issue-template/SUPPORT-REQUEST.yml +50 -0
  636. package/build/templates/generators/github/issue-template/bug-report-fields/android.yml +16 -0
  637. package/build/templates/generators/github/issue-template/bug-report-fields/apple.yml +23 -0
  638. package/build/templates/generators/github/issue-template/bug-report-fields/csharp.yml +20 -0
  639. package/build/templates/generators/github/issue-template/bug-report-fields/docker.yml +33 -0
  640. package/build/templates/generators/github/issue-template/bug-report-fields/homebridge.yml +16 -0
  641. package/build/templates/generators/github/issue-template/bug-report-fields/nodejs.yml +8 -0
  642. package/build/templates/generators/github/issue-template/bug-report-fields/pfsense.yml +8 -0
  643. package/build/templates/generators/github/issue-template/bug-report-fields/php.yml +8 -0
  644. package/build/templates/generators/github/issue-template/bug-report-fields/python.yml +8 -0
  645. package/build/templates/generators/github/issue-template/bug-report-fields/screenshots.yml +7 -0
  646. package/build/templates/generators/github/issue-template/bug-report-fields/synology.yml +8 -0
  647. package/build/templates/generators/github/issue-template/bug-report-fields/web.yml +21 -0
  648. package/build/templates/generators/github/issue-template/config.yml +1 -0
  649. package/build/templates/generators/github/issue-template/legal-agreements/bug-report.yml +8 -0
  650. package/build/templates/generators/github/issue-template/legal-agreements/feature-request.yml +8 -0
  651. package/build/templates/generators/github/issue-template/legal-agreements/support-request.yml +8 -0
  652. package/build/templates/generators/github/workflows/check-sponsor-gated-issues/base.yml +57 -0
  653. package/build/templates/generators/github/workflows/lock-inactive-issues/base.yml +43 -0
  654. package/build/templates/generators/github/workflows/lock-inactive-issues/triggers/schedule.yml +5 -0
  655. package/build/templates/generators/github/workflows/publish-to-aws-amplify-nextjs/base.yml +53 -0
  656. package/build/templates/generators/github/workflows/publish-to-aws-amplify-nextjs/triggers/push.yml +5 -0
  657. package/build/templates/generators/github/workflows/publish-to-aws-amplify-nextjs/triggers/release.yml +5 -0
  658. package/build/templates/generators/github/workflows/publish-to-cloudflare-pages-docusaurus/base.yml +62 -0
  659. package/build/templates/generators/github/workflows/publish-to-cloudflare-pages-docusaurus/triggers/push.yml +5 -0
  660. package/build/templates/generators/github/workflows/publish-to-cloudflare-pages-docusaurus/triggers/release.yml +5 -0
  661. package/build/templates/generators/github/workflows/publish-to-docker-hub/base.yml +58 -0
  662. package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/release.yml +5 -0
  663. package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/workflow-run-any.yml +7 -0
  664. package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/workflow-run-failure.yml +8 -0
  665. package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/workflow-run-success.yml +8 -0
  666. package/build/templates/generators/github/workflows/publish-to-github-packages/base.yml +108 -0
  667. package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/release.yml +5 -0
  668. package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/workflow-run-any.yml +7 -0
  669. package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/workflow-run-failure.yml +8 -0
  670. package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/workflow-run-success.yml +8 -0
  671. package/build/templates/generators/github/workflows/publish-to-github-pages-docusaurus/base.yml +79 -0
  672. package/build/templates/generators/github/workflows/publish-to-github-pages-docusaurus/triggers/push.yml +5 -0
  673. package/build/templates/generators/github/workflows/publish-to-github-pages-docusaurus/triggers/release.yml +5 -0
  674. package/build/templates/generators/github/workflows/publish-to-npm/base.yml +91 -0
  675. package/build/templates/generators/github/workflows/publish-to-npm/triggers/release.yml +5 -0
  676. package/build/templates/generators/github/workflows/publish-to-npm/triggers/workflow-run-any.yml +7 -0
  677. package/build/templates/generators/github/workflows/publish-to-npm/triggers/workflow-run-failure.yml +8 -0
  678. package/build/templates/generators/github/workflows/publish-to-npm/triggers/workflow-run-success.yml +8 -0
  679. package/build/templates/generators/must-haves/agent-conventions/.cursorrules +54 -0
  680. package/build/templates/generators/must-haves/agent-conventions/AGENTS.md +54 -0
  681. package/build/templates/generators/must-haves/agent-conventions/CLAUDE.md +54 -0
  682. package/build/templates/generators/must-haves/agent-conventions/PROJECT_RULES.md +290 -0
  683. package/build/templates/generators/must-haves/agent-conventions/VISION.md +62 -0
  684. package/build/templates/generators/must-haves/agent-conventions/conventions/csharp.md +317 -0
  685. package/build/templates/generators/must-haves/agent-conventions/conventions/css.md +188 -0
  686. package/build/templates/generators/must-haves/agent-conventions/conventions/docker.md +131 -0
  687. package/build/templates/generators/must-haves/agent-conventions/conventions/documentation.md +615 -0
  688. package/build/templates/generators/must-haves/agent-conventions/conventions/java.md +285 -0
  689. package/build/templates/generators/must-haves/agent-conventions/conventions/kotlin.md +297 -0
  690. package/build/templates/generators/must-haves/agent-conventions/conventions/php.md +257 -0
  691. package/build/templates/generators/must-haves/agent-conventions/conventions/python.md +260 -0
  692. package/build/templates/generators/must-haves/agent-conventions/conventions/shell.md +205 -0
  693. package/build/templates/generators/must-haves/agent-conventions/conventions/swift.md +312 -0
  694. package/build/templates/generators/must-haves/agent-conventions/conventions/typescript.md +1530 -0
  695. package/build/templates/generators/must-haves/agent-conventions/conventions/universal.md +202 -0
  696. package/build/templates/generators/must-haves/dotenv/.env.sample +14 -0
  697. package/build/templates/generators/must-haves/editorconfig/.editorconfig +212 -0
  698. package/build/templates/generators/must-haves/license/AGPL-3.0 +662 -0
  699. package/build/templates/generators/must-haves/license/Apache-2.0 +202 -0
  700. package/build/templates/generators/must-haves/license/BSD-2-Clause +25 -0
  701. package/build/templates/generators/must-haves/license/BSD-3-Clause +29 -0
  702. package/build/templates/generators/must-haves/license/BSL-1.0 +24 -0
  703. package/build/templates/generators/must-haves/license/CC0-1.0 +122 -0
  704. package/build/templates/generators/must-haves/license/EPL-2.0 +278 -0
  705. package/build/templates/generators/must-haves/license/GPL-2.0 +340 -0
  706. package/build/templates/generators/must-haves/license/GPL-3.0 +675 -0
  707. package/build/templates/generators/must-haves/license/LGPL-2.1 +505 -0
  708. package/build/templates/generators/must-haves/license/MIT +22 -0
  709. package/build/templates/generators/must-haves/license/MPL-2.0 +374 -0
  710. package/build/templates/generators/must-haves/license/Proprietary +22 -0
  711. package/build/templates/generators/must-haves/license/Unlicense +25 -0
  712. package/build/templates/generators/must-haves/read-me/README.md +17 -0
  713. package/build/templates/scaffold/app/express/package.json +20 -0
  714. package/build/templates/scaffold/app/express/src/index.ts +12 -0
  715. package/build/templates/scaffold/app/express/tsconfig.json +15 -0
  716. package/build/templates/scaffold/app/nextjs/next.config.mjs +4 -0
  717. package/build/templates/scaffold/app/nextjs/package.json +22 -0
  718. package/build/templates/scaffold/app/nextjs/src/app/globals.css +11 -0
  719. package/build/templates/scaffold/app/nextjs/src/app/layout.tsx +18 -0
  720. package/build/templates/scaffold/app/nextjs/src/app/page.tsx +8 -0
  721. package/build/templates/scaffold/app/nextjs/tsconfig.json +26 -0
  722. package/build/templates/scaffold/app/vite/index.html +12 -0
  723. package/build/templates/scaffold/app/vite/package.json +17 -0
  724. package/build/templates/scaffold/app/vite/src/main.ts +5 -0
  725. package/build/templates/scaffold/app/vite/tsconfig.json +16 -0
  726. package/build/templates/scaffold/app/vite/vite.config.mts +3 -0
  727. package/build/templates/scaffold/app/workers/package.json +16 -0
  728. package/build/templates/scaffold/app/workers/src/index.ts +13 -0
  729. package/build/templates/scaffold/app/workers/tsconfig.json +17 -0
  730. package/build/templates/scaffold/app/workers/wrangler.toml +3 -0
  731. package/build/templates/scaffold/docs/docusaurus/docs/intro.md +9 -0
  732. package/build/templates/scaffold/docs/docusaurus/docusaurus.config.ts +33 -0
  733. package/build/templates/scaffold/docs/docusaurus/package.json +20 -0
  734. package/build/templates/scaffold/docs/docusaurus/sidebars.ts +9 -0
  735. package/build/templates/scaffold/docs/docusaurus/static/.gitkeep +0 -0
  736. package/build/templates/scaffold/docs/docusaurus/tsconfig.json +8 -0
  737. package/package.json +33 -23
  738. package/build/src/presets/eslint/dx-code-style.d.mts +0 -4
  739. package/build/src/presets/eslint/dx-code-style.d.mts.map +0 -1
  740. package/build/src/presets/eslint/dx-code-style.mjs +0 -211
  741. package/build/src/presets/eslint/dx-code-style.mjs.map +0 -1
  742. package/build/src/presets/eslint/dx-ignore.d.mts +0 -4
  743. package/build/src/presets/eslint/dx-ignore.d.mts.map +0 -1
  744. package/build/src/presets/eslint/dx-ignore.mjs.map +0 -1
  745. package/build/src/presets/eslint/env-browser.d.mts +0 -4
  746. package/build/src/presets/eslint/env-browser.d.mts.map +0 -1
  747. package/build/src/presets/eslint/env-browser.mjs +0 -3
  748. package/build/src/presets/eslint/env-browser.mjs.map +0 -1
  749. package/build/src/presets/eslint/env-edge.d.mts +0 -4
  750. package/build/src/presets/eslint/env-edge.d.mts.map +0 -1
  751. package/build/src/presets/eslint/env-edge.mjs.map +0 -1
  752. package/build/src/presets/eslint/env-node.d.mts +0 -4
  753. package/build/src/presets/eslint/env-node.d.mts.map +0 -1
  754. package/build/src/presets/eslint/env-node.mjs.map +0 -1
  755. package/build/src/presets/eslint/env-service-worker.d.mts +0 -4
  756. package/build/src/presets/eslint/env-service-worker.d.mts.map +0 -1
  757. package/build/src/presets/eslint/env-service-worker.mjs +0 -3
  758. package/build/src/presets/eslint/env-service-worker.mjs.map +0 -1
  759. package/build/src/presets/eslint/env-web-worker.d.mts +0 -4
  760. package/build/src/presets/eslint/env-web-worker.d.mts.map +0 -1
  761. package/build/src/presets/eslint/env-web-worker.mjs.map +0 -1
  762. package/build/src/presets/eslint/fw-docusaurus.d.mts +0 -4
  763. package/build/src/presets/eslint/fw-docusaurus.d.mts.map +0 -1
  764. package/build/src/presets/eslint/fw-docusaurus.mjs +0 -10
  765. package/build/src/presets/eslint/fw-docusaurus.mjs.map +0 -1
  766. package/build/src/presets/eslint/fw-expressjs.d.mts +0 -4
  767. package/build/src/presets/eslint/fw-expressjs.d.mts.map +0 -1
  768. package/build/src/presets/eslint/fw-expressjs.mjs.map +0 -1
  769. package/build/src/presets/eslint/fw-nextjs.d.mts +0 -4
  770. package/build/src/presets/eslint/fw-nextjs.d.mts.map +0 -1
  771. package/build/src/presets/eslint/fw-nextjs.mjs.map +0 -1
  772. package/build/src/presets/eslint/index.d.mts +0 -16
  773. package/build/src/presets/eslint/index.d.mts.map +0 -1
  774. package/build/src/presets/eslint/index.mjs +0 -16
  775. package/build/src/presets/eslint/index.mjs.map +0 -1
  776. package/build/src/presets/eslint/lang-javascript.d.mts +0 -4
  777. package/build/src/presets/eslint/lang-javascript.d.mts.map +0 -1
  778. package/build/src/presets/eslint/lang-javascript.mjs +0 -3
  779. package/build/src/presets/eslint/lang-javascript.mjs.map +0 -1
  780. package/build/src/presets/eslint/lang-mdx.d.mts +0 -4
  781. package/build/src/presets/eslint/lang-mdx.d.mts.map +0 -1
  782. package/build/src/presets/eslint/lang-mdx.mjs.map +0 -1
  783. package/build/src/presets/eslint/lang-typescript.d.mts +0 -4
  784. package/build/src/presets/eslint/lang-typescript.d.mts.map +0 -1
  785. package/build/src/presets/eslint/lang-typescript.mjs +0 -88
  786. package/build/src/presets/eslint/lang-typescript.mjs.map +0 -1
  787. package/build/src/presets/eslint/platform-cloudflare-workers.d.mts +0 -4
  788. package/build/src/presets/eslint/platform-cloudflare-workers.d.mts.map +0 -1
  789. package/build/src/presets/eslint/platform-cloudflare-workers.mjs +0 -8
  790. package/build/src/presets/eslint/platform-cloudflare-workers.mjs.map +0 -1
  791. package/build/src/presets/eslint/tool-vite.d.mts +0 -4
  792. package/build/src/presets/eslint/tool-vite.d.mts.map +0 -1
  793. package/build/src/presets/eslint/tool-vite.mjs.map +0 -1
  794. package/build/src/presets/tsconfig/env-web-worker.json +0 -12
  795. package/build/src/rules/eslint/patterns/no-destructuring.d.ts +0 -13
  796. package/build/src/rules/eslint/patterns/no-destructuring.d.ts.map +0 -1
  797. package/build/src/rules/eslint/patterns/no-destructuring.js +0 -177
  798. package/build/src/rules/eslint/patterns/no-destructuring.js.map +0 -1
  799. package/build/src/rules/eslint/patterns/no-implicit-boolean.d.ts +0 -6
  800. package/build/src/rules/eslint/patterns/no-implicit-boolean.d.ts.map +0 -1
  801. package/build/src/rules/eslint/patterns/no-implicit-boolean.js +0 -62
  802. package/build/src/rules/eslint/patterns/no-implicit-boolean.js.map +0 -1
  803. package/build/src/rules/eslint/patterns/no-ternary-in-template-literal.d.ts +0 -6
  804. package/build/src/rules/eslint/patterns/no-ternary-in-template-literal.d.ts.map +0 -1
  805. package/build/src/rules/eslint/patterns/no-ternary-in-template-literal.js +0 -32
  806. package/build/src/rules/eslint/patterns/no-ternary-in-template-literal.js.map +0 -1
  807. package/build/src/rules/eslint/patterns/switch-case-blocks.d.ts +0 -6
  808. package/build/src/rules/eslint/patterns/switch-case-blocks.d.ts.map +0 -1
  809. package/build/src/rules/eslint/patterns/switch-case-blocks.js +0 -36
  810. package/build/src/rules/eslint/patterns/switch-case-blocks.js.map +0 -1
  811. package/build/src/tests/api/node-releases.test.d.ts +0 -2
  812. package/build/src/tests/api/node-releases.test.d.ts.map +0 -1
  813. package/build/src/tests/api/node-releases.test.js +0 -193
  814. package/build/src/tests/api/node-releases.test.js.map +0 -1
  815. package/build/src/tests/api/spdx-licenses.test.d.ts +0 -2
  816. package/build/src/tests/api/spdx-licenses.test.d.ts.map +0 -1
  817. package/build/src/tests/api/spdx-licenses.test.js +0 -91
  818. package/build/src/tests/api/spdx-licenses.test.js.map +0 -1
  819. package/build/src/tests/cli/recipe/package-json/cleanup.test.d.ts +0 -2
  820. package/build/src/tests/cli/recipe/package-json/cleanup.test.d.ts.map +0 -1
  821. package/build/src/tests/cli/recipe/package-json/cleanup.test.js +0 -240
  822. package/build/src/tests/cli/recipe/package-json/cleanup.test.js.map +0 -1
  823. package/build/src/tests/cli/recipe/package-json/normalize-artifacts.test.d.ts +0 -2
  824. package/build/src/tests/cli/recipe/package-json/normalize-artifacts.test.d.ts.map +0 -1
  825. package/build/src/tests/cli/recipe/package-json/normalize-artifacts.test.js +0 -161
  826. package/build/src/tests/cli/recipe/package-json/normalize-artifacts.test.js.map +0 -1
  827. package/build/src/tests/cli/recipe/package-json/normalize-bundler.test.d.ts +0 -2
  828. package/build/src/tests/cli/recipe/package-json/normalize-bundler.test.d.ts.map +0 -1
  829. package/build/src/tests/cli/recipe/package-json/normalize-bundler.test.js +0 -161
  830. package/build/src/tests/cli/recipe/package-json/normalize-bundler.test.js.map +0 -1
  831. package/build/src/tests/cli/recipe/package-json/normalize-dependencies.test.d.ts +0 -2
  832. package/build/src/tests/cli/recipe/package-json/normalize-dependencies.test.d.ts.map +0 -1
  833. package/build/src/tests/cli/recipe/package-json/normalize-dependencies.test.js +0 -175
  834. package/build/src/tests/cli/recipe/package-json/normalize-dependencies.test.js.map +0 -1
  835. package/build/src/tests/cli/recipe/package-json/normalize-modules.test.d.ts +0 -2
  836. package/build/src/tests/cli/recipe/package-json/normalize-modules.test.d.ts.map +0 -1
  837. package/build/src/tests/cli/recipe/package-json/normalize-modules.test.js +0 -164
  838. package/build/src/tests/cli/recipe/package-json/normalize-modules.test.js.map +0 -1
  839. package/build/src/tests/cli/recipe/package-json/normalize-tooling.test.d.ts +0 -2
  840. package/build/src/tests/cli/recipe/package-json/normalize-tooling.test.d.ts.map +0 -1
  841. package/build/src/tests/cli/recipe/package-json/normalize-tooling.test.js +0 -193
  842. package/build/src/tests/cli/recipe/package-json/normalize-tooling.test.js.map +0 -1
  843. package/build/src/tests/cli/recipe/package-json/sync-environment.test.d.ts +0 -2
  844. package/build/src/tests/cli/recipe/package-json/sync-environment.test.d.ts.map +0 -1
  845. package/build/src/tests/cli/recipe/package-json/sync-environment.test.js +0 -158
  846. package/build/src/tests/cli/recipe/package-json/sync-environment.test.js.map +0 -1
  847. package/build/src/tests/cli/recipe/package-json/sync-identity.test.d.ts +0 -2
  848. package/build/src/tests/cli/recipe/package-json/sync-identity.test.d.ts.map +0 -1
  849. package/build/src/tests/cli/recipe/package-json/sync-identity.test.js +0 -156
  850. package/build/src/tests/cli/recipe/package-json/sync-identity.test.js.map +0 -1
  851. package/build/src/tests/cli/recipe/package-json/sync-ownership.test.d.ts +0 -2
  852. package/build/src/tests/cli/recipe/package-json/sync-ownership.test.d.ts.map +0 -1
  853. package/build/src/tests/cli/recipe/package-json/sync-ownership.test.js +0 -164
  854. package/build/src/tests/cli/recipe/package-json/sync-ownership.test.js.map +0 -1
  855. package/build/src/tests/cli/utility/changelog.test.d.ts +0 -2
  856. package/build/src/tests/cli/utility/changelog.test.d.ts.map +0 -1
  857. package/build/src/tests/cli/utility/changelog.test.js +0 -274
  858. package/build/src/tests/cli/utility/changelog.test.js.map +0 -1
  859. package/build/src/tests/cli/utility/initialize.test.d.ts +0 -2
  860. package/build/src/tests/cli/utility/initialize.test.d.ts.map +0 -1
  861. package/build/src/tests/cli/utility/initialize.test.js +0 -27
  862. package/build/src/tests/cli/utility/initialize.test.js.map +0 -1
  863. package/build/src/tests/cli/utility/run-recipes.test.d.ts +0 -2
  864. package/build/src/tests/cli/utility/run-recipes.test.d.ts.map +0 -1
  865. package/build/src/tests/cli/utility/run-recipes.test.js +0 -41
  866. package/build/src/tests/cli/utility/run-recipes.test.js.map +0 -1
  867. package/build/src/tests/cli/utility/run-scripts.test.d.ts +0 -2
  868. package/build/src/tests/cli/utility/run-scripts.test.d.ts.map +0 -1
  869. package/build/src/tests/cli/utility/run-scripts.test.js +0 -153
  870. package/build/src/tests/cli/utility/run-scripts.test.js.map +0 -1
  871. package/build/src/tests/cli/utility/transpile.test.d.ts +0 -2
  872. package/build/src/tests/cli/utility/transpile.test.d.ts.map +0 -1
  873. package/build/src/tests/cli/utility/transpile.test.js +0 -65
  874. package/build/src/tests/cli/utility/transpile.test.js.map +0 -1
  875. package/build/src/tests/cli/utility/type-check.test.d.ts +0 -2
  876. package/build/src/tests/cli/utility/type-check.test.d.ts.map +0 -1
  877. package/build/src/tests/cli/utility/type-check.test.js +0 -63
  878. package/build/src/tests/cli/utility/type-check.test.js.map +0 -1
  879. package/build/src/tests/cli/utility/version.test.d.ts +0 -2
  880. package/build/src/tests/cli/utility/version.test.d.ts.map +0 -1
  881. package/build/src/tests/cli/utility/version.test.js +0 -38
  882. package/build/src/tests/cli/utility/version.test.js.map +0 -1
  883. package/build/src/tests/lib/item.test.d.ts +0 -2
  884. package/build/src/tests/lib/item.test.d.ts.map +0 -1
  885. package/build/src/tests/lib/item.test.js +0 -142
  886. package/build/src/tests/lib/item.test.js.map +0 -1
  887. package/build/src/tests/lib/nova-config.test.d.ts +0 -2
  888. package/build/src/tests/lib/nova-config.test.d.ts.map +0 -1
  889. package/build/src/tests/lib/nova-config.test.js +0 -516
  890. package/build/src/tests/lib/nova-config.test.js.map +0 -1
  891. package/build/src/tests/lib/regex.test.d.ts +0 -2
  892. package/build/src/tests/lib/regex.test.d.ts.map +0 -1
  893. package/build/src/tests/lib/regex.test.js +0 -342
  894. package/build/src/tests/lib/regex.test.js.map +0 -1
  895. package/build/src/tests/lib/schema.test.d.ts +0 -2
  896. package/build/src/tests/lib/schema.test.d.ts.map +0 -1
  897. package/build/src/tests/lib/schema.test.js +0 -260
  898. package/build/src/tests/lib/schema.test.js.map +0 -1
  899. package/build/src/tests/lib/utility.test.d.ts +0 -2
  900. package/build/src/tests/lib/utility.test.d.ts.map +0 -1
  901. package/build/src/tests/lib/utility.test.js +0 -744
  902. package/build/src/tests/lib/utility.test.js.map +0 -1
  903. package/build/src/tests/rules/eslint/formatting/no-raw-text-in-code.test.d.ts +0 -2
  904. package/build/src/tests/rules/eslint/formatting/no-raw-text-in-code.test.d.ts.map +0 -1
  905. package/build/src/tests/rules/eslint/formatting/no-raw-text-in-code.test.js +0 -47
  906. package/build/src/tests/rules/eslint/formatting/no-raw-text-in-code.test.js.map +0 -1
  907. package/build/src/tests/rules/eslint/formatting/require-padding-lines.test.d.ts +0 -2
  908. package/build/src/tests/rules/eslint/formatting/require-padding-lines.test.d.ts.map +0 -1
  909. package/build/src/tests/rules/eslint/formatting/require-padding-lines.test.js +0 -131
  910. package/build/src/tests/rules/eslint/formatting/require-padding-lines.test.js.map +0 -1
  911. package/build/src/tests/rules/eslint/nova/no-logger-dev.test.d.ts +0 -2
  912. package/build/src/tests/rules/eslint/nova/no-logger-dev.test.d.ts.map +0 -1
  913. package/build/src/tests/rules/eslint/nova/no-logger-dev.test.js +0 -55
  914. package/build/src/tests/rules/eslint/nova/no-logger-dev.test.js.map +0 -1
  915. package/build/src/tests/rules/eslint/patterns/no-assign-then-return.test.d.ts +0 -2
  916. package/build/src/tests/rules/eslint/patterns/no-assign-then-return.test.d.ts.map +0 -1
  917. package/build/src/tests/rules/eslint/patterns/no-assign-then-return.test.js +0 -39
  918. package/build/src/tests/rules/eslint/patterns/no-assign-then-return.test.js.map +0 -1
  919. package/build/src/tests/rules/eslint/patterns/no-bracket-assignment.test.d.ts +0 -2
  920. package/build/src/tests/rules/eslint/patterns/no-bracket-assignment.test.d.ts.map +0 -1
  921. package/build/src/tests/rules/eslint/patterns/no-bracket-assignment.test.js +0 -40
  922. package/build/src/tests/rules/eslint/patterns/no-bracket-assignment.test.js.map +0 -1
  923. package/build/src/tests/rules/eslint/patterns/no-destructuring.test.d.ts +0 -2
  924. package/build/src/tests/rules/eslint/patterns/no-destructuring.test.d.ts.map +0 -1
  925. package/build/src/tests/rules/eslint/patterns/no-destructuring.test.js +0 -86
  926. package/build/src/tests/rules/eslint/patterns/no-destructuring.test.js.map +0 -1
  927. package/build/src/tests/rules/eslint/patterns/no-implicit-boolean.test.d.ts +0 -2
  928. package/build/src/tests/rules/eslint/patterns/no-implicit-boolean.test.d.ts.map +0 -1
  929. package/build/src/tests/rules/eslint/patterns/no-implicit-boolean.test.js +0 -76
  930. package/build/src/tests/rules/eslint/patterns/no-implicit-boolean.test.js.map +0 -1
  931. package/build/src/tests/rules/eslint/patterns/no-ternary-in-template-literal.test.d.ts +0 -2
  932. package/build/src/tests/rules/eslint/patterns/no-ternary-in-template-literal.test.d.ts.map +0 -1
  933. package/build/src/tests/rules/eslint/patterns/no-ternary-in-template-literal.test.js +0 -42
  934. package/build/src/tests/rules/eslint/patterns/no-ternary-in-template-literal.test.js.map +0 -1
  935. package/build/src/tests/rules/eslint/patterns/switch-case-blocks.test.d.ts +0 -2
  936. package/build/src/tests/rules/eslint/patterns/switch-case-blocks.test.d.ts.map +0 -1
  937. package/build/src/tests/rules/eslint/patterns/switch-case-blocks.test.js +0 -43
  938. package/build/src/tests/rules/eslint/patterns/switch-case-blocks.test.js.map +0 -1
  939. package/build/src/tests/rules/eslint/regex/no-regex-literal-flags.test.d.ts +0 -2
  940. package/build/src/tests/rules/eslint/regex/no-regex-literal-flags.test.d.ts.map +0 -1
  941. package/build/src/tests/rules/eslint/regex/no-regex-literal-flags.test.js +0 -47
  942. package/build/src/tests/rules/eslint/regex/no-regex-literal-flags.test.js.map +0 -1
  943. package/build/src/tests/rules/eslint/regex/no-regex-literals.test.d.ts +0 -2
  944. package/build/src/tests/rules/eslint/regex/no-regex-literals.test.d.ts.map +0 -1
  945. package/build/src/tests/rules/eslint/regex/no-regex-literals.test.js +0 -49
  946. package/build/src/tests/rules/eslint/regex/no-regex-literals.test.js.map +0 -1
  947. package/build/src/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.d.ts +0 -2
  948. package/build/src/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.d.ts.map +0 -1
  949. package/build/src/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.js +0 -34
  950. package/build/src/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.js.map +0 -1
  951. package/build/src/tests/rules/eslint/typescript/no-inline-type-annotation.test.d.ts +0 -2
  952. package/build/src/tests/rules/eslint/typescript/no-inline-type-annotation.test.d.ts.map +0 -1
  953. package/build/src/tests/rules/eslint/typescript/no-inline-type-annotation.test.js +0 -55
  954. package/build/src/tests/rules/eslint/typescript/no-inline-type-annotation.test.js.map +0 -1
  955. package/build/src/tests/rules/eslint/typescript/no-shared-type-import.test.d.ts +0 -2
  956. package/build/src/tests/rules/eslint/typescript/no-shared-type-import.test.d.ts.map +0 -1
  957. package/build/src/tests/rules/eslint/typescript/no-shared-type-import.test.js +0 -51
  958. package/build/src/tests/rules/eslint/typescript/no-shared-type-import.test.js.map +0 -1
  959. package/build/src/tests/toolkit/cli-header.test.d.ts +0 -2
  960. package/build/src/tests/toolkit/cli-header.test.d.ts.map +0 -1
  961. package/build/src/tests/toolkit/cli-header.test.js +0 -143
  962. package/build/src/tests/toolkit/cli-header.test.js.map +0 -1
  963. package/build/src/tests/toolkit/logger.test.d.ts +0 -2
  964. package/build/src/tests/toolkit/logger.test.d.ts.map +0 -1
  965. package/build/src/tests/toolkit/logger.test.js +0 -96
  966. package/build/src/tests/toolkit/logger.test.js.map +0 -1
  967. package/build/src/tests/toolkit/markdown-table.test.d.ts +0 -2
  968. package/build/src/tests/toolkit/markdown-table.test.d.ts.map +0 -1
  969. package/build/src/tests/toolkit/markdown-table.test.js +0 -138
  970. package/build/src/tests/toolkit/markdown-table.test.js.map +0 -1
  971. /package/build/src/presets/tsconfig/{env-browser.json → runtime-browser.json} +0 -0
  972. /package/build/src/presets/tsconfig/{env-edge.json → runtime-edge.json} +0 -0
  973. /package/build/src/presets/tsconfig/{env-node.json → runtime-node.json} +0 -0
  974. /package/build/src/presets/tsconfig/{env-service-worker.json → runtime-service-worker.json} +0 -0
@@ -0,0 +1,446 @@
1
+ import { promises as fs } from 'fs';
2
+ import { join } from 'path';
3
+ import prompts from 'prompts';
4
+ import { LIB_REGEX_PATTERN_HASH_BORDER_LINE } from '../../../lib/regex.js';
5
+ import { isProjectRoot, resolveTemplatePath, saveGeneratedFile, } from '../../../lib/utility.js';
6
+ import { Logger } from '../../../toolkit/index.js';
7
+ export class CliGenerateMustHavesGitignore {
8
+ static async run(options) {
9
+ const currentDirectory = process.cwd();
10
+ const isAtProjectRoot = await isProjectRoot(currentDirectory);
11
+ if (isAtProjectRoot !== true) {
12
+ process.exitCode = 1;
13
+ return;
14
+ }
15
+ const isDryRun = options['dryRun'] === true;
16
+ const isReplaceFile = options['replaceFile'] === true;
17
+ if (isDryRun === true) {
18
+ Logger.customize({
19
+ name: 'CliGenerateMustHavesGitignore.run',
20
+ purpose: 'options',
21
+ }).warn('Dry run enabled. File changes will not be made in this session.');
22
+ }
23
+ if (isReplaceFile === true) {
24
+ const replaceFileNotice = (isDryRun === true) ? 'This option has no effect during a dry run session.' : 'Backup file will not be created.';
25
+ Logger.customize({
26
+ name: 'CliGenerateMustHavesGitignore.run',
27
+ purpose: 'options',
28
+ }).warn(`Replace file enabled. ${replaceFileNotice}`);
29
+ }
30
+ const templateDirectory = resolveTemplatePath(import.meta.url, 'generators/must-haves/gitignore');
31
+ const targetPath = join(currentDirectory, '.gitignore');
32
+ let fileExists = false;
33
+ try {
34
+ await fs.access(targetPath);
35
+ fileExists = true;
36
+ }
37
+ catch {
38
+ }
39
+ if (fileExists === true) {
40
+ while (true) {
41
+ const modeChoices = [
42
+ {
43
+ title: 'Manage existing patterns',
44
+ value: 'manage',
45
+ },
46
+ {
47
+ title: 'Regenerate from template',
48
+ value: 'regenerate',
49
+ },
50
+ ];
51
+ const modeOutput = await CliGenerateMustHavesGitignore.promptWithCancel({
52
+ type: 'select',
53
+ name: 'mode',
54
+ message: '.gitignore already exists. What would you like to do?',
55
+ choices: modeChoices,
56
+ initial: 0,
57
+ });
58
+ if (modeOutput['cancelled'] === true) {
59
+ return;
60
+ }
61
+ const modeOutputResult = modeOutput['result'];
62
+ const selectedMode = modeOutputResult.mode;
63
+ if (selectedMode === undefined) {
64
+ return;
65
+ }
66
+ if (selectedMode === 'manage') {
67
+ const manageResult = await CliGenerateMustHavesGitignore.promptManageMenu({
68
+ templateDirectory,
69
+ targetPath,
70
+ isDryRun,
71
+ isReplaceFile,
72
+ });
73
+ if (manageResult === 'exit') {
74
+ return;
75
+ }
76
+ continue;
77
+ }
78
+ const result = await CliGenerateMustHavesGitignore.promptRegenerate({
79
+ templateDirectory,
80
+ currentDirectory,
81
+ isDryRun,
82
+ isReplaceFile,
83
+ });
84
+ if (result === 'cancelled') {
85
+ continue;
86
+ }
87
+ return;
88
+ }
89
+ }
90
+ await CliGenerateMustHavesGitignore.promptRegenerate({
91
+ templateDirectory,
92
+ currentDirectory,
93
+ isDryRun,
94
+ isReplaceFile,
95
+ });
96
+ return;
97
+ }
98
+ static async promptRegenerate(options) {
99
+ const templateDirectory = options['templateDirectory'];
100
+ const currentDirectory = options['currentDirectory'];
101
+ const isDryRun = options['isDryRun'];
102
+ const isReplaceFile = options['isReplaceFile'];
103
+ const customEntries = [];
104
+ let addMore = true;
105
+ let cancelled = false;
106
+ while (addMore === true) {
107
+ const entryOutput = await CliGenerateMustHavesGitignore.promptWithCancel({
108
+ type: 'text',
109
+ name: 'entry',
110
+ message: 'Pattern to ignore (leave empty to finish):',
111
+ });
112
+ if (entryOutput['cancelled'] === true) {
113
+ cancelled = true;
114
+ break;
115
+ }
116
+ const entryOutputResult = entryOutput['result'];
117
+ if (entryOutputResult.entry === undefined || entryOutputResult.entry.trim() === '') {
118
+ addMore = false;
119
+ continue;
120
+ }
121
+ const trimmedEntry = entryOutputResult.entry.trim();
122
+ customEntries.push(trimmedEntry);
123
+ }
124
+ if (cancelled === true) {
125
+ return 'cancelled';
126
+ }
127
+ const templatePath = join(templateDirectory, '.gitignore');
128
+ const targetPath = join(currentDirectory, '.gitignore');
129
+ let content = undefined;
130
+ try {
131
+ content = await fs.readFile(templatePath, 'utf-8');
132
+ }
133
+ catch {
134
+ Logger.customize({
135
+ name: 'CliGenerateMustHavesGitignore.promptRegenerate',
136
+ purpose: 'read',
137
+ }).error(`Failed to read template "${templatePath}".`);
138
+ return 'completed';
139
+ }
140
+ let finalContent = content;
141
+ if (customEntries.length > 0) {
142
+ finalContent = `${content}${customEntries.join('\n')}\n`;
143
+ }
144
+ if (isDryRun === true) {
145
+ return 'completed';
146
+ }
147
+ await saveGeneratedFile(targetPath, finalContent, isReplaceFile);
148
+ return 'completed';
149
+ }
150
+ static parseAllPatterns(content) {
151
+ const patterns = [];
152
+ for (const line of content.split('\n')) {
153
+ const trimmed = line.trim();
154
+ if (trimmed !== '' && trimmed.startsWith('#') === false) {
155
+ patterns.push(trimmed);
156
+ }
157
+ }
158
+ return patterns;
159
+ }
160
+ static parseProjectExcludes(content) {
161
+ const lines = content.split('\n');
162
+ let markerIndex = -1;
163
+ for (let i = 0; i < lines.length; i += 1) {
164
+ const line = lines[i];
165
+ if (line !== undefined && line.includes('#### Project Excludes ####') === true) {
166
+ markerIndex = i;
167
+ break;
168
+ }
169
+ }
170
+ if (markerIndex === -1) {
171
+ return [];
172
+ }
173
+ const startIndex = markerIndex + 2;
174
+ const patterns = [];
175
+ for (let i = startIndex; i < lines.length; i += 1) {
176
+ const line = lines[i];
177
+ if (line === undefined) {
178
+ continue;
179
+ }
180
+ const trimmed = line.trim();
181
+ if (trimmed !== ''
182
+ && trimmed.startsWith('#') === false
183
+ && LIB_REGEX_PATTERN_HASH_BORDER_LINE.test(line) === false) {
184
+ patterns.push(trimmed);
185
+ }
186
+ }
187
+ return patterns;
188
+ }
189
+ static addPattern(content, pattern) {
190
+ const endsWithNewline = content.endsWith('\n');
191
+ return (endsWithNewline === true) ? `${content}${pattern}\n` : [
192
+ `${content}\n`,
193
+ `${pattern}\n`,
194
+ ].join('');
195
+ }
196
+ static editPattern(content, oldPattern, newPattern) {
197
+ const lines = content.split('\n');
198
+ let replaced = false;
199
+ return lines.map((line) => {
200
+ if (replaced !== true && line.trim() === oldPattern) {
201
+ replaced = true;
202
+ return newPattern;
203
+ }
204
+ return line;
205
+ }).join('\n');
206
+ }
207
+ static deletePattern(content, pattern) {
208
+ const lines = content.split('\n');
209
+ let markerIndex = -1;
210
+ for (let i = 0; i < lines.length; i += 1) {
211
+ const line = lines[i];
212
+ if (line !== undefined && line.includes('#### Project Excludes ####') === true) {
213
+ markerIndex = i;
214
+ break;
215
+ }
216
+ }
217
+ if (markerIndex === -1) {
218
+ return content;
219
+ }
220
+ const sectionStart = markerIndex + 2;
221
+ return lines.filter((line, i) => {
222
+ if (i < sectionStart) {
223
+ return true;
224
+ }
225
+ return line.trim() !== pattern;
226
+ }).join('\n');
227
+ }
228
+ static async promptManageMenu(options) {
229
+ const templateDirectory = options['templateDirectory'];
230
+ const targetPath = options['targetPath'];
231
+ const isDryRun = options['isDryRun'];
232
+ const isReplaceFile = options['isReplaceFile'];
233
+ const templateFilePath = join(templateDirectory, '.gitignore');
234
+ const templateContent = await fs.readFile(templateFilePath, 'utf-8');
235
+ const reservedPatterns = new Set(CliGenerateMustHavesGitignore.parseAllPatterns(templateContent));
236
+ if (isDryRun !== true) {
237
+ let currentContent = '';
238
+ try {
239
+ currentContent = await fs.readFile(targetPath, 'utf-8');
240
+ }
241
+ catch {
242
+ }
243
+ const currentPatterns = CliGenerateMustHavesGitignore.parseAllPatterns(currentContent);
244
+ const userPatterns = currentPatterns.filter((pattern) => reservedPatterns.has(pattern) !== true);
245
+ let reconstructed = templateContent;
246
+ if (userPatterns.length > 0) {
247
+ reconstructed += `${userPatterns.join('\n')}\n`;
248
+ }
249
+ await saveGeneratedFile(targetPath, reconstructed, isReplaceFile);
250
+ }
251
+ while (true) {
252
+ let content = '';
253
+ try {
254
+ content = await fs.readFile(targetPath, 'utf-8');
255
+ }
256
+ catch {
257
+ }
258
+ const allPatterns = CliGenerateMustHavesGitignore.parseAllPatterns(content);
259
+ const projectExcludes = CliGenerateMustHavesGitignore.parseProjectExcludes(content);
260
+ const choices = [{
261
+ title: 'Add a pattern',
262
+ description: 'Add a new ignore pattern to Project Excludes',
263
+ value: 'add',
264
+ }];
265
+ if (projectExcludes.length > 0) {
266
+ choices.push({
267
+ title: 'Edit a pattern',
268
+ description: 'Update an existing pattern in Project Excludes',
269
+ value: 'edit',
270
+ });
271
+ }
272
+ if (projectExcludes.length > 0) {
273
+ choices.push({
274
+ title: 'Delete a pattern',
275
+ description: 'Remove a pattern from Project Excludes',
276
+ value: 'delete',
277
+ });
278
+ }
279
+ choices.push({
280
+ title: 'Save & Exit',
281
+ description: 'Save changes and exit',
282
+ value: 'exit',
283
+ });
284
+ choices.push({
285
+ title: 'Back',
286
+ description: 'Return to the previous menu',
287
+ value: 'back',
288
+ });
289
+ const menuOutput = await CliGenerateMustHavesGitignore.promptWithCancel({
290
+ type: 'select',
291
+ name: 'action',
292
+ message: 'Select an action.',
293
+ choices,
294
+ });
295
+ if (menuOutput['cancelled'] === true) {
296
+ return 'back';
297
+ }
298
+ const action = menuOutput['result'].action;
299
+ if (action === undefined || action === 'back') {
300
+ return 'back';
301
+ }
302
+ if (action === 'exit') {
303
+ return 'exit';
304
+ }
305
+ if (action === 'add') {
306
+ const existingPatterns = new Set(allPatterns);
307
+ const patternOutput = await CliGenerateMustHavesGitignore.promptWithCancel({
308
+ type: 'text',
309
+ name: 'pattern',
310
+ message: 'Pattern to ignore (e.g. logs/):',
311
+ validate: (value) => {
312
+ if (typeof value !== 'string' || value.trim() === '') {
313
+ return 'Enter a pattern.';
314
+ }
315
+ const trimmedValue = value.trim();
316
+ if (trimmedValue.startsWith('#') === true) {
317
+ return 'Comments are not allowed.';
318
+ }
319
+ if (existingPatterns.has(trimmedValue) === true) {
320
+ return `"${trimmedValue}" already exists.`;
321
+ }
322
+ if (reservedPatterns.has(trimmedValue) === true) {
323
+ return `"${trimmedValue}" is a reserved pattern and cannot be added.`;
324
+ }
325
+ return true;
326
+ },
327
+ });
328
+ if (patternOutput['cancelled'] === true) {
329
+ continue;
330
+ }
331
+ const patternName = patternOutput['result'].pattern;
332
+ if (patternName === undefined) {
333
+ continue;
334
+ }
335
+ const trimmedPatternName = patternName.trim();
336
+ const updatedContent = CliGenerateMustHavesGitignore.addPattern(content, trimmedPatternName);
337
+ if (isDryRun !== true) {
338
+ await saveGeneratedFile(targetPath, updatedContent, isReplaceFile);
339
+ }
340
+ Logger.customize({
341
+ name: 'CliGenerateMustHavesGitignore.promptManageMenu',
342
+ purpose: 'add',
343
+ }).info(`Added "${patternName.trim()}" to .gitignore.`);
344
+ continue;
345
+ }
346
+ if (action === 'edit') {
347
+ const editChoices = projectExcludes.map((pattern) => ({
348
+ title: pattern,
349
+ value: pattern,
350
+ }));
351
+ const selectOutput = await CliGenerateMustHavesGitignore.promptWithCancel({
352
+ type: 'select',
353
+ name: 'pattern',
354
+ message: 'Select a pattern to edit.',
355
+ choices: editChoices,
356
+ });
357
+ if (selectOutput['cancelled'] === true) {
358
+ continue;
359
+ }
360
+ const selectedPattern = selectOutput['result'].pattern;
361
+ if (selectedPattern === undefined) {
362
+ continue;
363
+ }
364
+ const newPatternOutput = await CliGenerateMustHavesGitignore.promptWithCancel({
365
+ type: 'text',
366
+ name: 'newPattern',
367
+ message: `New pattern (current: "${selectedPattern}"):`,
368
+ initial: selectedPattern,
369
+ validate: (value) => {
370
+ if (typeof value !== 'string' || value.trim() === '') {
371
+ return 'Enter a pattern.';
372
+ }
373
+ if (value.trim().startsWith('#') === true) {
374
+ return 'Comments are not allowed.';
375
+ }
376
+ return true;
377
+ },
378
+ });
379
+ if (newPatternOutput['cancelled'] === true) {
380
+ continue;
381
+ }
382
+ const newPattern = newPatternOutput['result'].newPattern;
383
+ if (newPattern === undefined) {
384
+ continue;
385
+ }
386
+ const trimmedNewPattern = newPattern.trim();
387
+ const updatedContent = CliGenerateMustHavesGitignore.editPattern(content, selectedPattern, trimmedNewPattern);
388
+ if (isDryRun !== true) {
389
+ await saveGeneratedFile(targetPath, updatedContent, isReplaceFile);
390
+ }
391
+ Logger.customize({
392
+ name: 'CliGenerateMustHavesGitignore.promptManageMenu',
393
+ purpose: 'edit',
394
+ }).info(`Updated "${selectedPattern}" to "${newPattern.trim()}" in .gitignore.`);
395
+ continue;
396
+ }
397
+ if (action === 'delete') {
398
+ const deleteChoices = projectExcludes.map((pattern) => ({
399
+ title: pattern,
400
+ value: pattern,
401
+ }));
402
+ const selectOutput = await CliGenerateMustHavesGitignore.promptWithCancel({
403
+ type: 'select',
404
+ name: 'pattern',
405
+ message: 'Select a pattern to delete.',
406
+ choices: deleteChoices,
407
+ });
408
+ if (selectOutput['cancelled'] === true) {
409
+ continue;
410
+ }
411
+ const selectedPattern = selectOutput['result'].pattern;
412
+ if (selectedPattern === undefined) {
413
+ continue;
414
+ }
415
+ const updatedContent = CliGenerateMustHavesGitignore.deletePattern(content, selectedPattern);
416
+ if (isDryRun !== true) {
417
+ await saveGeneratedFile(targetPath, updatedContent, isReplaceFile);
418
+ }
419
+ Logger.customize({
420
+ name: 'CliGenerateMustHavesGitignore.promptManageMenu',
421
+ purpose: 'delete',
422
+ }).info(`Deleted "${selectedPattern}" from .gitignore.`);
423
+ continue;
424
+ }
425
+ }
426
+ }
427
+ static async promptWithCancel(questions) {
428
+ let cancelled = false;
429
+ const result = await prompts(questions, {
430
+ onCancel: () => false,
431
+ });
432
+ if (Object.keys(result).length === 0) {
433
+ cancelled = true;
434
+ }
435
+ if (cancelled === true) {
436
+ return {
437
+ cancelled: true,
438
+ };
439
+ }
440
+ return {
441
+ cancelled: false,
442
+ result,
443
+ };
444
+ }
445
+ }
446
+ //# sourceMappingURL=gitignore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gitignore.js","sourceRoot":"","sources":["../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CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACrC,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC;QAED,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YACvB,OAAO;gBACL,SAAS,EAAE,IAAI;aAChB,CAAC;QACJ,CAAC;QAED,OAAO;YACL,SAAS,EAAE,KAAK;YAChB,MAAM;SACP,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,5 @@
1
+ import type { CliGenerateMustHavesLicenseRunOptions, CliGenerateMustHavesLicenseRunReturns } from '../../../types/cli/generate/must-haves/license.d.ts';
2
+ export declare class CliGenerateMustHavesLicense {
3
+ static run(options: CliGenerateMustHavesLicenseRunOptions): CliGenerateMustHavesLicenseRunReturns;
4
+ }
5
+ //# sourceMappingURL=license.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"license.d.ts","sourceRoot":"","sources":["../../../../../src/cli/generate/must-haves/license.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAaV,qCAAqC,EAGrC,qCAAqC,EAKtC,MAAM,qDAAqD,CAAC;AAU7D,qBAAa,2BAA2B;WAalB,GAAG,CAAC,OAAO,EAAE,qCAAqC,GAAG,qCAAqC;CA4I/G"}
@@ -0,0 +1,131 @@
1
+ import { promises as fs } from 'fs';
2
+ import { join } from 'path';
3
+ import prompts from 'prompts';
4
+ import { LibNovaConfig } from '../../../lib/nova-config.js';
5
+ import { LIB_REGEX_PLACEHOLDER_ENTITY_NAME, LIB_REGEX_PLACEHOLDER_YEAR_RANGE, } from '../../../lib/regex.js';
6
+ import { isProjectRoot, resolveTemplatePath, saveGeneratedFile } from '../../../lib/utility.js';
7
+ import { Logger } from '../../../toolkit/index.js';
8
+ export class CliGenerateMustHavesLicense {
9
+ static async run(options) {
10
+ const currentDirectory = process.cwd();
11
+ const isAtProjectRoot = await isProjectRoot(currentDirectory);
12
+ if (isAtProjectRoot !== true) {
13
+ process.exitCode = 1;
14
+ return;
15
+ }
16
+ const isDryRun = options['dryRun'] === true;
17
+ const isReplaceFile = options['replaceFile'] === true;
18
+ if (isDryRun === true) {
19
+ Logger.customize({
20
+ name: 'CliGenerateMustHavesLicense.run',
21
+ purpose: 'options',
22
+ }).warn('Dry run enabled. File changes will not be made in this session.');
23
+ }
24
+ if (isReplaceFile === true) {
25
+ const replaceFileNotice = (isDryRun === true) ? 'This option has no effect during a dry run session.' : 'Backup file will not be created.';
26
+ Logger.customize({
27
+ name: 'CliGenerateMustHavesLicense.run',
28
+ purpose: 'options',
29
+ }).warn(`Replace file enabled. ${replaceFileNotice}`);
30
+ }
31
+ const workingFile = await new LibNovaConfig().load();
32
+ const project = workingFile['project'];
33
+ const entityName = (project !== undefined) ? (project['legalName'] ?? '') : '';
34
+ const currentYear = new Date().getFullYear();
35
+ const startingYear = (project !== undefined) ? (project['startingYear'] ?? currentYear) : currentYear;
36
+ const yearRange = (startingYear === currentYear) ? String(currentYear) : `${startingYear}-${currentYear}`;
37
+ let licenseId = (project !== undefined) ? project['license'] : undefined;
38
+ if (licenseId !== undefined) {
39
+ Logger.customize({
40
+ name: 'CliGenerateMustHavesLicense.run',
41
+ purpose: 'license',
42
+ }).info(`Using license from nova.config.json: ${licenseId}`);
43
+ }
44
+ else {
45
+ Logger.customize({
46
+ name: 'CliGenerateMustHavesLicense.run',
47
+ purpose: 'license',
48
+ }).warn('No license specified in nova.config.json. You must select a license.');
49
+ const licenseChoices = [
50
+ {
51
+ title: 'MIT License',
52
+ value: 'MIT',
53
+ },
54
+ {
55
+ title: 'Apache License 2.0',
56
+ value: 'Apache-2.0',
57
+ },
58
+ {
59
+ title: 'GNU General Public License v3.0',
60
+ value: 'GPL-3.0',
61
+ },
62
+ {
63
+ title: 'GNU General Public License v2.0',
64
+ value: 'GPL-2.0',
65
+ },
66
+ {
67
+ title: 'GNU Affero General Public License v3.0',
68
+ value: 'AGPL-3.0',
69
+ },
70
+ {
71
+ title: 'GNU Lesser General Public License v2.1',
72
+ value: 'LGPL-2.1',
73
+ },
74
+ {
75
+ title: 'BSD 2-Clause "Simplified" License',
76
+ value: 'BSD-2-Clause',
77
+ },
78
+ {
79
+ title: 'BSD 3-Clause "New" or "Revised" License',
80
+ value: 'BSD-3-Clause',
81
+ },
82
+ {
83
+ title: 'Boost Software License 1.0',
84
+ value: 'BSL-1.0',
85
+ },
86
+ {
87
+ title: 'Creative Commons Zero v1.0 Universal',
88
+ value: 'CC0-1.0',
89
+ },
90
+ {
91
+ title: 'Eclipse Public License 2.0',
92
+ value: 'EPL-2.0',
93
+ },
94
+ {
95
+ title: 'Mozilla Public License 2.0',
96
+ value: 'MPL-2.0',
97
+ },
98
+ {
99
+ title: 'Proprietary (All Rights Reserved)',
100
+ value: 'Proprietary',
101
+ },
102
+ {
103
+ title: 'The Unlicense',
104
+ value: 'Unlicense',
105
+ },
106
+ ];
107
+ const licenseOutput = await prompts({
108
+ type: 'select',
109
+ name: 'licenseId',
110
+ message: 'Select a license',
111
+ choices: licenseChoices,
112
+ initial: 0,
113
+ });
114
+ const selectedLicense = licenseOutput['licenseId'];
115
+ if (selectedLicense === undefined) {
116
+ return;
117
+ }
118
+ licenseId = selectedLicense;
119
+ }
120
+ const content = (await fs.readFile(join(resolveTemplatePath(import.meta.url, 'generators/must-haves/license'), licenseId), 'utf-8'))
121
+ .replace(new RegExp(LIB_REGEX_PLACEHOLDER_ENTITY_NAME.source, 'g'), entityName)
122
+ .replace(new RegExp(LIB_REGEX_PLACEHOLDER_YEAR_RANGE.source, 'g'), yearRange);
123
+ const targetPath = join(currentDirectory, 'LICENSE');
124
+ if (isDryRun === true) {
125
+ return;
126
+ }
127
+ await saveGeneratedFile(targetPath, content, isReplaceFile);
128
+ return;
129
+ }
130
+ }
131
+ //# sourceMappingURL=license.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"license.js","sourceRoot":"","sources":["../../../../../src/cli/generate/must-haves/license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,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ACT,CAAC;YAED,SAAS,GAAG,eAAe,CAAC;QAC9B,CAAC;QAED,MAAM,OAAO,GAA0C,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,+BAA+B,CAAC,EAAE,SAAS,CAAC,EAAE,OAAO,CAAC,CAAC;aACxK,OAAO,CAAC,IAAI,MAAM,CAAC,iCAAiC,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,UAAU,CAAC;aAC9E,OAAO,CAAC,IAAI,MAAM,CAAC,gCAAgC,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,CAAC,CAAC;QAEhF,MAAM,UAAU,GAA6C,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;QAE/F,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;YACtB,OAAO;QACT,CAAC;QAED,MAAM,iBAAiB,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QAE5D,OAAO;IACT,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import type { CliGenerateMustHavesReadMeRunOptions, CliGenerateMustHavesReadMeRunReturns } from '../../../types/cli/generate/must-haves/read-me.d.ts';
2
+ export declare class CliGenerateMustHavesReadMe {
3
+ static run(options: CliGenerateMustHavesReadMeRunOptions): CliGenerateMustHavesReadMeRunReturns;
4
+ private static buildBadges;
5
+ private static buildCreditsSection;
6
+ private static detectFundPlatform;
7
+ }
8
+ //# sourceMappingURL=read-me.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-me.d.ts","sourceRoot":"","sources":["../../../../../src/cli/generate/must-haves/read-me.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EA4CV,oCAAoC,EAWpC,oCAAoC,EAQrC,MAAM,qDAAqD,CAAC;AAW7D,qBAAa,0BAA0B;WAajB,GAAG,CAAC,OAAO,EAAE,oCAAoC,GAAG,oCAAoC;IA2H5G,OAAO,CAAC,MAAM,CAAC,WAAW;IA2E1B,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAgHlC,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAuFlC"}