@cbnventures/nova 0.14.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -0
- package/bin/nova.mjs +16 -0
- package/build/package.json +33 -23
- package/build/src/api/node-releases.d.ts +4 -4
- package/build/src/api/node-releases.d.ts.map +1 -1
- package/build/src/api/node-releases.js +31 -26
- package/build/src/api/node-releases.js.map +1 -1
- package/build/src/api/spdx-licenses.d.ts +4 -4
- package/build/src/api/spdx-licenses.d.ts.map +1 -1
- package/build/src/api/spdx-licenses.js +21 -18
- package/build/src/api/spdx-licenses.js.map +1 -1
- package/build/src/cli/generate/github/funding.d.ts +5 -0
- package/build/src/cli/generate/github/funding.d.ts.map +1 -0
- package/build/src/cli/generate/github/funding.js +68 -0
- package/build/src/cli/generate/github/funding.js.map +1 -0
- package/build/src/cli/generate/github/issue-template.d.ts +5 -0
- package/build/src/cli/generate/github/issue-template.d.ts.map +1 -0
- package/build/src/cli/generate/github/issue-template.js +267 -0
- package/build/src/cli/generate/github/issue-template.js.map +1 -0
- package/build/src/cli/generate/github/workflows.d.ts +10 -0
- package/build/src/cli/generate/github/workflows.d.ts.map +1 -0
- package/build/src/cli/generate/github/workflows.js +464 -0
- package/build/src/cli/generate/github/workflows.js.map +1 -0
- package/build/src/cli/generate/must-haves/agent-conventions.d.ts +5 -0
- package/build/src/cli/generate/must-haves/agent-conventions.d.ts.map +1 -0
- package/build/src/cli/generate/must-haves/agent-conventions.js +114 -0
- package/build/src/cli/generate/must-haves/agent-conventions.js.map +1 -0
- package/build/src/cli/generate/must-haves/dotenv.d.ts +12 -0
- package/build/src/cli/generate/must-haves/dotenv.d.ts.map +1 -0
- package/build/src/cli/generate/must-haves/dotenv.js +490 -0
- package/build/src/cli/generate/must-haves/dotenv.js.map +1 -0
- package/build/src/cli/generate/must-haves/editorconfig.d.ts +5 -0
- package/build/src/cli/generate/must-haves/editorconfig.d.ts.map +1 -0
- package/build/src/cli/generate/must-haves/editorconfig.js +37 -0
- package/build/src/cli/generate/must-haves/editorconfig.js.map +1 -0
- package/build/src/cli/generate/must-haves/gitignore.d.ts +13 -0
- package/build/src/cli/generate/must-haves/gitignore.d.ts.map +1 -0
- package/build/src/cli/generate/must-haves/gitignore.js +439 -0
- package/build/src/cli/generate/must-haves/gitignore.js.map +1 -0
- package/build/src/cli/generate/must-haves/license.d.ts +5 -0
- package/build/src/cli/generate/must-haves/license.d.ts.map +1 -0
- package/build/src/cli/generate/must-haves/license.js +131 -0
- package/build/src/cli/generate/must-haves/license.js.map +1 -0
- package/build/src/cli/generate/must-haves/read-me.d.ts +8 -0
- package/build/src/cli/generate/must-haves/read-me.d.ts.map +1 -0
- package/build/src/cli/generate/must-haves/read-me.js +255 -0
- package/build/src/cli/generate/must-haves/read-me.js.map +1 -0
- package/build/src/cli/index.js +298 -100
- package/build/src/cli/index.js.map +1 -1
- package/build/src/cli/recipe/index.d.ts +2 -2
- package/build/src/cli/recipe/index.d.ts.map +1 -1
- package/build/src/cli/recipe/index.js +19 -19
- package/build/src/cli/recipe/index.js.map +1 -1
- package/build/src/cli/recipe/package-json/cleanup.d.ts +3 -3
- package/build/src/cli/recipe/package-json/cleanup.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/cleanup.js +59 -50
- package/build/src/cli/recipe/package-json/cleanup.js.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-artifacts.d.ts +3 -3
- package/build/src/cli/recipe/package-json/normalize-artifacts.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-artifacts.js +120 -112
- package/build/src/cli/recipe/package-json/normalize-artifacts.js.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-bundler.d.ts +3 -3
- package/build/src/cli/recipe/package-json/normalize-bundler.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-bundler.js +36 -35
- package/build/src/cli/recipe/package-json/normalize-bundler.js.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-dependencies.d.ts +3 -3
- package/build/src/cli/recipe/package-json/normalize-dependencies.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-dependencies.js +70 -64
- package/build/src/cli/recipe/package-json/normalize-dependencies.js.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-modules.d.ts +3 -3
- package/build/src/cli/recipe/package-json/normalize-modules.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-modules.js +156 -142
- package/build/src/cli/recipe/package-json/normalize-modules.js.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-tooling.d.ts +3 -3
- package/build/src/cli/recipe/package-json/normalize-tooling.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/normalize-tooling.js +52 -57
- package/build/src/cli/recipe/package-json/normalize-tooling.js.map +1 -1
- package/build/src/cli/recipe/package-json/sync-environment.d.ts +3 -3
- package/build/src/cli/recipe/package-json/sync-environment.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/sync-environment.js +94 -97
- package/build/src/cli/recipe/package-json/sync-environment.js.map +1 -1
- package/build/src/cli/recipe/package-json/sync-identity.d.ts +3 -3
- package/build/src/cli/recipe/package-json/sync-identity.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/sync-identity.js +67 -62
- package/build/src/cli/recipe/package-json/sync-identity.js.map +1 -1
- package/build/src/cli/recipe/package-json/sync-ownership.d.ts +3 -3
- package/build/src/cli/recipe/package-json/sync-ownership.d.ts.map +1 -1
- package/build/src/cli/recipe/package-json/sync-ownership.js +106 -106
- package/build/src/cli/recipe/package-json/sync-ownership.js.map +1 -1
- package/build/src/cli/scaffold/app/expressjs.d.ts +5 -0
- package/build/src/cli/scaffold/app/expressjs.d.ts.map +1 -0
- package/build/src/cli/scaffold/app/expressjs.js +8 -0
- package/build/src/cli/scaffold/app/expressjs.js.map +1 -0
- package/build/src/cli/scaffold/app/nextjs.d.ts +5 -0
- package/build/src/cli/scaffold/app/nextjs.d.ts.map +1 -0
- package/build/src/cli/scaffold/app/nextjs.js +8 -0
- package/build/src/cli/scaffold/app/nextjs.js.map +1 -0
- package/build/src/cli/scaffold/app/vite.d.ts +5 -0
- package/build/src/cli/scaffold/app/vite.d.ts.map +1 -0
- package/build/src/cli/scaffold/app/vite.js +8 -0
- package/build/src/cli/scaffold/app/vite.js.map +1 -0
- package/build/src/cli/scaffold/app/workers.d.ts +5 -0
- package/build/src/cli/scaffold/app/workers.d.ts.map +1 -0
- package/build/src/cli/scaffold/app/workers.js +8 -0
- package/build/src/cli/scaffold/app/workers.js.map +1 -0
- package/build/src/cli/scaffold/docs/docusaurus.d.ts +5 -0
- package/build/src/cli/scaffold/docs/docusaurus.d.ts.map +1 -0
- package/build/src/cli/scaffold/docs/docusaurus.js +8 -0
- package/build/src/cli/scaffold/docs/docusaurus.js.map +1 -0
- package/build/src/cli/scaffold/starter/base.d.ts +5 -0
- package/build/src/cli/scaffold/starter/base.d.ts.map +1 -0
- package/build/src/cli/scaffold/starter/base.js +132 -0
- package/build/src/cli/scaffold/starter/base.js.map +1 -0
- package/build/src/cli/utility/changelog.d.ts +3 -3
- package/build/src/cli/utility/changelog.d.ts.map +1 -1
- package/build/src/cli/utility/changelog.js +206 -172
- package/build/src/cli/utility/changelog.js.map +1 -1
- package/build/src/cli/utility/initialize.d.ts +6 -3
- package/build/src/cli/utility/initialize.d.ts.map +1 -1
- package/build/src/cli/utility/initialize.js +990 -265
- package/build/src/cli/utility/initialize.js.map +1 -1
- package/build/src/cli/utility/run-recipes.d.ts +3 -3
- package/build/src/cli/utility/run-recipes.d.ts.map +1 -1
- package/build/src/cli/utility/run-recipes.js +15 -14
- package/build/src/cli/utility/run-recipes.js.map +1 -1
- package/build/src/cli/utility/run-scripts.d.ts +4 -4
- package/build/src/cli/utility/run-scripts.d.ts.map +1 -1
- package/build/src/cli/utility/run-scripts.js +167 -70
- package/build/src/cli/utility/run-scripts.js.map +1 -1
- package/build/src/cli/utility/transpile.d.ts +3 -3
- package/build/src/cli/utility/transpile.d.ts.map +1 -1
- package/build/src/cli/utility/transpile.js +24 -19
- package/build/src/cli/utility/transpile.js.map +1 -1
- package/build/src/cli/utility/type-check.d.ts +3 -3
- package/build/src/cli/utility/type-check.d.ts.map +1 -1
- package/build/src/cli/utility/type-check.js +24 -19
- package/build/src/cli/utility/type-check.js.map +1 -1
- package/build/src/cli/utility/version.d.ts +3 -3
- package/build/src/cli/utility/version.d.ts.map +1 -1
- package/build/src/cli/utility/version.js +126 -68
- package/build/src/cli/utility/version.js.map +1 -1
- package/build/src/lib/item.d.ts +31 -29
- package/build/src/lib/item.d.ts.map +1 -1
- package/build/src/lib/item.js +106 -43
- package/build/src/lib/item.js.map +1 -1
- package/build/src/lib/nova-config.d.ts +6 -5
- package/build/src/lib/nova-config.d.ts.map +1 -1
- package/build/src/lib/nova-config.js +217 -59
- package/build/src/lib/nova-config.js.map +1 -1
- package/build/src/lib/regex.d.ts +92 -26
- package/build/src/lib/regex.d.ts.map +1 -1
- package/build/src/lib/regex.js +92 -26
- package/build/src/lib/regex.js.map +1 -1
- package/build/src/lib/scaffold.d.ts +10 -0
- package/build/src/lib/scaffold.d.ts.map +1 -0
- package/build/src/lib/scaffold.js +542 -0
- package/build/src/lib/scaffold.js.map +1 -0
- package/build/src/lib/schema.d.ts +2 -9
- package/build/src/lib/schema.d.ts.map +1 -1
- package/build/src/lib/schema.js +6 -8
- package/build/src/lib/schema.js.map +1 -1
- package/build/src/lib/utility.d.ts +21 -18
- package/build/src/lib/utility.d.ts.map +1 -1
- package/build/src/lib/utility.js +173 -79
- package/build/src/lib/utility.js.map +1 -1
- package/build/src/lib/workflow-templates.d.ts +3 -0
- package/build/src/lib/workflow-templates.d.ts.map +1 -0
- package/build/src/lib/workflow-templates.js +187 -0
- package/build/src/lib/workflow-templates.js.map +1 -0
- package/build/src/presets/eslint/dx-code-style.d.ts +4 -0
- package/build/src/presets/eslint/dx-code-style.d.ts.map +1 -0
- package/build/src/presets/eslint/dx-code-style.js +523 -0
- package/build/src/presets/eslint/dx-code-style.js.map +1 -0
- package/build/src/presets/eslint/dx-ignore.d.ts +4 -0
- package/build/src/presets/eslint/dx-ignore.d.ts.map +1 -0
- package/build/src/presets/eslint/{dx-ignore.mjs → dx-ignore.js} +1 -1
- package/build/src/presets/eslint/dx-ignore.js.map +1 -0
- package/build/src/presets/eslint/fw-docusaurus.d.ts +4 -0
- package/build/src/presets/eslint/fw-docusaurus.d.ts.map +1 -0
- package/build/src/presets/eslint/fw-docusaurus.js +6 -0
- package/build/src/presets/eslint/fw-docusaurus.js.map +1 -0
- package/build/src/presets/eslint/fw-expressjs.d.ts +4 -0
- package/build/src/presets/eslint/fw-expressjs.d.ts.map +1 -0
- package/build/src/presets/eslint/{fw-expressjs.mjs → fw-expressjs.js} +3 -5
- package/build/src/presets/eslint/fw-expressjs.js.map +1 -0
- package/build/src/presets/eslint/fw-nextjs.d.ts +4 -0
- package/build/src/presets/eslint/fw-nextjs.d.ts.map +1 -0
- package/build/src/presets/eslint/{fw-nextjs.mjs → fw-nextjs.js} +3 -5
- package/build/src/presets/eslint/fw-nextjs.js.map +1 -0
- package/build/src/presets/eslint/index.d.ts +16 -0
- package/build/src/presets/eslint/index.d.ts.map +1 -0
- package/build/src/presets/eslint/index.js +16 -0
- package/build/src/presets/eslint/index.js.map +1 -0
- package/build/src/presets/eslint/lang-javascript.d.ts +4 -0
- package/build/src/presets/eslint/lang-javascript.d.ts.map +1 -0
- package/build/src/presets/eslint/lang-javascript.js +34 -0
- package/build/src/presets/eslint/lang-javascript.js.map +1 -0
- package/build/src/presets/eslint/lang-mdx.d.ts +4 -0
- package/build/src/presets/eslint/lang-mdx.d.ts.map +1 -0
- package/build/src/presets/eslint/{lang-mdx.mjs → lang-mdx.js} +4 -8
- package/build/src/presets/eslint/lang-mdx.js.map +1 -0
- package/build/src/presets/eslint/lang-typescript.d.ts +4 -0
- package/build/src/presets/eslint/lang-typescript.d.ts.map +1 -0
- package/build/src/presets/eslint/lang-typescript.js +148 -0
- package/build/src/presets/eslint/lang-typescript.js.map +1 -0
- package/build/src/presets/eslint/runtime-browser.d.ts +4 -0
- package/build/src/presets/eslint/runtime-browser.d.ts.map +1 -0
- package/build/src/presets/eslint/{env-web-worker.mjs → runtime-browser.js} +1 -1
- package/build/src/presets/eslint/runtime-browser.js.map +1 -0
- package/build/src/presets/eslint/runtime-cloudflare-workers.d.ts +4 -0
- package/build/src/presets/eslint/runtime-cloudflare-workers.d.ts.map +1 -0
- package/build/src/presets/eslint/runtime-cloudflare-workers.js +6 -0
- package/build/src/presets/eslint/runtime-cloudflare-workers.js.map +1 -0
- package/build/src/presets/eslint/runtime-edge.d.ts +4 -0
- package/build/src/presets/eslint/runtime-edge.d.ts.map +1 -0
- package/build/src/presets/eslint/{env-edge.mjs → runtime-edge.js} +1 -1
- package/build/src/presets/eslint/runtime-edge.js.map +1 -0
- package/build/src/presets/eslint/runtime-node.d.ts +4 -0
- package/build/src/presets/eslint/runtime-node.d.ts.map +1 -0
- package/build/src/presets/eslint/{env-node.mjs → runtime-node.js} +4 -4
- package/build/src/presets/eslint/runtime-node.js.map +1 -0
- package/build/src/presets/eslint/runtime-service-worker.d.ts +4 -0
- package/build/src/presets/eslint/runtime-service-worker.d.ts.map +1 -0
- package/build/src/presets/eslint/runtime-service-worker.js +3 -0
- package/build/src/presets/eslint/runtime-service-worker.js.map +1 -0
- package/build/src/presets/eslint/runtime-web-worker.d.ts +4 -0
- package/build/src/presets/eslint/runtime-web-worker.d.ts.map +1 -0
- package/build/src/presets/eslint/runtime-web-worker.js +3 -0
- package/build/src/presets/eslint/runtime-web-worker.js.map +1 -0
- package/build/src/presets/eslint/tool-vite.d.ts +4 -0
- package/build/src/presets/eslint/tool-vite.d.ts.map +1 -0
- package/build/src/presets/eslint/{tool-vite.mjs → tool-vite.js} +3 -5
- package/build/src/presets/eslint/tool-vite.js.map +1 -0
- package/build/src/presets/tsconfig/dx-strict.json +1 -0
- package/build/src/presets/tsconfig/runtime-cloudflare-workers.json +12 -0
- package/build/src/presets/tsconfig/{platform-cloudflare-workers.json → runtime-web-worker.json} +2 -2
- package/build/src/rules/eslint/conventions/no-default-export-declaration.d.ts +11 -0
- package/build/src/rules/eslint/conventions/no-default-export-declaration.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/no-default-export-declaration.js +73 -0
- package/build/src/rules/eslint/conventions/no-default-export-declaration.js.map +1 -0
- package/build/src/rules/eslint/conventions/no-implicit-boolean.d.ts +15 -0
- package/build/src/rules/eslint/conventions/no-implicit-boolean.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/no-implicit-boolean.js +140 -0
- package/build/src/rules/eslint/conventions/no-implicit-boolean.js.map +1 -0
- package/build/src/rules/eslint/conventions/require-explicit-return.d.ts +15 -0
- package/build/src/rules/eslint/conventions/require-explicit-return.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/require-explicit-return.js +184 -0
- package/build/src/rules/eslint/conventions/require-explicit-return.js.map +1 -0
- package/build/src/rules/eslint/conventions/require-hash-private.d.ts +12 -0
- package/build/src/rules/eslint/conventions/require-hash-private.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/require-hash-private.js +67 -0
- package/build/src/rules/eslint/conventions/require-hash-private.js.map +1 -0
- package/build/src/rules/eslint/conventions/require-kebab-case-filename.d.ts +14 -0
- package/build/src/rules/eslint/conventions/require-kebab-case-filename.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/require-kebab-case-filename.js +95 -0
- package/build/src/rules/eslint/conventions/require-kebab-case-filename.js.map +1 -0
- package/build/src/rules/eslint/conventions/require-naming-convention.d.ts +34 -0
- package/build/src/rules/eslint/conventions/require-naming-convention.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/require-naming-convention.js +382 -0
- package/build/src/rules/eslint/conventions/require-naming-convention.js.map +1 -0
- package/build/src/rules/eslint/conventions/require-undefined-init.d.ts +11 -0
- package/build/src/rules/eslint/conventions/require-undefined-init.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/require-undefined-init.js +71 -0
- package/build/src/rules/eslint/conventions/require-undefined-init.js.map +1 -0
- package/build/src/rules/eslint/conventions/switch-case-blocks.d.ts +13 -0
- package/build/src/rules/eslint/conventions/switch-case-blocks.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/switch-case-blocks.js +82 -0
- package/build/src/rules/eslint/conventions/switch-case-blocks.js.map +1 -0
- package/build/src/rules/eslint/formatting/no-complex-arrow-concise.d.ts +15 -0
- package/build/src/rules/eslint/formatting/no-complex-arrow-concise.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/no-complex-arrow-concise.js +166 -0
- package/build/src/rules/eslint/formatting/no-complex-arrow-concise.js.map +1 -0
- package/build/src/rules/eslint/formatting/no-multiline-strings.d.ts +15 -0
- package/build/src/rules/eslint/formatting/no-multiline-strings.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/no-multiline-strings.js +162 -0
- package/build/src/rules/eslint/formatting/no-multiline-strings.js.map +1 -0
- package/build/src/rules/eslint/formatting/no-raw-text-in-code.d.ts +9 -4
- package/build/src/rules/eslint/formatting/no-raw-text-in-code.d.ts.map +1 -1
- package/build/src/rules/eslint/formatting/no-raw-text-in-code.js +53 -30
- package/build/src/rules/eslint/formatting/no-raw-text-in-code.js.map +1 -1
- package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.d.ts +11 -0
- package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.js +55 -0
- package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.js.map +1 -0
- package/build/src/rules/eslint/formatting/require-import-order.d.ts +14 -0
- package/build/src/rules/eslint/formatting/require-import-order.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/require-import-order.js +187 -0
- package/build/src/rules/eslint/formatting/require-import-order.js.map +1 -0
- package/build/src/rules/eslint/formatting/require-multiline-condition-groups.d.ts +13 -0
- package/build/src/rules/eslint/formatting/require-multiline-condition-groups.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/require-multiline-condition-groups.js +138 -0
- package/build/src/rules/eslint/formatting/require-multiline-condition-groups.js.map +1 -0
- package/build/src/rules/eslint/formatting/require-multiline-conditions.d.ts +13 -0
- package/build/src/rules/eslint/formatting/require-multiline-conditions.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/require-multiline-conditions.js +94 -0
- package/build/src/rules/eslint/formatting/require-multiline-conditions.js.map +1 -0
- package/build/src/rules/eslint/formatting/require-padding-lines.d.ts +23 -11
- package/build/src/rules/eslint/formatting/require-padding-lines.d.ts.map +1 -1
- package/build/src/rules/eslint/formatting/require-padding-lines.js +291 -155
- package/build/src/rules/eslint/formatting/require-padding-lines.js.map +1 -1
- package/build/src/rules/eslint/formatting/require-ternary-parens.d.ts +11 -0
- package/build/src/rules/eslint/formatting/require-ternary-parens.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/require-ternary-parens.js +76 -0
- package/build/src/rules/eslint/formatting/require-ternary-parens.js.map +1 -0
- package/build/src/rules/eslint/index.d.ts +44 -14
- package/build/src/rules/eslint/index.d.ts.map +1 -1
- package/build/src/rules/eslint/index.js +44 -14
- package/build/src/rules/eslint/index.js.map +1 -1
- package/build/src/rules/eslint/jsdoc/require-jsdoc-body.d.ts +15 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-body.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-body.js +176 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-body.js.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts +26 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.js +495 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.js.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.d.ts +12 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.js +144 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.js.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts +12 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.js +97 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.js.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-private.d.ts +11 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-private.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-private.js +90 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-private.js.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-since.d.ts +11 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-since.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-since.js +88 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-since.js.map +1 -0
- package/build/src/rules/eslint/nova/no-logger-dev.d.ts +11 -4
- package/build/src/rules/eslint/nova/no-logger-dev.d.ts.map +1 -1
- package/build/src/rules/eslint/nova/no-logger-dev.js +104 -82
- package/build/src/rules/eslint/nova/no-logger-dev.js.map +1 -1
- package/build/src/rules/eslint/patterns/no-assign-then-return.d.ts +9 -4
- package/build/src/rules/eslint/patterns/no-assign-then-return.d.ts.map +1 -1
- package/build/src/rules/eslint/patterns/no-assign-then-return.js +92 -51
- package/build/src/rules/eslint/patterns/no-assign-then-return.js.map +1 -1
- package/build/src/rules/eslint/patterns/no-await-in-loop.d.ts +17 -0
- package/build/src/rules/eslint/patterns/no-await-in-loop.d.ts.map +1 -0
- package/build/src/rules/eslint/patterns/no-await-in-loop.js +103 -0
- package/build/src/rules/eslint/patterns/no-await-in-loop.js.map +1 -0
- package/build/src/rules/eslint/patterns/no-boolean-var-for-if.d.ts +11 -0
- package/build/src/rules/eslint/patterns/no-boolean-var-for-if.d.ts.map +1 -0
- package/build/src/rules/eslint/patterns/no-boolean-var-for-if.js +100 -0
- package/build/src/rules/eslint/patterns/no-boolean-var-for-if.js.map +1 -0
- package/build/src/rules/eslint/patterns/no-bracket-assignment.d.ts +9 -4
- package/build/src/rules/eslint/patterns/no-bracket-assignment.d.ts.map +1 -1
- package/build/src/rules/eslint/patterns/no-bracket-assignment.js +60 -22
- package/build/src/rules/eslint/patterns/no-bracket-assignment.js.map +1 -1
- package/build/src/rules/eslint/patterns/no-bracket-method-call.d.ts +12 -0
- package/build/src/rules/eslint/patterns/no-bracket-method-call.d.ts.map +1 -0
- package/build/src/rules/eslint/patterns/no-bracket-method-call.js +86 -0
- package/build/src/rules/eslint/patterns/no-bracket-method-call.js.map +1 -0
- package/build/src/rules/eslint/patterns/no-template-curly-in-string.d.ts +11 -0
- package/build/src/rules/eslint/patterns/no-template-curly-in-string.d.ts.map +1 -0
- package/build/src/rules/eslint/patterns/no-template-curly-in-string.js +77 -0
- package/build/src/rules/eslint/patterns/no-template-curly-in-string.js.map +1 -0
- package/build/src/rules/eslint/patterns/no-use-before-define.d.ts +15 -0
- package/build/src/rules/eslint/patterns/no-use-before-define.d.ts.map +1 -0
- package/build/src/rules/eslint/patterns/no-use-before-define.js +148 -0
- package/build/src/rules/eslint/patterns/no-use-before-define.js.map +1 -0
- package/build/src/rules/eslint/regex/no-regex-literal-flags.d.ts +9 -4
- package/build/src/rules/eslint/regex/no-regex-literal-flags.d.ts.map +1 -1
- package/build/src/rules/eslint/regex/no-regex-literal-flags.js +51 -26
- package/build/src/rules/eslint/regex/no-regex-literal-flags.js.map +1 -1
- package/build/src/rules/eslint/regex/no-regex-literals.d.ts +10 -7
- package/build/src/rules/eslint/regex/no-regex-literals.d.ts.map +1 -1
- package/build/src/rules/eslint/regex/no-regex-literals.js +62 -45
- package/build/src/rules/eslint/regex/no-regex-literals.js.map +1 -1
- package/build/src/rules/eslint/safety/no-script-url.d.ts +12 -0
- package/build/src/rules/eslint/safety/no-script-url.d.ts.map +1 -0
- package/build/src/rules/eslint/safety/no-script-url.js +71 -0
- package/build/src/rules/eslint/safety/no-script-url.js.map +1 -0
- package/build/src/rules/eslint/syntax/no-destructuring.d.ts +21 -0
- package/build/src/rules/eslint/syntax/no-destructuring.d.ts.map +1 -0
- package/build/src/rules/eslint/syntax/no-destructuring.js +219 -0
- package/build/src/rules/eslint/syntax/no-destructuring.js.map +1 -0
- package/build/src/rules/eslint/syntax/no-numeric-literals.d.ts +14 -0
- package/build/src/rules/eslint/syntax/no-numeric-literals.d.ts.map +1 -0
- package/build/src/rules/eslint/syntax/no-numeric-literals.js +108 -0
- package/build/src/rules/eslint/syntax/no-numeric-literals.js.map +1 -0
- package/build/src/rules/eslint/syntax/no-optional-chaining.d.ts +11 -0
- package/build/src/rules/eslint/syntax/no-optional-chaining.d.ts.map +1 -0
- package/build/src/rules/eslint/syntax/no-optional-chaining.js +51 -0
- package/build/src/rules/eslint/syntax/no-optional-chaining.js.map +1 -0
- package/build/src/rules/eslint/syntax/no-rest-params.d.ts +15 -0
- package/build/src/rules/eslint/syntax/no-rest-params.d.ts.map +1 -0
- package/build/src/rules/eslint/syntax/no-rest-params.js +158 -0
- package/build/src/rules/eslint/syntax/no-rest-params.js.map +1 -0
- package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.d.ts +9 -4
- package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.d.ts.map +1 -1
- package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.js +61 -34
- package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.js.map +1 -1
- package/build/src/rules/eslint/typescript/no-explicit-any.d.ts +11 -0
- package/build/src/rules/eslint/typescript/no-explicit-any.d.ts.map +1 -0
- package/build/src/rules/eslint/typescript/no-explicit-any.js +51 -0
- package/build/src/rules/eslint/typescript/no-explicit-any.js.map +1 -0
- package/build/src/rules/eslint/typescript/no-inline-type-annotation.d.ts +14 -4
- package/build/src/rules/eslint/typescript/no-inline-type-annotation.d.ts.map +1 -1
- package/build/src/rules/eslint/typescript/no-inline-type-annotation.js +180 -30
- package/build/src/rules/eslint/typescript/no-inline-type-annotation.js.map +1 -1
- package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts +10 -7
- package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts.map +1 -1
- package/build/src/rules/eslint/typescript/no-shared-type-import.js +65 -51
- package/build/src/rules/eslint/typescript/no-shared-type-import.js.map +1 -1
- package/build/src/rules/eslint/typescript/require-bracket-property-access.d.ts +12 -0
- package/build/src/rules/eslint/typescript/require-bracket-property-access.d.ts.map +1 -0
- package/build/src/rules/eslint/typescript/require-bracket-property-access.js +115 -0
- package/build/src/rules/eslint/typescript/require-bracket-property-access.js.map +1 -0
- package/build/src/rules/eslint/typescript/require-type-naming.d.ts +12 -0
- package/build/src/rules/eslint/typescript/require-type-naming.d.ts.map +1 -0
- package/build/src/rules/eslint/typescript/require-type-naming.js +98 -0
- package/build/src/rules/eslint/typescript/require-type-naming.js.map +1 -0
- package/build/src/toolkit/bootstrap.d.ts +13 -0
- package/build/src/toolkit/bootstrap.d.ts.map +1 -0
- package/build/src/toolkit/bootstrap.js +175 -0
- package/build/src/toolkit/bootstrap.js.map +1 -0
- package/build/src/toolkit/cli-header.d.ts +5 -4
- package/build/src/toolkit/cli-header.d.ts.map +1 -1
- package/build/src/toolkit/cli-header.js +76 -62
- package/build/src/toolkit/cli-header.js.map +1 -1
- package/build/src/toolkit/index.d.ts +1 -0
- package/build/src/toolkit/index.d.ts.map +1 -1
- package/build/src/toolkit/index.js +1 -0
- package/build/src/toolkit/index.js.map +1 -1
- package/build/src/toolkit/logger.d.ts +9 -8
- package/build/src/toolkit/logger.d.ts.map +1 -1
- package/build/src/toolkit/logger.js +51 -32
- package/build/src/toolkit/logger.js.map +1 -1
- package/build/src/toolkit/markdown-table.d.ts +6 -5
- package/build/src/toolkit/markdown-table.d.ts.map +1 -1
- package/build/src/toolkit/markdown-table.js +36 -20
- package/build/src/toolkit/markdown-table.js.map +1 -1
- package/build/src/types/api/node-releases.d.ts +51 -0
- package/build/src/types/api/spdx-licenses.d.ts +41 -0
- package/build/src/types/cli/generate/github/funding.d.ts +59 -0
- package/build/src/types/cli/generate/github/issue-template.d.ts +142 -0
- package/build/src/types/cli/generate/github/workflows.d.ts +338 -0
- package/build/src/types/cli/generate/must-haves/agent-conventions.d.ts +45 -0
- package/build/src/types/cli/generate/must-haves/dotenv.d.ts +421 -0
- package/build/src/types/cli/generate/must-haves/editorconfig.d.ts +35 -0
- package/build/src/types/cli/generate/must-haves/gitignore.d.ts +346 -0
- package/build/src/types/cli/generate/must-haves/license.d.ts +72 -0
- package/build/src/types/cli/generate/must-haves/read-me.d.ts +176 -0
- package/build/src/types/cli/index.d.ts +182 -0
- package/build/src/types/cli/recipe/index.d.ts +36 -0
- package/build/src/types/cli/recipe/package-json/cleanup.d.ts +125 -0
- package/build/src/types/cli/recipe/package-json/normalize-artifacts.d.ts +104 -0
- package/build/src/types/cli/recipe/package-json/normalize-bundler.d.ts +78 -0
- package/build/src/types/cli/recipe/package-json/normalize-dependencies.d.ts +150 -0
- package/build/src/types/cli/recipe/package-json/normalize-modules.d.ts +76 -0
- package/build/src/types/cli/recipe/package-json/normalize-tooling.d.ts +89 -0
- package/build/src/types/cli/recipe/package-json/sync-environment.d.ts +140 -0
- package/build/src/types/cli/recipe/package-json/sync-identity.d.ts +107 -0
- package/build/src/types/cli/recipe/package-json/sync-ownership.d.ts +152 -0
- package/build/src/types/cli/scaffold/app/expressjs.d.ts +21 -0
- package/build/src/types/cli/scaffold/app/nextjs.d.ts +21 -0
- package/build/src/types/cli/scaffold/app/vite.d.ts +21 -0
- package/build/src/types/cli/scaffold/app/workers.d.ts +21 -0
- package/build/src/types/cli/scaffold/docs/docusaurus.d.ts +21 -0
- package/build/src/types/cli/scaffold/starter/base.d.ts +57 -0
- package/build/src/types/cli/utility/changelog.d.ts +381 -0
- package/build/src/types/cli/utility/initialize.d.ts +1185 -0
- package/build/src/types/cli/utility/run-recipes.d.ts +25 -0
- package/build/src/types/cli/utility/run-scripts.d.ts +133 -0
- package/build/src/types/cli/utility/transpile.d.ts +90 -0
- package/build/src/types/cli/utility/type-check.d.ts +88 -0
- package/build/src/types/cli/utility/version.d.ts +286 -0
- package/build/src/types/fetch-response.d.ts +12 -0
- package/build/src/types/lib/item.d.ts +536 -0
- package/build/src/types/lib/nova-config.d.ts +421 -0
- package/build/src/types/lib/scaffold.d.ts +344 -0
- package/build/src/types/lib/utility.d.ts +486 -0
- package/build/src/types/lib/workflow-templates.d.ts +48 -0
- package/build/src/types/presets/eslint/dx-code-style.d.ts +8 -0
- package/build/src/types/presets/eslint/dx-ignore.d.ts +8 -0
- package/build/src/types/presets/eslint/fw-docusaurus.d.ts +8 -0
- package/build/src/types/presets/eslint/fw-expressjs.d.ts +8 -0
- package/build/src/types/presets/eslint/fw-nextjs.d.ts +8 -0
- package/build/src/types/presets/eslint/lang-javascript.d.ts +8 -0
- package/build/src/types/presets/eslint/lang-mdx.d.ts +8 -0
- package/build/src/types/presets/eslint/lang-typescript.d.ts +8 -0
- package/build/src/types/presets/eslint/runtime-browser.d.ts +8 -0
- package/build/src/types/presets/eslint/runtime-cloudflare-workers.d.ts +8 -0
- package/build/src/types/presets/eslint/runtime-edge.d.ts +8 -0
- package/build/src/types/presets/eslint/runtime-node.d.ts +8 -0
- package/build/src/types/presets/eslint/runtime-service-worker.d.ts +8 -0
- package/build/src/types/presets/eslint/runtime-web-worker.d.ts +8 -0
- package/build/src/types/presets/eslint/tool-vite.d.ts +8 -0
- package/build/src/types/rules/eslint/conventions/no-default-export-declaration.d.ts +32 -0
- package/build/src/types/rules/eslint/conventions/no-implicit-boolean.d.ts +72 -0
- package/build/src/types/rules/eslint/conventions/require-explicit-return.d.ts +73 -0
- package/build/src/types/rules/eslint/conventions/require-hash-private.d.ts +31 -0
- package/build/src/types/rules/eslint/conventions/require-kebab-case-filename.d.ts +64 -0
- package/build/src/types/rules/eslint/conventions/require-naming-convention.d.ts +265 -0
- package/build/src/types/rules/eslint/conventions/require-undefined-init.d.ts +30 -0
- package/build/src/types/rules/eslint/conventions/switch-case-blocks.d.ts +48 -0
- package/build/src/types/rules/eslint/formatting/no-complex-arrow-concise.d.ts +74 -0
- package/build/src/types/rules/eslint/formatting/no-multiline-strings.d.ts +104 -0
- package/build/src/types/rules/eslint/formatting/no-raw-text-in-code.d.ts +28 -0
- package/build/src/types/rules/eslint/formatting/no-ternary-in-template-literal.d.ts +26 -0
- package/build/src/types/rules/eslint/formatting/require-import-order.d.ts +91 -0
- package/build/src/types/rules/eslint/formatting/require-multiline-condition-groups.d.ts +64 -0
- package/build/src/types/rules/eslint/formatting/require-multiline-conditions.d.ts +52 -0
- package/build/src/types/rules/eslint/formatting/require-padding-lines.d.ts +212 -0
- package/build/src/types/rules/eslint/formatting/require-ternary-parens.d.ts +32 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-body.d.ts +56 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts +302 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-param-alignment.d.ts +108 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts +61 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-private.d.ts +40 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-since.d.ts +30 -0
- package/build/src/types/rules/eslint/nova/no-logger-dev.d.ts +60 -0
- package/build/src/types/rules/eslint/patterns/no-assign-then-return.d.ts +42 -0
- package/build/src/types/rules/eslint/patterns/no-await-in-loop.d.ts +87 -0
- package/build/src/types/rules/eslint/patterns/no-boolean-var-for-if.d.ts +48 -0
- package/build/src/types/rules/eslint/patterns/no-bracket-assignment.d.ts +34 -0
- package/build/src/types/rules/eslint/patterns/no-bracket-method-call.d.ts +46 -0
- package/build/src/types/rules/eslint/patterns/no-template-curly-in-string.d.ts +32 -0
- package/build/src/types/rules/eslint/patterns/no-use-before-define.d.ts +84 -0
- package/build/src/types/rules/eslint/regex/no-regex-literal-flags.d.ts +26 -0
- package/build/src/types/rules/eslint/regex/no-regex-literals.d.ts +40 -0
- package/build/src/types/rules/eslint/safety/no-script-url.d.ts +37 -0
- package/build/src/types/rules/eslint/syntax/no-destructuring.d.ts +131 -0
- package/build/src/types/rules/eslint/syntax/no-numeric-literals.d.ts +57 -0
- package/build/src/types/rules/eslint/syntax/no-optional-chaining.d.ts +26 -0
- package/build/src/types/rules/eslint/syntax/no-rest-params.d.ts +78 -0
- package/build/src/types/rules/eslint/typescript/no-catch-unknown-annotation.d.ts +30 -0
- package/build/src/types/rules/eslint/typescript/no-explicit-any.d.ts +26 -0
- package/build/src/types/rules/eslint/typescript/no-inline-type-annotation.d.ts +94 -0
- package/build/src/types/rules/eslint/typescript/no-shared-type-import.d.ts +43 -0
- package/build/src/types/rules/eslint/typescript/require-bracket-property-access.d.ts +53 -0
- package/build/src/types/rules/eslint/typescript/require-type-naming.d.ts +51 -0
- package/build/src/types/shared.d.ts +731 -0
- package/build/src/types/tests/api/node-releases.test.d.ts +14 -0
- package/build/src/types/tests/api/spdx-licenses.test.d.ts +18 -0
- package/build/src/types/tests/cli/generate/github/funding.test.d.ts +26 -0
- package/build/src/types/tests/cli/generate/github/issue-template.test.d.ts +14 -0
- package/build/src/types/tests/cli/generate/github/workflows.test.d.ts +38 -0
- package/build/src/types/tests/cli/generate/must-haves/agent-conventions.test.d.ts +32 -0
- package/build/src/types/tests/cli/generate/must-haves/dotenv.test.d.ts +14 -0
- package/build/src/types/tests/cli/generate/must-haves/editorconfig.test.d.ts +22 -0
- package/build/src/types/tests/cli/generate/must-haves/gitignore.test.d.ts +14 -0
- package/build/src/types/tests/cli/generate/must-haves/license.test.d.ts +26 -0
- package/build/src/types/tests/cli/generate/must-haves/read-me.test.d.ts +26 -0
- package/build/src/types/tests/cli/recipe/package-json/cleanup.test.d.ts +42 -0
- package/build/src/types/tests/cli/recipe/package-json/normalize-artifacts.test.d.ts +32 -0
- package/build/src/types/tests/cli/recipe/package-json/normalize-bundler.test.d.ts +32 -0
- package/build/src/types/tests/cli/recipe/package-json/normalize-dependencies.test.d.ts +40 -0
- package/build/src/types/tests/cli/recipe/package-json/normalize-modules.test.d.ts +32 -0
- package/build/src/types/tests/cli/recipe/package-json/normalize-tooling.test.d.ts +32 -0
- package/build/src/types/tests/cli/recipe/package-json/sync-environment.test.d.ts +32 -0
- package/build/src/types/tests/cli/recipe/package-json/sync-identity.test.d.ts +32 -0
- package/build/src/types/tests/cli/recipe/package-json/sync-ownership.test.d.ts +32 -0
- package/build/src/types/tests/cli/scaffold/app/expressjs.test.d.ts +40 -0
- package/build/src/types/tests/cli/scaffold/app/nextjs.test.d.ts +42 -0
- package/build/src/types/tests/cli/scaffold/app/vite.test.d.ts +42 -0
- package/build/src/types/tests/cli/scaffold/app/workers.test.d.ts +40 -0
- package/build/src/types/tests/cli/scaffold/docs/docusaurus.test.d.ts +40 -0
- package/build/src/types/tests/cli/scaffold/starter/base.test.d.ts +40 -0
- package/build/src/types/tests/cli/utility/changelog.test.d.ts +68 -0
- package/build/src/types/tests/cli/utility/initialize.test.d.ts +14 -0
- package/build/src/types/tests/cli/utility/run-recipes.test.d.ts +22 -0
- package/build/src/types/tests/cli/utility/run-scripts.test.d.ts +52 -0
- package/build/src/types/tests/cli/utility/transpile.test.d.ts +26 -0
- package/build/src/types/tests/cli/utility/type-check.test.d.ts +22 -0
- package/build/src/types/tests/cli/utility/version.test.d.ts +12 -0
- package/build/src/types/tests/lib/item.test.d.ts +88 -0
- package/build/src/types/tests/lib/nova-config.test.d.ts +138 -0
- package/build/src/types/tests/lib/regex.test.d.ts +122 -0
- package/build/src/types/tests/lib/scaffold.test.d.ts +26 -0
- package/build/src/types/tests/lib/schema.test.d.ts +36 -0
- package/build/src/types/tests/lib/utility.test.d.ts +324 -0
- package/build/src/types/tests/lib/workflow-templates.test.d.ts +77 -0
- package/build/src/types/tests/rules/eslint/conventions/no-default-export-declaration.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/conventions/no-implicit-boolean.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/conventions/require-explicit-return.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/conventions/require-hash-private.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/conventions/require-kebab-case-filename.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/conventions/require-naming-convention.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/conventions/require-undefined-init.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/conventions/switch-case-blocks.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/no-complex-arrow-concise.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/no-multiline-strings.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/no-raw-text-in-code.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/no-ternary-in-template-literal.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/require-import-order.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/require-multiline-condition-groups.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/require-multiline-conditions.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/require-padding-lines.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/require-ternary-parens.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-body.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-hierarchy.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-param-alignment.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-param-name.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-private.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-since.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/nova/no-logger-dev.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/patterns/no-assign-then-return.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/patterns/no-await-in-loop.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/patterns/no-boolean-var-for-if.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/patterns/no-bracket-assignment.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/patterns/no-bracket-method-call.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/patterns/no-template-curly-in-string.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/patterns/no-use-before-define.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/regex/no-regex-literal-flags.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/regex/no-regex-literals.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/safety/no-script-url.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/syntax/no-destructuring.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/syntax/no-numeric-literals.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/syntax/no-optional-chaining.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/syntax/no-rest-params.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/typescript/no-explicit-any.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/typescript/no-inline-type-annotation.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/typescript/no-shared-type-import.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/typescript/require-bracket-property-access.test.d.ts +12 -0
- package/build/src/types/tests/rules/eslint/typescript/require-type-naming.test.d.ts +8 -0
- package/build/src/types/tests/toolkit/bootstrap.test.d.ts +108 -0
- package/build/src/types/tests/toolkit/cli-header.test.d.ts +46 -0
- package/build/src/types/tests/toolkit/logger.test.d.ts +20 -0
- package/build/src/types/tests/toolkit/markdown-table.test.d.ts +65 -0
- package/build/src/types/tests/type-declarations.test.d.ts +564 -0
- package/build/src/types/toolkit/bootstrap.d.ts +133 -0
- package/build/src/types/toolkit/cli-header.d.ts +203 -0
- package/build/src/types/toolkit/logger.d.ts +160 -0
- package/build/src/types/toolkit/markdown-table.d.ts +159 -0
- package/build/templates/generators/github/funding/FUNDING.yml +12 -0
- package/build/templates/generators/github/issue-template/BUG-REPORT.yml +86 -0
- package/build/templates/generators/github/issue-template/FEATURE-REQUEST.yml +61 -0
- package/build/templates/generators/github/issue-template/SUPPORT-REQUEST.yml +50 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/android.yml +16 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/apple.yml +23 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/csharp.yml +20 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/docker.yml +33 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/homebridge.yml +16 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/nodejs.yml +8 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/pfsense.yml +8 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/php.yml +8 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/python.yml +8 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/screenshots.yml +7 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/synology.yml +8 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/web.yml +21 -0
- package/build/templates/generators/github/issue-template/config.yml +1 -0
- package/build/templates/generators/github/issue-template/legal-agreements/bug-report.yml +8 -0
- package/build/templates/generators/github/issue-template/legal-agreements/feature-request.yml +8 -0
- package/build/templates/generators/github/issue-template/legal-agreements/support-request.yml +8 -0
- package/build/templates/generators/github/workflows/check-sponsor-gated-issues/base.yml +57 -0
- package/build/templates/generators/github/workflows/lock-inactive-issues/base.yml +43 -0
- package/build/templates/generators/github/workflows/lock-inactive-issues/triggers/schedule.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-aws-amplify-nextjs/base.yml +53 -0
- package/build/templates/generators/github/workflows/publish-to-aws-amplify-nextjs/triggers/push.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-aws-amplify-nextjs/triggers/release.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-cloudflare-pages-docusaurus/base.yml +62 -0
- package/build/templates/generators/github/workflows/publish-to-cloudflare-pages-docusaurus/triggers/push.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-cloudflare-pages-docusaurus/triggers/release.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-docker-hub/base.yml +58 -0
- package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/release.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/workflow-run-any.yml +7 -0
- package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/workflow-run-failure.yml +8 -0
- package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/workflow-run-success.yml +8 -0
- package/build/templates/generators/github/workflows/publish-to-github-packages/base.yml +108 -0
- package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/release.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/workflow-run-any.yml +7 -0
- package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/workflow-run-failure.yml +8 -0
- package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/workflow-run-success.yml +8 -0
- package/build/templates/generators/github/workflows/publish-to-github-pages-docusaurus/base.yml +79 -0
- package/build/templates/generators/github/workflows/publish-to-github-pages-docusaurus/triggers/push.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-github-pages-docusaurus/triggers/release.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-npm/base.yml +91 -0
- package/build/templates/generators/github/workflows/publish-to-npm/triggers/release.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-npm/triggers/workflow-run-any.yml +7 -0
- package/build/templates/generators/github/workflows/publish-to-npm/triggers/workflow-run-failure.yml +8 -0
- package/build/templates/generators/github/workflows/publish-to-npm/triggers/workflow-run-success.yml +8 -0
- package/build/templates/generators/must-haves/agent-conventions/AGENTS.md +54 -0
- package/build/templates/generators/must-haves/agent-conventions/CLAUDE.md +54 -0
- package/build/templates/generators/must-haves/agent-conventions/PROJECT_RULES.md +290 -0
- package/build/templates/generators/must-haves/agent-conventions/VISION.md +62 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/csharp.md +317 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/css.md +188 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/docker.md +131 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/documentation.md +615 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/java.md +285 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/kotlin.md +297 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/php.md +257 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/python.md +260 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/shell.md +205 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/swift.md +312 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/typescript.md +1530 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/universal.md +202 -0
- package/build/templates/generators/must-haves/license/AGPL-3.0 +662 -0
- package/build/templates/generators/must-haves/license/Apache-2.0 +202 -0
- package/build/templates/generators/must-haves/license/BSD-2-Clause +25 -0
- package/build/templates/generators/must-haves/license/BSD-3-Clause +29 -0
- package/build/templates/generators/must-haves/license/BSL-1.0 +24 -0
- package/build/templates/generators/must-haves/license/CC0-1.0 +122 -0
- package/build/templates/generators/must-haves/license/EPL-2.0 +278 -0
- package/build/templates/generators/must-haves/license/GPL-2.0 +340 -0
- package/build/templates/generators/must-haves/license/GPL-3.0 +675 -0
- package/build/templates/generators/must-haves/license/LGPL-2.1 +505 -0
- package/build/templates/generators/must-haves/license/MIT +22 -0
- package/build/templates/generators/must-haves/license/MPL-2.0 +374 -0
- package/build/templates/generators/must-haves/license/Proprietary +22 -0
- package/build/templates/generators/must-haves/license/Unlicense +25 -0
- package/build/templates/generators/must-haves/read-me/README.md +17 -0
- package/build/templates/scaffold/app/express/package.json +20 -0
- package/build/templates/scaffold/app/express/src/index.ts +12 -0
- package/build/templates/scaffold/app/express/tsconfig.json +15 -0
- package/build/templates/scaffold/app/nextjs/next.config.mjs +4 -0
- package/build/templates/scaffold/app/nextjs/package.json +22 -0
- package/build/templates/scaffold/app/nextjs/src/app/globals.css +11 -0
- package/build/templates/scaffold/app/nextjs/src/app/layout.tsx +18 -0
- package/build/templates/scaffold/app/nextjs/src/app/page.tsx +8 -0
- package/build/templates/scaffold/app/nextjs/tsconfig.json +26 -0
- package/build/templates/scaffold/app/vite/index.html +12 -0
- package/build/templates/scaffold/app/vite/package.json +17 -0
- package/build/templates/scaffold/app/vite/src/main.ts +5 -0
- package/build/templates/scaffold/app/vite/tsconfig.json +16 -0
- package/build/templates/scaffold/app/vite/vite.config.mts +3 -0
- package/build/templates/scaffold/app/workers/package.json +16 -0
- package/build/templates/scaffold/app/workers/src/index.ts +13 -0
- package/build/templates/scaffold/app/workers/tsconfig.json +17 -0
- package/build/templates/scaffold/app/workers/wrangler.toml +3 -0
- package/build/templates/scaffold/docs/docusaurus/docs/intro.md +9 -0
- package/build/templates/scaffold/docs/docusaurus/docusaurus.config.ts +33 -0
- package/build/templates/scaffold/docs/docusaurus/package.json +20 -0
- package/build/templates/scaffold/docs/docusaurus/sidebars.ts +9 -0
- package/build/templates/scaffold/docs/docusaurus/tsconfig.json +8 -0
- package/package.json +33 -23
- package/build/src/presets/eslint/dx-code-style.d.mts +0 -4
- package/build/src/presets/eslint/dx-code-style.d.mts.map +0 -1
- package/build/src/presets/eslint/dx-code-style.mjs +0 -211
- package/build/src/presets/eslint/dx-code-style.mjs.map +0 -1
- package/build/src/presets/eslint/dx-ignore.d.mts +0 -4
- package/build/src/presets/eslint/dx-ignore.d.mts.map +0 -1
- package/build/src/presets/eslint/dx-ignore.mjs.map +0 -1
- package/build/src/presets/eslint/env-browser.d.mts +0 -4
- package/build/src/presets/eslint/env-browser.d.mts.map +0 -1
- package/build/src/presets/eslint/env-browser.mjs +0 -3
- package/build/src/presets/eslint/env-browser.mjs.map +0 -1
- package/build/src/presets/eslint/env-edge.d.mts +0 -4
- package/build/src/presets/eslint/env-edge.d.mts.map +0 -1
- package/build/src/presets/eslint/env-edge.mjs.map +0 -1
- package/build/src/presets/eslint/env-node.d.mts +0 -4
- package/build/src/presets/eslint/env-node.d.mts.map +0 -1
- package/build/src/presets/eslint/env-node.mjs.map +0 -1
- package/build/src/presets/eslint/env-service-worker.d.mts +0 -4
- package/build/src/presets/eslint/env-service-worker.d.mts.map +0 -1
- package/build/src/presets/eslint/env-service-worker.mjs +0 -3
- package/build/src/presets/eslint/env-service-worker.mjs.map +0 -1
- package/build/src/presets/eslint/env-web-worker.d.mts +0 -4
- package/build/src/presets/eslint/env-web-worker.d.mts.map +0 -1
- package/build/src/presets/eslint/env-web-worker.mjs.map +0 -1
- package/build/src/presets/eslint/fw-docusaurus.d.mts +0 -4
- package/build/src/presets/eslint/fw-docusaurus.d.mts.map +0 -1
- package/build/src/presets/eslint/fw-docusaurus.mjs +0 -10
- package/build/src/presets/eslint/fw-docusaurus.mjs.map +0 -1
- package/build/src/presets/eslint/fw-expressjs.d.mts +0 -4
- package/build/src/presets/eslint/fw-expressjs.d.mts.map +0 -1
- package/build/src/presets/eslint/fw-expressjs.mjs.map +0 -1
- package/build/src/presets/eslint/fw-nextjs.d.mts +0 -4
- package/build/src/presets/eslint/fw-nextjs.d.mts.map +0 -1
- package/build/src/presets/eslint/fw-nextjs.mjs.map +0 -1
- package/build/src/presets/eslint/index.d.mts +0 -16
- package/build/src/presets/eslint/index.d.mts.map +0 -1
- package/build/src/presets/eslint/index.mjs +0 -16
- package/build/src/presets/eslint/index.mjs.map +0 -1
- package/build/src/presets/eslint/lang-javascript.d.mts +0 -4
- package/build/src/presets/eslint/lang-javascript.d.mts.map +0 -1
- package/build/src/presets/eslint/lang-javascript.mjs +0 -3
- package/build/src/presets/eslint/lang-javascript.mjs.map +0 -1
- package/build/src/presets/eslint/lang-mdx.d.mts +0 -4
- package/build/src/presets/eslint/lang-mdx.d.mts.map +0 -1
- package/build/src/presets/eslint/lang-mdx.mjs.map +0 -1
- package/build/src/presets/eslint/lang-typescript.d.mts +0 -4
- package/build/src/presets/eslint/lang-typescript.d.mts.map +0 -1
- package/build/src/presets/eslint/lang-typescript.mjs +0 -88
- package/build/src/presets/eslint/lang-typescript.mjs.map +0 -1
- package/build/src/presets/eslint/platform-cloudflare-workers.d.mts +0 -4
- package/build/src/presets/eslint/platform-cloudflare-workers.d.mts.map +0 -1
- package/build/src/presets/eslint/platform-cloudflare-workers.mjs +0 -8
- package/build/src/presets/eslint/platform-cloudflare-workers.mjs.map +0 -1
- package/build/src/presets/eslint/tool-vite.d.mts +0 -4
- package/build/src/presets/eslint/tool-vite.d.mts.map +0 -1
- package/build/src/presets/eslint/tool-vite.mjs.map +0 -1
- package/build/src/presets/tsconfig/env-web-worker.json +0 -12
- package/build/src/rules/eslint/patterns/no-destructuring.d.ts +0 -13
- package/build/src/rules/eslint/patterns/no-destructuring.d.ts.map +0 -1
- package/build/src/rules/eslint/patterns/no-destructuring.js +0 -177
- package/build/src/rules/eslint/patterns/no-destructuring.js.map +0 -1
- package/build/src/rules/eslint/patterns/no-implicit-boolean.d.ts +0 -6
- package/build/src/rules/eslint/patterns/no-implicit-boolean.d.ts.map +0 -1
- package/build/src/rules/eslint/patterns/no-implicit-boolean.js +0 -62
- package/build/src/rules/eslint/patterns/no-implicit-boolean.js.map +0 -1
- package/build/src/rules/eslint/patterns/no-ternary-in-template-literal.d.ts +0 -6
- package/build/src/rules/eslint/patterns/no-ternary-in-template-literal.d.ts.map +0 -1
- package/build/src/rules/eslint/patterns/no-ternary-in-template-literal.js +0 -32
- package/build/src/rules/eslint/patterns/no-ternary-in-template-literal.js.map +0 -1
- package/build/src/rules/eslint/patterns/switch-case-blocks.d.ts +0 -6
- package/build/src/rules/eslint/patterns/switch-case-blocks.d.ts.map +0 -1
- package/build/src/rules/eslint/patterns/switch-case-blocks.js +0 -36
- package/build/src/rules/eslint/patterns/switch-case-blocks.js.map +0 -1
- package/build/src/tests/api/node-releases.test.d.ts +0 -2
- package/build/src/tests/api/node-releases.test.d.ts.map +0 -1
- package/build/src/tests/api/node-releases.test.js +0 -193
- package/build/src/tests/api/node-releases.test.js.map +0 -1
- package/build/src/tests/api/spdx-licenses.test.d.ts +0 -2
- package/build/src/tests/api/spdx-licenses.test.d.ts.map +0 -1
- package/build/src/tests/api/spdx-licenses.test.js +0 -91
- package/build/src/tests/api/spdx-licenses.test.js.map +0 -1
- package/build/src/tests/cli/recipe/package-json/cleanup.test.d.ts +0 -2
- package/build/src/tests/cli/recipe/package-json/cleanup.test.d.ts.map +0 -1
- package/build/src/tests/cli/recipe/package-json/cleanup.test.js +0 -240
- package/build/src/tests/cli/recipe/package-json/cleanup.test.js.map +0 -1
- package/build/src/tests/cli/recipe/package-json/normalize-artifacts.test.d.ts +0 -2
- package/build/src/tests/cli/recipe/package-json/normalize-artifacts.test.d.ts.map +0 -1
- package/build/src/tests/cli/recipe/package-json/normalize-artifacts.test.js +0 -161
- package/build/src/tests/cli/recipe/package-json/normalize-artifacts.test.js.map +0 -1
- package/build/src/tests/cli/recipe/package-json/normalize-bundler.test.d.ts +0 -2
- package/build/src/tests/cli/recipe/package-json/normalize-bundler.test.d.ts.map +0 -1
- package/build/src/tests/cli/recipe/package-json/normalize-bundler.test.js +0 -161
- package/build/src/tests/cli/recipe/package-json/normalize-bundler.test.js.map +0 -1
- package/build/src/tests/cli/recipe/package-json/normalize-dependencies.test.d.ts +0 -2
- package/build/src/tests/cli/recipe/package-json/normalize-dependencies.test.d.ts.map +0 -1
- package/build/src/tests/cli/recipe/package-json/normalize-dependencies.test.js +0 -175
- package/build/src/tests/cli/recipe/package-json/normalize-dependencies.test.js.map +0 -1
- package/build/src/tests/cli/recipe/package-json/normalize-modules.test.d.ts +0 -2
- package/build/src/tests/cli/recipe/package-json/normalize-modules.test.d.ts.map +0 -1
- package/build/src/tests/cli/recipe/package-json/normalize-modules.test.js +0 -164
- package/build/src/tests/cli/recipe/package-json/normalize-modules.test.js.map +0 -1
- package/build/src/tests/cli/recipe/package-json/normalize-tooling.test.d.ts +0 -2
- package/build/src/tests/cli/recipe/package-json/normalize-tooling.test.d.ts.map +0 -1
- package/build/src/tests/cli/recipe/package-json/normalize-tooling.test.js +0 -193
- package/build/src/tests/cli/recipe/package-json/normalize-tooling.test.js.map +0 -1
- package/build/src/tests/cli/recipe/package-json/sync-environment.test.d.ts +0 -2
- package/build/src/tests/cli/recipe/package-json/sync-environment.test.d.ts.map +0 -1
- package/build/src/tests/cli/recipe/package-json/sync-environment.test.js +0 -158
- package/build/src/tests/cli/recipe/package-json/sync-environment.test.js.map +0 -1
- package/build/src/tests/cli/recipe/package-json/sync-identity.test.d.ts +0 -2
- package/build/src/tests/cli/recipe/package-json/sync-identity.test.d.ts.map +0 -1
- package/build/src/tests/cli/recipe/package-json/sync-identity.test.js +0 -156
- package/build/src/tests/cli/recipe/package-json/sync-identity.test.js.map +0 -1
- package/build/src/tests/cli/recipe/package-json/sync-ownership.test.d.ts +0 -2
- package/build/src/tests/cli/recipe/package-json/sync-ownership.test.d.ts.map +0 -1
- package/build/src/tests/cli/recipe/package-json/sync-ownership.test.js +0 -164
- package/build/src/tests/cli/recipe/package-json/sync-ownership.test.js.map +0 -1
- package/build/src/tests/cli/utility/changelog.test.d.ts +0 -2
- package/build/src/tests/cli/utility/changelog.test.d.ts.map +0 -1
- package/build/src/tests/cli/utility/changelog.test.js +0 -274
- package/build/src/tests/cli/utility/changelog.test.js.map +0 -1
- package/build/src/tests/cli/utility/initialize.test.d.ts +0 -2
- package/build/src/tests/cli/utility/initialize.test.d.ts.map +0 -1
- package/build/src/tests/cli/utility/initialize.test.js +0 -27
- package/build/src/tests/cli/utility/initialize.test.js.map +0 -1
- package/build/src/tests/cli/utility/run-recipes.test.d.ts +0 -2
- package/build/src/tests/cli/utility/run-recipes.test.d.ts.map +0 -1
- package/build/src/tests/cli/utility/run-recipes.test.js +0 -41
- package/build/src/tests/cli/utility/run-recipes.test.js.map +0 -1
- package/build/src/tests/cli/utility/run-scripts.test.d.ts +0 -2
- package/build/src/tests/cli/utility/run-scripts.test.d.ts.map +0 -1
- package/build/src/tests/cli/utility/run-scripts.test.js +0 -153
- package/build/src/tests/cli/utility/run-scripts.test.js.map +0 -1
- package/build/src/tests/cli/utility/transpile.test.d.ts +0 -2
- package/build/src/tests/cli/utility/transpile.test.d.ts.map +0 -1
- package/build/src/tests/cli/utility/transpile.test.js +0 -65
- package/build/src/tests/cli/utility/transpile.test.js.map +0 -1
- package/build/src/tests/cli/utility/type-check.test.d.ts +0 -2
- package/build/src/tests/cli/utility/type-check.test.d.ts.map +0 -1
- package/build/src/tests/cli/utility/type-check.test.js +0 -63
- package/build/src/tests/cli/utility/type-check.test.js.map +0 -1
- package/build/src/tests/cli/utility/version.test.d.ts +0 -2
- package/build/src/tests/cli/utility/version.test.d.ts.map +0 -1
- package/build/src/tests/cli/utility/version.test.js +0 -38
- package/build/src/tests/cli/utility/version.test.js.map +0 -1
- package/build/src/tests/lib/item.test.d.ts +0 -2
- package/build/src/tests/lib/item.test.d.ts.map +0 -1
- package/build/src/tests/lib/item.test.js +0 -142
- package/build/src/tests/lib/item.test.js.map +0 -1
- package/build/src/tests/lib/nova-config.test.d.ts +0 -2
- package/build/src/tests/lib/nova-config.test.d.ts.map +0 -1
- package/build/src/tests/lib/nova-config.test.js +0 -516
- package/build/src/tests/lib/nova-config.test.js.map +0 -1
- package/build/src/tests/lib/regex.test.d.ts +0 -2
- package/build/src/tests/lib/regex.test.d.ts.map +0 -1
- package/build/src/tests/lib/regex.test.js +0 -342
- package/build/src/tests/lib/regex.test.js.map +0 -1
- package/build/src/tests/lib/schema.test.d.ts +0 -2
- package/build/src/tests/lib/schema.test.d.ts.map +0 -1
- package/build/src/tests/lib/schema.test.js +0 -260
- package/build/src/tests/lib/schema.test.js.map +0 -1
- package/build/src/tests/lib/utility.test.d.ts +0 -2
- package/build/src/tests/lib/utility.test.d.ts.map +0 -1
- package/build/src/tests/lib/utility.test.js +0 -744
- package/build/src/tests/lib/utility.test.js.map +0 -1
- package/build/src/tests/rules/eslint/formatting/no-raw-text-in-code.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/formatting/no-raw-text-in-code.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/formatting/no-raw-text-in-code.test.js +0 -47
- package/build/src/tests/rules/eslint/formatting/no-raw-text-in-code.test.js.map +0 -1
- package/build/src/tests/rules/eslint/formatting/require-padding-lines.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/formatting/require-padding-lines.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/formatting/require-padding-lines.test.js +0 -131
- package/build/src/tests/rules/eslint/formatting/require-padding-lines.test.js.map +0 -1
- package/build/src/tests/rules/eslint/nova/no-logger-dev.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/nova/no-logger-dev.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/nova/no-logger-dev.test.js +0 -55
- package/build/src/tests/rules/eslint/nova/no-logger-dev.test.js.map +0 -1
- package/build/src/tests/rules/eslint/patterns/no-assign-then-return.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/patterns/no-assign-then-return.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/patterns/no-assign-then-return.test.js +0 -39
- package/build/src/tests/rules/eslint/patterns/no-assign-then-return.test.js.map +0 -1
- package/build/src/tests/rules/eslint/patterns/no-bracket-assignment.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/patterns/no-bracket-assignment.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/patterns/no-bracket-assignment.test.js +0 -40
- package/build/src/tests/rules/eslint/patterns/no-bracket-assignment.test.js.map +0 -1
- package/build/src/tests/rules/eslint/patterns/no-destructuring.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/patterns/no-destructuring.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/patterns/no-destructuring.test.js +0 -86
- package/build/src/tests/rules/eslint/patterns/no-destructuring.test.js.map +0 -1
- package/build/src/tests/rules/eslint/patterns/no-implicit-boolean.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/patterns/no-implicit-boolean.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/patterns/no-implicit-boolean.test.js +0 -76
- package/build/src/tests/rules/eslint/patterns/no-implicit-boolean.test.js.map +0 -1
- package/build/src/tests/rules/eslint/patterns/no-ternary-in-template-literal.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/patterns/no-ternary-in-template-literal.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/patterns/no-ternary-in-template-literal.test.js +0 -42
- package/build/src/tests/rules/eslint/patterns/no-ternary-in-template-literal.test.js.map +0 -1
- package/build/src/tests/rules/eslint/patterns/switch-case-blocks.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/patterns/switch-case-blocks.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/patterns/switch-case-blocks.test.js +0 -43
- package/build/src/tests/rules/eslint/patterns/switch-case-blocks.test.js.map +0 -1
- package/build/src/tests/rules/eslint/regex/no-regex-literal-flags.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/regex/no-regex-literal-flags.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/regex/no-regex-literal-flags.test.js +0 -47
- package/build/src/tests/rules/eslint/regex/no-regex-literal-flags.test.js.map +0 -1
- package/build/src/tests/rules/eslint/regex/no-regex-literals.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/regex/no-regex-literals.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/regex/no-regex-literals.test.js +0 -49
- package/build/src/tests/rules/eslint/regex/no-regex-literals.test.js.map +0 -1
- package/build/src/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.js +0 -34
- package/build/src/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.js.map +0 -1
- package/build/src/tests/rules/eslint/typescript/no-inline-type-annotation.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/typescript/no-inline-type-annotation.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/typescript/no-inline-type-annotation.test.js +0 -55
- package/build/src/tests/rules/eslint/typescript/no-inline-type-annotation.test.js.map +0 -1
- package/build/src/tests/rules/eslint/typescript/no-shared-type-import.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/typescript/no-shared-type-import.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/typescript/no-shared-type-import.test.js +0 -51
- package/build/src/tests/rules/eslint/typescript/no-shared-type-import.test.js.map +0 -1
- package/build/src/tests/toolkit/cli-header.test.d.ts +0 -2
- package/build/src/tests/toolkit/cli-header.test.d.ts.map +0 -1
- package/build/src/tests/toolkit/cli-header.test.js +0 -143
- package/build/src/tests/toolkit/cli-header.test.js.map +0 -1
- package/build/src/tests/toolkit/logger.test.d.ts +0 -2
- package/build/src/tests/toolkit/logger.test.d.ts.map +0 -1
- package/build/src/tests/toolkit/logger.test.js +0 -96
- package/build/src/tests/toolkit/logger.test.js.map +0 -1
- package/build/src/tests/toolkit/markdown-table.test.d.ts +0 -2
- package/build/src/tests/toolkit/markdown-table.test.d.ts.map +0 -1
- package/build/src/tests/toolkit/markdown-table.test.js +0 -138
- package/build/src/tests/toolkit/markdown-table.test.js.map +0 -1
- /package/build/src/presets/tsconfig/{env-browser.json → runtime-browser.json} +0 -0
- /package/build/src/presets/tsconfig/{env-edge.json → runtime-edge.json} +0 -0
- /package/build/src/presets/tsconfig/{env-node.json → runtime-node.json} +0 -0
- /package/build/src/presets/tsconfig/{env-service-worker.json → runtime-service-worker.json} +0 -0
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
import { promises as fs } from 'fs';
|
|
2
|
+
import { join } from 'path';
|
|
3
|
+
import chalk from 'chalk';
|
|
4
|
+
import { parse as parseYaml, stringify as stringifyYaml, } from 'yaml';
|
|
5
|
+
import { LibNovaConfig } from '../../../lib/nova-config.js';
|
|
6
|
+
import { LIB_REGEX_PATTERN_WORKFLOW_CONTEXT_EXPRESSION, LIB_REGEX_PATTERN_WORKFLOW_CONTEXT_SEPARATOR, LIB_REGEX_PATTERN_WORKFLOW_CONTEXT_WRAPPER_END, LIB_REGEX_PATTERN_WORKFLOW_CONTEXT_WRAPPER_START, LIB_REGEX_PATTERN_WORKFLOW_NAME, LIB_REGEX_PATTERN_WORKFLOW_RUN_NAME_CAPTURE, } from '../../../lib/regex.js';
|
|
7
|
+
import { isProjectRoot, pathExists, renameFileWithDate, resolveTemplatePath, saveGeneratedFile, } from '../../../lib/utility.js';
|
|
8
|
+
import { libWorkflowTemplatesMetadata } from '../../../lib/workflow-templates.js';
|
|
9
|
+
import { Logger } from '../../../toolkit/index.js';
|
|
10
|
+
export class CliGenerateGithubWorkflows {
|
|
11
|
+
static async run(options) {
|
|
12
|
+
const currentDirectory = process.cwd();
|
|
13
|
+
const isAtProjectRoot = await isProjectRoot(currentDirectory);
|
|
14
|
+
if (isAtProjectRoot !== true) {
|
|
15
|
+
process.exitCode = 1;
|
|
16
|
+
return 'cancelled';
|
|
17
|
+
}
|
|
18
|
+
const isDryRun = options['dryRun'] === true;
|
|
19
|
+
const isReplaceFile = options['replaceFile'] === true;
|
|
20
|
+
if (isDryRun === true) {
|
|
21
|
+
Logger.customize({
|
|
22
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
23
|
+
purpose: 'options',
|
|
24
|
+
}).warn('Dry run enabled. File changes will not be made in this session.');
|
|
25
|
+
}
|
|
26
|
+
if (isReplaceFile === true) {
|
|
27
|
+
const replaceFileNotice = (isDryRun === true) ? 'This option has no effect during a dry run session.' : 'Backup file will not be created.';
|
|
28
|
+
Logger.customize({
|
|
29
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
30
|
+
purpose: 'options',
|
|
31
|
+
}).warn(`Replace file enabled. ${replaceFileNotice}`);
|
|
32
|
+
}
|
|
33
|
+
const config = await new LibNovaConfig().load();
|
|
34
|
+
const workflows = config['workflows'];
|
|
35
|
+
if (workflows === undefined || workflows.length === 0) {
|
|
36
|
+
Logger.customize({
|
|
37
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
38
|
+
purpose: 'skip',
|
|
39
|
+
}).info('No workflows configured.');
|
|
40
|
+
return 'completed';
|
|
41
|
+
}
|
|
42
|
+
const templateDirectory = resolveTemplatePath(import.meta.url, 'generators/github/workflows');
|
|
43
|
+
const workflowsDirectory = join(currentDirectory, '.github', 'workflows');
|
|
44
|
+
const duplicateSet = new Set();
|
|
45
|
+
let hasDuplicateError = false;
|
|
46
|
+
for (const entry of workflows) {
|
|
47
|
+
const duplicateKey = (entry['suffix'] !== undefined) ? `${entry['template']}-${entry['suffix']}` : entry['template'];
|
|
48
|
+
if (duplicateSet.has(duplicateKey) === true) {
|
|
49
|
+
Logger.customize({
|
|
50
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
51
|
+
purpose: 'validate',
|
|
52
|
+
}).error(`Duplicate workflow ${chalk.cyan(`"${duplicateKey}"`)}. Each template must have a unique suffix when used multiple times.`);
|
|
53
|
+
hasDuplicateError = true;
|
|
54
|
+
}
|
|
55
|
+
duplicateSet.add(duplicateKey);
|
|
56
|
+
}
|
|
57
|
+
if (hasDuplicateError === true) {
|
|
58
|
+
process.exitCode = 1;
|
|
59
|
+
return 'cancelled';
|
|
60
|
+
}
|
|
61
|
+
if (CliGenerateGithubWorkflows.detectCircularDependsOn(workflows) === true) {
|
|
62
|
+
Logger.customize({
|
|
63
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
64
|
+
purpose: 'validate',
|
|
65
|
+
}).error('Circular depends-on references detected. Aborting.');
|
|
66
|
+
process.exitCode = 1;
|
|
67
|
+
return 'cancelled';
|
|
68
|
+
}
|
|
69
|
+
const generatedSet = new Set();
|
|
70
|
+
const outputFileNames = new Set();
|
|
71
|
+
const setupLines = [];
|
|
72
|
+
for (const workflowEntry of workflows) {
|
|
73
|
+
const entry = workflowEntry;
|
|
74
|
+
const templateName = entry['template'];
|
|
75
|
+
const metadataEntry = libWorkflowTemplatesMetadata.find((m) => m['name'] === templateName);
|
|
76
|
+
if (metadataEntry === undefined) {
|
|
77
|
+
Logger.customize({
|
|
78
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
79
|
+
purpose: 'validate',
|
|
80
|
+
}).error(`Unknown template ${chalk.cyan(`"${templateName}"`)}. Skipping.`);
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
const templateDirPath = join(templateDirectory, templateName);
|
|
84
|
+
const templateDirExists = await pathExists(templateDirPath);
|
|
85
|
+
if (templateDirExists !== true) {
|
|
86
|
+
Logger.customize({
|
|
87
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
88
|
+
purpose: 'validate',
|
|
89
|
+
}).error(`Template directory ${chalk.cyan(`"${templateName}"`)} not found. Skipping.`);
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
const missingLiterals = [];
|
|
93
|
+
for (const variableEntry of Object.entries(metadataEntry['variables'])) {
|
|
94
|
+
const variableName = variableEntry[0];
|
|
95
|
+
const variableMeta = variableEntry[1];
|
|
96
|
+
if (variableMeta['format'] === 'literal') {
|
|
97
|
+
if (entry['settings'] === undefined || entry['settings'][variableName] === undefined) {
|
|
98
|
+
missingLiterals.push(variableName);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
if (missingLiterals.length > 0) {
|
|
103
|
+
Logger.customize({
|
|
104
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
105
|
+
purpose: 'validate',
|
|
106
|
+
}).error(`Template ${chalk.cyan(`"${templateName}"`)} is missing required literal settings: ${missingLiterals.join(', ')}. Skipping.`);
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
const workflowSuffix = entry['suffix'];
|
|
110
|
+
const outputFileName = (workflowSuffix !== undefined) ? `nova-${templateName}-${workflowSuffix}.yml` : `nova-${templateName}.yml`;
|
|
111
|
+
if (outputFileNames.has(outputFileName) === true) {
|
|
112
|
+
Logger.customize({
|
|
113
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
114
|
+
purpose: 'validate',
|
|
115
|
+
}).error(`Duplicate output filename ${chalk.cyan(`"${outputFileName}"`)}. Skipping.`);
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
outputFileNames.add(outputFileName);
|
|
119
|
+
const basePath = join(templateDirPath, 'base.yml');
|
|
120
|
+
let baseContent = undefined;
|
|
121
|
+
try {
|
|
122
|
+
baseContent = await fs.readFile(basePath, 'utf-8');
|
|
123
|
+
}
|
|
124
|
+
catch {
|
|
125
|
+
Logger.customize({
|
|
126
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
127
|
+
purpose: 'read',
|
|
128
|
+
}).error(`Failed to read base template ${chalk.cyan(`"${templateName}/base.yml"`)}. Skipping.`);
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
const hasTriggers = entry['triggers'].length > 0;
|
|
132
|
+
let content = baseContent;
|
|
133
|
+
if (hasTriggers === true) {
|
|
134
|
+
const triggers = entry['triggers'];
|
|
135
|
+
let hasTriggerError = false;
|
|
136
|
+
const triggerDataList = [];
|
|
137
|
+
for (const trigger of triggers) {
|
|
138
|
+
const triggerFileName = `${trigger}.yml`;
|
|
139
|
+
const triggerFilePath = join(templateDirPath, 'triggers', triggerFileName);
|
|
140
|
+
const triggerFileExists = await pathExists(triggerFilePath);
|
|
141
|
+
if (triggerFileExists !== true) {
|
|
142
|
+
Logger.customize({
|
|
143
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
144
|
+
purpose: 'validate',
|
|
145
|
+
}).error(`Trigger file ${chalk.cyan(`"${triggerFileName}"`)} not found for template ${chalk.cyan(`"${templateName}"`)}. Skipping workflow.`);
|
|
146
|
+
hasTriggerError = true;
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
let triggerRawContent = '';
|
|
150
|
+
try {
|
|
151
|
+
triggerRawContent = await fs.readFile(triggerFilePath, 'utf-8');
|
|
152
|
+
}
|
|
153
|
+
catch {
|
|
154
|
+
Logger.customize({
|
|
155
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
156
|
+
purpose: 'read',
|
|
157
|
+
}).error(`Failed to read trigger file ${chalk.cyan(`"${triggerFileName}"`)}. Skipping workflow.`);
|
|
158
|
+
hasTriggerError = true;
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
const triggerParsed = parseYaml(triggerRawContent);
|
|
162
|
+
const triggerParsedRunName = triggerParsed['run-name'];
|
|
163
|
+
const triggerParsedPublishCondition = triggerParsed['publish-condition'];
|
|
164
|
+
const triggerParsedTriggerBlock = triggerParsed['trigger'];
|
|
165
|
+
const triggerParsedDependsOn = triggerParsed['depends-on'];
|
|
166
|
+
const triggerParsedJobsCondition = triggerParsed['jobs-condition'];
|
|
167
|
+
const triggerData = {
|
|
168
|
+
runName: triggerParsedRunName,
|
|
169
|
+
publishCondition: triggerParsedPublishCondition,
|
|
170
|
+
triggerBlock: triggerParsedTriggerBlock,
|
|
171
|
+
dependsOn: triggerParsedDependsOn,
|
|
172
|
+
jobsCondition: triggerParsedJobsCondition,
|
|
173
|
+
};
|
|
174
|
+
triggerDataList.push(triggerData);
|
|
175
|
+
}
|
|
176
|
+
if (hasTriggerError === true) {
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
const needsDependsOn = triggerDataList.some((triggerData) => triggerData['dependsOn'] === true);
|
|
180
|
+
if (needsDependsOn === true) {
|
|
181
|
+
const dependsOnEntries = entry['depends-on'] ?? [];
|
|
182
|
+
const entryLabel = (workflowSuffix !== undefined) ? `${templateName}-${workflowSuffix}` : templateName;
|
|
183
|
+
if (dependsOnEntries.length === 0) {
|
|
184
|
+
Logger.customize({
|
|
185
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
186
|
+
purpose: 'validate',
|
|
187
|
+
}).error(`Workflow ${chalk.cyan(`"${entryLabel}"`)} uses a trigger that requires depends-on, but no depends-on value is configured. Skipping.`);
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
const dependsOnResolvedNames = [];
|
|
191
|
+
let hasDependsOnError = false;
|
|
192
|
+
for (const dependsOnEntry of dependsOnEntries) {
|
|
193
|
+
const entry2 = dependsOnEntry;
|
|
194
|
+
const dependsOnTarget = workflows.find((w) => {
|
|
195
|
+
const targetKey = (w['suffix'] !== undefined) ? `${w['template']}-${w['suffix']}` : w['template'];
|
|
196
|
+
return targetKey === entry2;
|
|
197
|
+
});
|
|
198
|
+
if (dependsOnTarget === undefined) {
|
|
199
|
+
Logger.customize({
|
|
200
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
201
|
+
purpose: 'validate',
|
|
202
|
+
}).error(`Workflow ${chalk.cyan(`"${entryLabel}"`)} depends on ${chalk.cyan(`"${entry2}"`)} which does not exist. Skipping.`);
|
|
203
|
+
hasDependsOnError = true;
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
const dependsOnBasePath = join(templateDirectory, dependsOnTarget['template'], 'base.yml');
|
|
207
|
+
let dependsOnWorkflowName = '';
|
|
208
|
+
try {
|
|
209
|
+
const dependsOnBaseContent = await fs.readFile(dependsOnBasePath, 'utf-8');
|
|
210
|
+
const dependsOnNameMatch = new RegExp(LIB_REGEX_PATTERN_WORKFLOW_NAME.source, 'm').exec(dependsOnBaseContent);
|
|
211
|
+
if (dependsOnNameMatch === null || dependsOnNameMatch[1] === undefined) {
|
|
212
|
+
throw new Error('No name field found');
|
|
213
|
+
}
|
|
214
|
+
const targetSuffix = dependsOnTarget['suffix'];
|
|
215
|
+
dependsOnWorkflowName = dependsOnNameMatch[1].replaceAll('[__WORKFLOW_ID__]', (targetSuffix !== undefined) ? ` (${targetSuffix})` : '');
|
|
216
|
+
}
|
|
217
|
+
catch {
|
|
218
|
+
Logger.customize({
|
|
219
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
220
|
+
purpose: 'read',
|
|
221
|
+
}).error(`Failed to resolve depends-on workflow name for ${chalk.cyan(`"${entry2}"`)}. Skipping.`);
|
|
222
|
+
hasDependsOnError = true;
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
dependsOnResolvedNames.push(dependsOnWorkflowName);
|
|
226
|
+
}
|
|
227
|
+
if (hasDependsOnError === true) {
|
|
228
|
+
continue;
|
|
229
|
+
}
|
|
230
|
+
const dependsOnYamlArray = dependsOnResolvedNames.map((name) => `"${name}"`).join(', ');
|
|
231
|
+
for (const triggerData of triggerDataList) {
|
|
232
|
+
if (triggerData['dependsOn'] === true) {
|
|
233
|
+
const triggerBlockString = JSON.stringify(triggerData['triggerBlock']);
|
|
234
|
+
const resolvedTriggerBlock = JSON.parse(triggerBlockString.replaceAll('"[__DEPENDS_ON__]"', dependsOnYamlArray));
|
|
235
|
+
Reflect.set(triggerData, 'triggerBlock', resolvedTriggerBlock);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
const mergedTriggerBlock = {};
|
|
240
|
+
for (const triggerData of triggerDataList) {
|
|
241
|
+
for (const triggerEntry of Object.entries(triggerData['triggerBlock'])) {
|
|
242
|
+
Reflect.set(mergedTriggerBlock, triggerEntry[0], triggerEntry[1]);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
const triggerYaml = stringifyYaml(mergedTriggerBlock, {
|
|
246
|
+
lineWidth: 0,
|
|
247
|
+
defaultKeyType: 'PLAIN',
|
|
248
|
+
defaultStringType: 'QUOTE_DOUBLE',
|
|
249
|
+
});
|
|
250
|
+
const indentedTriggerLines = triggerYaml.split('\n').map((line) => (line.trim() === '') ? '' : ` ${line}`);
|
|
251
|
+
const indentedTriggerYaml = indentedTriggerLines.join('\n');
|
|
252
|
+
const mergedRunName = CliGenerateGithubWorkflows.buildMergedRunName(triggerDataList);
|
|
253
|
+
const mergedPublishCondition = CliGenerateGithubWorkflows.buildMergedPublishCondition(triggerDataList);
|
|
254
|
+
const mergedJobsCondition = CliGenerateGithubWorkflows.buildMergedJobsCondition(triggerDataList);
|
|
255
|
+
const jobsConditionLine = (mergedJobsCondition !== '') ? ` if: "${mergedJobsCondition}"\n` : '';
|
|
256
|
+
content = content.replace('[__RUN_NAME__]', mergedRunName);
|
|
257
|
+
content = content.replace('[__TRIGGERS__]', indentedTriggerYaml);
|
|
258
|
+
content = content.replace('[__PUBLISH_CONDITION__]', mergedPublishCondition);
|
|
259
|
+
content = content.replace('[__JOBS_CONDITION__]\n', jobsConditionLine);
|
|
260
|
+
}
|
|
261
|
+
content = content.replaceAll('[__WORKFLOW_ID__]', (workflowSuffix !== undefined) ? ` (${workflowSuffix})` : '');
|
|
262
|
+
const substituted = CliGenerateGithubWorkflows.substituteVariables(content, metadataEntry['variables'], entry['settings']);
|
|
263
|
+
try {
|
|
264
|
+
parseYaml(substituted);
|
|
265
|
+
}
|
|
266
|
+
catch {
|
|
267
|
+
Logger.customize({
|
|
268
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
269
|
+
purpose: 'validate',
|
|
270
|
+
}).error(`Generated YAML for ${chalk.cyan(`"${outputFileName}"`)} is invalid. Skipping.`);
|
|
271
|
+
continue;
|
|
272
|
+
}
|
|
273
|
+
generatedSet.add(outputFileName);
|
|
274
|
+
for (const variableEntry of Object.entries(metadataEntry['variables'])) {
|
|
275
|
+
const variableName = variableEntry[0];
|
|
276
|
+
const variableMeta = variableEntry[1];
|
|
277
|
+
if (variableMeta['auto'] === true) {
|
|
278
|
+
continue;
|
|
279
|
+
}
|
|
280
|
+
if (variableMeta['format'] === 'secret') {
|
|
281
|
+
const resolvedName = (entry['settings'] !== undefined && entry['settings'][variableName] !== undefined) ? entry['settings'][variableName] : (variableMeta['default'] ?? variableName);
|
|
282
|
+
setupLines.push(` - ${chalk.cyan(outputFileName)}: Secret ${chalk.yellow(resolvedName)}`);
|
|
283
|
+
}
|
|
284
|
+
if (variableMeta['format'] === 'var') {
|
|
285
|
+
const resolvedName = (entry['settings'] !== undefined && entry['settings'][variableName] !== undefined) ? entry['settings'][variableName] : (variableMeta['default'] ?? variableName);
|
|
286
|
+
setupLines.push(` - ${chalk.cyan(outputFileName)}: Variable ${chalk.yellow(resolvedName)}`);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
if (isDryRun === true) {
|
|
290
|
+
const displayPath = `.github/workflows/${outputFileName}`;
|
|
291
|
+
Logger.customize({
|
|
292
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
293
|
+
purpose: 'dry-run',
|
|
294
|
+
}).info(`Would generate ${chalk.cyan(`"${displayPath}"`)}.`);
|
|
295
|
+
continue;
|
|
296
|
+
}
|
|
297
|
+
const targetPath = join(workflowsDirectory, outputFileName);
|
|
298
|
+
await saveGeneratedFile(targetPath, substituted, isReplaceFile);
|
|
299
|
+
}
|
|
300
|
+
if (isDryRun !== true && await pathExists(workflowsDirectory) === true) {
|
|
301
|
+
let existingEntries = [];
|
|
302
|
+
try {
|
|
303
|
+
existingEntries = await fs.readdir(workflowsDirectory, { withFileTypes: true });
|
|
304
|
+
}
|
|
305
|
+
catch {
|
|
306
|
+
}
|
|
307
|
+
for (const existingEntry of existingEntries) {
|
|
308
|
+
const entry = existingEntry;
|
|
309
|
+
if (entry.isFile() !== true) {
|
|
310
|
+
continue;
|
|
311
|
+
}
|
|
312
|
+
const isOrphan = entry.name.startsWith('nova-') === true
|
|
313
|
+
&& entry.name.endsWith('.yml') === true
|
|
314
|
+
&& generatedSet.has(entry.name) === false;
|
|
315
|
+
const isBackup = entry.name.includes('.nova-backup.') === true;
|
|
316
|
+
if (isOrphan !== true || isBackup === true) {
|
|
317
|
+
continue;
|
|
318
|
+
}
|
|
319
|
+
const orphanPath = join(workflowsDirectory, entry.name);
|
|
320
|
+
if (isReplaceFile === true) {
|
|
321
|
+
await fs.unlink(orphanPath);
|
|
322
|
+
Logger.customize({
|
|
323
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
324
|
+
purpose: 'cleanup',
|
|
325
|
+
}).info(`Deleted orphan ${chalk.cyan(`"${entry.name}"`)}.`);
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
await renameFileWithDate(orphanPath);
|
|
329
|
+
Logger.customize({
|
|
330
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
331
|
+
purpose: 'cleanup',
|
|
332
|
+
}).info(`Backed up orphan ${chalk.cyan(`"${entry.name}"`)}.`);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
if (setupLines.length > 0) {
|
|
337
|
+
const setupMessage = [
|
|
338
|
+
'Setup:',
|
|
339
|
+
setupLines.join('\n'),
|
|
340
|
+
].join('\n');
|
|
341
|
+
Logger.customize({
|
|
342
|
+
name: 'CliGenerateGithubWorkflows.run',
|
|
343
|
+
purpose: 'setup',
|
|
344
|
+
padTop: 1,
|
|
345
|
+
}).info(setupMessage);
|
|
346
|
+
}
|
|
347
|
+
return 'completed';
|
|
348
|
+
}
|
|
349
|
+
static buildMergedRunName(triggerDataList) {
|
|
350
|
+
const contextExpressions = [];
|
|
351
|
+
for (const triggerData of triggerDataList) {
|
|
352
|
+
const contextMatch = triggerData['runName'].match(LIB_REGEX_PATTERN_WORKFLOW_CONTEXT_EXPRESSION);
|
|
353
|
+
if (contextMatch === null) {
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
const contextInner = contextMatch[1] ?? '';
|
|
357
|
+
const contextParts = contextInner.split('||').map((part) => part.trim());
|
|
358
|
+
for (const part of contextParts) {
|
|
359
|
+
if (part === '\'manually\'' || contextExpressions.includes(part) === true) {
|
|
360
|
+
continue;
|
|
361
|
+
}
|
|
362
|
+
contextExpressions.push(part);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
const runNameMatch = (triggerDataList[0] ?? { runName: '' })['runName'].match(LIB_REGEX_PATTERN_WORKFLOW_RUN_NAME_CAPTURE);
|
|
366
|
+
const runNamePrefix = (runNameMatch !== null && runNameMatch[1] !== undefined) ? runNameMatch[1] : '';
|
|
367
|
+
const runNameSuffix = (runNameMatch !== null && runNameMatch[2] !== undefined) ? runNameMatch[2] : '';
|
|
368
|
+
const mergedContextExpression = [
|
|
369
|
+
...contextExpressions,
|
|
370
|
+
'\'manually\'',
|
|
371
|
+
].join(' || ');
|
|
372
|
+
return `${runNamePrefix}\${{ ${mergedContextExpression} }}${runNameSuffix}`;
|
|
373
|
+
}
|
|
374
|
+
static buildMergedPublishCondition(triggerDataList) {
|
|
375
|
+
const nonDispatchParts = [];
|
|
376
|
+
let dispatchPart = '';
|
|
377
|
+
for (const triggerData of triggerDataList) {
|
|
378
|
+
const publishInner = triggerData['publishCondition'].replace(LIB_REGEX_PATTERN_WORKFLOW_CONTEXT_WRAPPER_START, '').replace(LIB_REGEX_PATTERN_WORKFLOW_CONTEXT_WRAPPER_END, '');
|
|
379
|
+
const publishParts = publishInner.split(LIB_REGEX_PATTERN_WORKFLOW_CONTEXT_SEPARATOR);
|
|
380
|
+
for (const part of publishParts) {
|
|
381
|
+
if (part.includes('workflow_dispatch') === true) {
|
|
382
|
+
if (dispatchPart === '') {
|
|
383
|
+
dispatchPart = part;
|
|
384
|
+
}
|
|
385
|
+
continue;
|
|
386
|
+
}
|
|
387
|
+
if (nonDispatchParts.includes(part) === false) {
|
|
388
|
+
nonDispatchParts.push(part);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
const allParts = [...nonDispatchParts];
|
|
393
|
+
if (dispatchPart !== '') {
|
|
394
|
+
allParts.push(dispatchPart);
|
|
395
|
+
}
|
|
396
|
+
return `\${{ ${allParts.join(' || ')} }}`;
|
|
397
|
+
}
|
|
398
|
+
static buildMergedJobsCondition(triggerDataList) {
|
|
399
|
+
for (const triggerData of triggerDataList) {
|
|
400
|
+
if (triggerData['jobsCondition'] !== undefined) {
|
|
401
|
+
const jobsConditionLine = triggerData['jobsCondition'].replace(LIB_REGEX_PATTERN_WORKFLOW_CONTEXT_WRAPPER_START, '').replace(LIB_REGEX_PATTERN_WORKFLOW_CONTEXT_WRAPPER_END, '');
|
|
402
|
+
return `\${{ ${jobsConditionLine} }}`;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
return '';
|
|
406
|
+
}
|
|
407
|
+
static detectCircularDependsOn(workflows) {
|
|
408
|
+
for (const entry of workflows) {
|
|
409
|
+
if (entry['depends-on'] === undefined || entry['depends-on'].length === 0) {
|
|
410
|
+
continue;
|
|
411
|
+
}
|
|
412
|
+
const entryKey = (entry['suffix'] !== undefined) ? `${entry['template']}-${entry['suffix']}` : entry['template'];
|
|
413
|
+
const visited = new Set();
|
|
414
|
+
visited.add(entryKey);
|
|
415
|
+
const queue = [...entry['depends-on']];
|
|
416
|
+
while (queue.length > 0) {
|
|
417
|
+
const currentId = queue.shift();
|
|
418
|
+
if (visited.has(currentId) === true) {
|
|
419
|
+
return true;
|
|
420
|
+
}
|
|
421
|
+
visited.add(currentId);
|
|
422
|
+
const currentEntry = workflows.find((w) => {
|
|
423
|
+
const key = (w['suffix'] !== undefined) ? `${w['template']}-${w['suffix']}` : w['template'];
|
|
424
|
+
return key === currentId;
|
|
425
|
+
});
|
|
426
|
+
if (currentEntry !== undefined && currentEntry['depends-on'] !== undefined) {
|
|
427
|
+
for (const dep of currentEntry['depends-on']) {
|
|
428
|
+
queue.push(dep);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
return false;
|
|
434
|
+
}
|
|
435
|
+
static substituteVariables(content, variables, settings) {
|
|
436
|
+
let result = content;
|
|
437
|
+
for (const variableEntry of Object.entries(variables)) {
|
|
438
|
+
const variableName = variableEntry[0];
|
|
439
|
+
const variableMeta = variableEntry[1];
|
|
440
|
+
const regex = new RegExp(`\\$\\{\\{\\s*(?:secrets|vars)\\.${variableName}\\s*\\}\\}`, 'g');
|
|
441
|
+
const settingValue = (settings !== undefined && settings[variableName] !== undefined) ? settings[variableName] : undefined;
|
|
442
|
+
if (variableMeta['format'] === 'secret') {
|
|
443
|
+
const resolvedName = settingValue
|
|
444
|
+
?? variableMeta['default']
|
|
445
|
+
?? variableName;
|
|
446
|
+
const replacement = `\${{ secrets.${resolvedName} }}`;
|
|
447
|
+
result = result.replace(regex, replacement);
|
|
448
|
+
}
|
|
449
|
+
if (variableMeta['format'] === 'var') {
|
|
450
|
+
const resolvedName = settingValue
|
|
451
|
+
?? variableMeta['default']
|
|
452
|
+
?? variableName;
|
|
453
|
+
const replacement = `\${{ vars.${resolvedName} }}`;
|
|
454
|
+
result = result.replace(regex, replacement);
|
|
455
|
+
}
|
|
456
|
+
if (variableMeta['format'] === 'literal') {
|
|
457
|
+
const replacement = (settingValue ?? '').replaceAll('\n', '\\n');
|
|
458
|
+
result = result.replace(regex, replacement);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
return result;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
//# sourceMappingURL=workflows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../../../../src/cli/generate/github/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,SAAS,IAAI,aAAa,GAC3B,MAAM,MAAM,CAAC;AAEd,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EACL,6CAA6C,EAC7C,4CAA4C,EAC5C,8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AC9C,CAAC;YAED,IAAI,YAAY,CAAC,QAAQ,CAAC,KAAK,KAAK,EAAE,CAAC;gBACrC,MAAM,YAAY,GAA8D,YAAY;uBACvF,YAAY,CAAC,SAAS,CAAC;uBACvB,YAAY,CAAC;gBAClB,MAAM,WAAW,GAA6D,aAAa,YAAY,KAAK,CAAC;gBAE7G,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;YAC9C,CAAC;YAED,IAAI,YAAY,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE,CAAC;gBACzC,MAAM,WAAW,GAA6D,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAE3H,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;YAC9C,CAAC;QACH,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CliGenerateMustHavesAgentConventionsRunOptions, CliGenerateMustHavesAgentConventionsRunReturns } from '../../../types/cli/generate/must-haves/agent-conventions.d.ts';
|
|
2
|
+
export declare class CliGenerateMustHavesAgentConventions {
|
|
3
|
+
static run(options: CliGenerateMustHavesAgentConventionsRunOptions): CliGenerateMustHavesAgentConventionsRunReturns;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=agent-conventions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-conventions.d.ts","sourceRoot":"","sources":["../../../../../src/cli/generate/must-haves/agent-conventions.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EASV,8CAA8C,EAE9C,8CAA8C,EAM/C,MAAM,+DAA+D,CAAC;AAUvE,qBAAa,oCAAoC;WAa3B,GAAG,CAAC,OAAO,EAAE,8CAA8C,GAAG,8CAA8C;CAgIjI"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { promises as fs } from 'fs';
|
|
2
|
+
import { join } from 'path';
|
|
3
|
+
import chalk from 'chalk';
|
|
4
|
+
import { isFileIdentical, isProjectRoot, pathExists, resolveTemplatePath, saveGeneratedFile, } from '../../../lib/utility.js';
|
|
5
|
+
import { Logger } from '../../../toolkit/index.js';
|
|
6
|
+
export class CliGenerateMustHavesAgentConventions {
|
|
7
|
+
static async run(options) {
|
|
8
|
+
const currentDirectory = process.cwd();
|
|
9
|
+
const isAtProjectRoot = await isProjectRoot(currentDirectory);
|
|
10
|
+
if (isAtProjectRoot !== true) {
|
|
11
|
+
process.exitCode = 1;
|
|
12
|
+
return 'cancelled';
|
|
13
|
+
}
|
|
14
|
+
const isDryRun = options['dryRun'] === true;
|
|
15
|
+
const isReplaceFile = options['replaceFile'] === true;
|
|
16
|
+
if (isDryRun === true) {
|
|
17
|
+
Logger.customize({
|
|
18
|
+
name: 'CliGenerateMustHavesAgentConventions.run',
|
|
19
|
+
purpose: 'options',
|
|
20
|
+
}).warn('Dry run enabled. File changes will not be made in this session.');
|
|
21
|
+
}
|
|
22
|
+
if (isReplaceFile === true) {
|
|
23
|
+
const replaceFileNotice = (isDryRun === true) ? 'This option has no effect during a dry run session.' : 'Backup file will not be created.';
|
|
24
|
+
Logger.customize({
|
|
25
|
+
name: 'CliGenerateMustHavesAgentConventions.run',
|
|
26
|
+
purpose: 'options',
|
|
27
|
+
}).warn(`Replace file enabled. ${replaceFileNotice}`);
|
|
28
|
+
}
|
|
29
|
+
const templateDirectory = resolveTemplatePath(import.meta.url, 'generators/must-haves/agent-conventions');
|
|
30
|
+
const rootFiles = [
|
|
31
|
+
'.cursorrules',
|
|
32
|
+
'AGENTS.md',
|
|
33
|
+
'CLAUDE.md',
|
|
34
|
+
'VISION.md',
|
|
35
|
+
'PROJECT_RULES.md',
|
|
36
|
+
];
|
|
37
|
+
const userEditedFiles = new Set([
|
|
38
|
+
'VISION.md',
|
|
39
|
+
'PROJECT_RULES.md',
|
|
40
|
+
]);
|
|
41
|
+
const conventionFiles = [
|
|
42
|
+
'csharp.md',
|
|
43
|
+
'css.md',
|
|
44
|
+
'docker.md',
|
|
45
|
+
'documentation.md',
|
|
46
|
+
'java.md',
|
|
47
|
+
'kotlin.md',
|
|
48
|
+
'php.md',
|
|
49
|
+
'python.md',
|
|
50
|
+
'shell.md',
|
|
51
|
+
'swift.md',
|
|
52
|
+
'typescript.md',
|
|
53
|
+
'universal.md',
|
|
54
|
+
];
|
|
55
|
+
for (const rootFile of rootFiles) {
|
|
56
|
+
const templatePath = join(templateDirectory, rootFile);
|
|
57
|
+
const targetPath = join(currentDirectory, rootFile);
|
|
58
|
+
if (isDryRun === true) {
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
try {
|
|
62
|
+
const content = await fs.readFile(templatePath, 'utf-8');
|
|
63
|
+
if (userEditedFiles.has(rootFile) === true
|
|
64
|
+
&& await pathExists(targetPath) === true
|
|
65
|
+
&& (await isFileIdentical(targetPath, content)) === false) {
|
|
66
|
+
Logger.customize({
|
|
67
|
+
name: 'CliGenerateMustHavesAgentConventions.run',
|
|
68
|
+
purpose: 'skip',
|
|
69
|
+
}).warn(`${chalk.cyan(`"${rootFile}"`)} has been customized. Skipping.`);
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
await saveGeneratedFile(targetPath, content, isReplaceFile);
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
Logger.customize({
|
|
76
|
+
name: 'CliGenerateMustHavesAgentConventions.run',
|
|
77
|
+
purpose: 'error',
|
|
78
|
+
}).error(`Failed to generate ${chalk.cyan(`"${rootFile}"`)}.`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
for (const conventionFile of conventionFiles) {
|
|
82
|
+
const templatePath = join(templateDirectory, 'conventions', conventionFile);
|
|
83
|
+
const targetPath = join(currentDirectory, 'conventions', conventionFile);
|
|
84
|
+
const displayPath = `conventions/${conventionFile}`;
|
|
85
|
+
if (isDryRun === true) {
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
try {
|
|
89
|
+
const content = await fs.readFile(templatePath, 'utf-8');
|
|
90
|
+
await saveGeneratedFile(targetPath, content, isReplaceFile);
|
|
91
|
+
}
|
|
92
|
+
catch {
|
|
93
|
+
Logger.customize({
|
|
94
|
+
name: 'CliGenerateMustHavesAgentConventions.run',
|
|
95
|
+
purpose: 'error',
|
|
96
|
+
}).error(`Failed to generate ${chalk.cyan(`"${displayPath}"`)}.`);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
const nextStepsMessage = [
|
|
100
|
+
`Fill out ${chalk.cyan('VISION.md')} and ${chalk.cyan('PROJECT_RULES.md')} to complete your agent conventions setup.`,
|
|
101
|
+
'',
|
|
102
|
+
'For the full workshop guide, visit:',
|
|
103
|
+
'https://nova.cbnventures.io/docs/cli/generators/must-haves/agent-conventions#vision-and-rules-workshop',
|
|
104
|
+
].join('\n');
|
|
105
|
+
Logger.customize({
|
|
106
|
+
name: 'CliGenerateMustHavesAgentConventions.run',
|
|
107
|
+
purpose: 'next-steps',
|
|
108
|
+
padTop: 1,
|
|
109
|
+
padBottom: 1,
|
|
110
|
+
}).info(nextStepsMessage);
|
|
111
|
+
return 'completed';
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=agent-conventions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-conventions.js","sourceRoot":"","sources":["../../../../../src/cli/generate/must-haves/agent-conventions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,eAAe,EACf,aAAa,EACb,UAAU,EACV,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EA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ACrB,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CliGenerateMustHavesDotenvRunOptions, CliGenerateMustHavesDotenvRunReturns } from '../../../types/cli/generate/must-haves/dotenv.d.ts';
|
|
2
|
+
export declare class CliGenerateMustHavesDotenv {
|
|
3
|
+
static run(options: CliGenerateMustHavesDotenvRunOptions): CliGenerateMustHavesDotenvRunReturns;
|
|
4
|
+
private static promptRegenerate;
|
|
5
|
+
private static parseEnvFile;
|
|
6
|
+
private static updateEnvLine;
|
|
7
|
+
private static deleteEnvLine;
|
|
8
|
+
private static addEnvLine;
|
|
9
|
+
private static promptManageMenu;
|
|
10
|
+
private static promptWithCancel;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=dotenv.d.ts.map
|