create-typescript-app 1.79.0 → 1.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/create/createRerunDirectorySuggestion.d.ts +7 -0
- package/lib/create/createRerunDirectorySuggestion.js +8 -0
- package/lib/create/createRerunDirectorySuggestion.js.map +1 -0
- package/lib/create/createRerunSuggestion.js +3 -1
- package/lib/create/createRerunSuggestion.js.map +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/next/base.d.ts +6 -0
- package/lib/next/base.js +5 -2
- package/lib/next/base.js.map +1 -1
- package/lib/next/blocks/blockAllContributors.d.ts +2 -0
- package/lib/next/blocks/blockAreTheTypesWrong.d.ts +2 -0
- package/lib/next/blocks/blockCSpell.d.ts +2 -0
- package/lib/next/blocks/blockContributingDocs.d.ts +2 -0
- package/lib/next/blocks/blockContributorCovenant.d.ts +2 -0
- package/lib/next/blocks/blockDevelopmentDocs.d.ts +2 -0
- package/lib/next/blocks/blockESLint.d.ts +2 -0
- package/lib/next/blocks/blockESLintComments.d.ts +2 -0
- package/lib/next/blocks/blockESLintJSDoc.d.ts +2 -0
- package/lib/next/blocks/blockESLintJSONC.d.ts +2 -0
- package/lib/next/blocks/blockESLintMarkdown.d.ts +2 -0
- package/lib/next/blocks/blockESLintMoreStyling.d.ts +2 -0
- package/lib/next/blocks/blockESLintNode.d.ts +2 -0
- package/lib/next/blocks/blockESLintPackageJson.d.ts +2 -0
- package/lib/next/blocks/blockESLintPerfectionist.d.ts +2 -0
- package/lib/next/blocks/blockESLintRegexp.d.ts +2 -0
- package/lib/next/blocks/blockESLintYML.d.ts +2 -0
- package/lib/next/blocks/blockExampleFiles.d.ts +2 -0
- package/lib/next/blocks/blockFunding.d.ts +2 -0
- package/lib/next/blocks/blockGitHubActionsCI.d.ts +2 -0
- package/lib/next/blocks/blockGitHubApps.d.ts +2 -0
- package/lib/next/blocks/blockGitHubIssueTemplates.d.ts +2 -0
- package/lib/next/blocks/blockGitHubPRTemplate.d.ts +2 -0
- package/lib/next/blocks/blockGitignore.d.ts +2 -0
- package/lib/next/blocks/blockKnip.d.ts +2 -0
- package/lib/next/blocks/blockMITLicense.d.ts +2 -0
- package/lib/next/blocks/blockMarkdownlint.d.ts +2 -0
- package/lib/next/blocks/blockNvmrc.d.ts +2 -0
- package/lib/next/blocks/blockPRCompliance.d.ts +2 -0
- package/lib/next/blocks/blockPackageJson.d.ts +2 -0
- package/lib/next/blocks/blockPnpmDedupe.d.ts +2 -0
- package/lib/next/blocks/blockPrettier.d.ts +2 -0
- package/lib/next/blocks/blockPrettierPluginCurly.d.ts +2 -0
- package/lib/next/blocks/blockPrettierPluginPackageJson.d.ts +2 -0
- package/lib/next/blocks/blockPrettierPluginSh.d.ts +2 -0
- package/lib/next/blocks/blockREADME.d.ts +2 -0
- package/lib/next/blocks/blockREADME.js +5 -1
- package/lib/next/blocks/blockREADME.js.map +1 -1
- package/lib/next/blocks/blockReleaseIt.d.ts +2 -0
- package/lib/next/blocks/blockRenovate.d.ts +2 -0
- package/lib/next/blocks/blockRepositoryBranchRuleset.d.ts +2 -0
- package/lib/next/blocks/blockRepositoryLabels.d.ts +2 -0
- package/lib/next/blocks/blockRepositorySecrets.d.ts +2 -0
- package/lib/next/blocks/blockRepositorySettings.d.ts +2 -0
- package/lib/next/blocks/blockSecurityDocs.d.ts +2 -0
- package/lib/next/blocks/blockTSup.d.ts +2 -0
- package/lib/next/blocks/blockTemplatedBy.d.ts +2 -0
- package/lib/next/blocks/blockTypeScript.d.ts +2 -0
- package/lib/next/blocks/blockVSCode.d.ts +2 -0
- package/lib/next/blocks/blockVitest.d.ts +2 -0
- package/lib/next/blocks/packageData.js +2 -7
- package/lib/next/blocks/packageData.js.map +1 -1
- package/lib/next/blocks/sourcePackageJson.d.ts +162 -0
- package/lib/next/blocks/sourcePackageJson.js +10 -0
- package/lib/next/blocks/sourcePackageJson.js.map +1 -0
- package/lib/next/presets/index.d.ts +5 -0
- package/lib/next/presets/index.js +4 -0
- package/lib/next/presets/index.js.map +1 -0
- package/lib/next/{presetCommon.d.ts → presets/presetCommon.d.ts} +6 -0
- package/lib/next/{presetCommon.js → presets/presetCommon.js} +4 -4
- package/lib/next/presets/presetCommon.js.map +1 -0
- package/lib/next/{presetEverything.d.ts → presets/presetEverything.d.ts} +6 -0
- package/lib/next/presets/presetEverything.js +59 -0
- package/lib/next/presets/presetEverything.js.map +1 -0
- package/lib/next/{presetMinimal.d.ts → presets/presetMinimal.d.ts} +6 -0
- package/lib/next/presets/presetMinimal.js +57 -0
- package/lib/next/presets/presetMinimal.js.map +1 -0
- package/lib/next/readDescription.d.ts +7 -0
- package/lib/next/readDescription.js +10 -0
- package/lib/next/readDescription.js.map +1 -0
- package/lib/next/runCreateEnginePreset.js +3 -3
- package/lib/next/runCreateEnginePreset.js.map +1 -1
- package/lib/next/template.d.ts +6 -0
- package/lib/next/template.js +3 -3
- package/lib/next/template.js.map +1 -1
- package/lib/shared/options/args.d.ts +14 -2
- package/lib/shared/options/args.js +18 -2
- package/lib/shared/options/args.js.map +1 -1
- package/lib/shared/options/createOptionDefaults/index.d.ts +2 -0
- package/lib/shared/options/createOptionDefaults/index.js +2 -1
- package/lib/shared/options/createOptionDefaults/index.js.map +1 -1
- package/lib/shared/options/createOptionDefaults/readDefaultsFromReadme.d.ts +2 -0
- package/lib/shared/options/createOptionDefaults/readDefaultsFromReadme.js +3 -1
- package/lib/shared/options/createOptionDefaults/readDefaultsFromReadme.js.map +1 -1
- package/lib/shared/options/exclusionKeys.js +3 -3
- package/lib/shared/options/exclusionKeys.js.map +1 -1
- package/lib/shared/options/logInferredOptions.js +6 -0
- package/lib/shared/options/logInferredOptions.js.map +1 -1
- package/lib/shared/options/optionsSchema.d.ts +8 -8
- package/lib/shared/options/optionsSchema.js +1 -1
- package/lib/shared/options/optionsSchema.js.map +1 -1
- package/lib/shared/options/readLogoSizing.d.ts +7 -0
- package/lib/shared/options/readLogoSizing.js +29 -0
- package/lib/shared/options/readLogoSizing.js.map +1 -0
- package/lib/shared/options/readOptions.js +3 -1
- package/lib/shared/options/readOptions.js.map +1 -1
- package/lib/shared/types.d.ts +3 -1
- package/lib/steps/finalizeDependencies.js +1 -1
- package/lib/steps/finalizeDependencies.js.map +1 -1
- package/lib/steps/uninstallPackages.js +1 -0
- package/lib/steps/uninstallPackages.js.map +1 -1
- package/lib/steps/updateReadme.js +1 -1
- package/lib/steps/updateReadme.js.map +1 -1
- package/lib/steps/writing/creation/createESLintConfig.js +2 -2
- package/lib/steps/writing/creation/createESLintConfig.js.map +1 -1
- package/lib/steps/writing/creation/index.js +3 -3
- package/lib/steps/writing/creation/index.js.map +1 -1
- package/package.json +3 -2
- package/lib/next/presetCommon.js.map +0 -1
- package/lib/next/presetEverything.js +0 -59
- package/lib/next/presetEverything.js.map +0 -1
- package/lib/next/presetMinimal.js +0 -57
- package/lib/next/presetMinimal.js.map +0 -1
|
@@ -29,7 +29,7 @@ async function finalizeDependencies(options) {
|
|
|
29
29
|
],
|
|
30
30
|
...options.excludeLintPackageJson ? [] : ["eslint-plugin-package-json"],
|
|
31
31
|
...options.excludeLintPerfectionist ? [] : ["eslint-plugin-perfectionist"],
|
|
32
|
-
...options.
|
|
32
|
+
...options.excludeLintRegexp ? [] : ["eslint-plugin-regexp"],
|
|
33
33
|
...options.excludeLintSpelling ? [] : ["cspell"],
|
|
34
34
|
...options.excludeLintYml ? [] : ["eslint-plugin-yml"],
|
|
35
35
|
...options.excludeReleases ? [] : ["@release-it/conventional-changelog", "release-it"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/steps/finalizeDependencies.ts"],"sourcesContent":["import { execaCommand } from \"execa\";\n\nimport { readPackageData, removeDependencies } from \"../shared/packages.js\";\nimport { Options } from \"../shared/types.js\";\n\nexport async function finalizeDependencies(options: Options) {\n\tconst devDependencies = [\n\t\t\"@eslint/js\",\n\t\t\"@types/node\",\n\t\t\"eslint-plugin-n\",\n\t\t\"eslint\",\n\t\t\"husky\",\n\t\t\"lint-staged\",\n\t\t\"prettier-plugin-curly\",\n\t\t\"prettier-plugin-packagejson\",\n\t\t\"prettier-plugin-sh\",\n\t\t\"prettier\",\n\t\t\"tsup\",\n\t\t\"typescript-eslint\",\n\t\t\"typescript\",\n\t\t...(options.excludeAllContributors ? [] : [\"all-contributors-cli\"]),\n\t\t...(options.excludeLintESLint\n\t\t\t? []\n\t\t\t: [\"@eslint-community/eslint-plugin-eslint-comments\"]),\n\t\t...(options.excludeLintJSDoc ? [] : [\"eslint-plugin-jsdoc\"]),\n\t\t...(options.excludeLintJson ? [] : [\"eslint-plugin-jsonc\"]),\n\t\t...(options.excludeLintKnip ? [] : [\"knip\"]),\n\t\t...(options.excludeLintMd\n\t\t\t? []\n\t\t\t: [\n\t\t\t\t\t\"@types/eslint-plugin-markdown\",\n\t\t\t\t\t\"eslint-plugin-markdown\",\n\t\t\t\t\t\"markdownlint\",\n\t\t\t\t\t\"markdownlint-cli\",\n\t\t\t\t\t\"sentences-per-line\",\n\t\t\t\t]),\n\t\t...(options.excludeLintPackageJson ? [] : [\"eslint-plugin-package-json\"]),\n\t\t...(options.excludeLintPerfectionist\n\t\t\t? []\n\t\t\t: [\"eslint-plugin-perfectionist\"]),\n\t\t...(options.
|
|
1
|
+
{"version":3,"sources":["../../src/steps/finalizeDependencies.ts"],"sourcesContent":["import { execaCommand } from \"execa\";\n\nimport { readPackageData, removeDependencies } from \"../shared/packages.js\";\nimport { Options } from \"../shared/types.js\";\n\nexport async function finalizeDependencies(options: Options) {\n\tconst devDependencies = [\n\t\t\"@eslint/js\",\n\t\t\"@types/node\",\n\t\t\"eslint-plugin-n\",\n\t\t\"eslint\",\n\t\t\"husky\",\n\t\t\"lint-staged\",\n\t\t\"prettier-plugin-curly\",\n\t\t\"prettier-plugin-packagejson\",\n\t\t\"prettier-plugin-sh\",\n\t\t\"prettier\",\n\t\t\"tsup\",\n\t\t\"typescript-eslint\",\n\t\t\"typescript\",\n\t\t...(options.excludeAllContributors ? [] : [\"all-contributors-cli\"]),\n\t\t...(options.excludeLintESLint\n\t\t\t? []\n\t\t\t: [\"@eslint-community/eslint-plugin-eslint-comments\"]),\n\t\t...(options.excludeLintJSDoc ? [] : [\"eslint-plugin-jsdoc\"]),\n\t\t...(options.excludeLintJson ? [] : [\"eslint-plugin-jsonc\"]),\n\t\t...(options.excludeLintKnip ? [] : [\"knip\"]),\n\t\t...(options.excludeLintMd\n\t\t\t? []\n\t\t\t: [\n\t\t\t\t\t\"@types/eslint-plugin-markdown\",\n\t\t\t\t\t\"eslint-plugin-markdown\",\n\t\t\t\t\t\"markdownlint\",\n\t\t\t\t\t\"markdownlint-cli\",\n\t\t\t\t\t\"sentences-per-line\",\n\t\t\t\t]),\n\t\t...(options.excludeLintPackageJson ? [] : [\"eslint-plugin-package-json\"]),\n\t\t...(options.excludeLintPerfectionist\n\t\t\t? []\n\t\t\t: [\"eslint-plugin-perfectionist\"]),\n\t\t...(options.excludeLintRegexp ? [] : [\"eslint-plugin-regexp\"]),\n\t\t...(options.excludeLintSpelling ? [] : [\"cspell\"]),\n\t\t...(options.excludeLintYml ? [] : [\"eslint-plugin-yml\"]),\n\t\t...(options.excludeReleases\n\t\t\t? []\n\t\t\t: [\"@release-it/conventional-changelog\", \"release-it\"]),\n\t\t...(options.excludeTests\n\t\t\t? []\n\t\t\t: [\n\t\t\t\t\t\"@vitest/coverage-v8\",\n\t\t\t\t\t\"@vitest/eslint-plugin\",\n\t\t\t\t\t\"console-fail-test\",\n\t\t\t\t\t\"vitest\",\n\t\t\t\t]),\n\t]\n\t\t.filter(Boolean)\n\t\t.sort()\n\t\t.map((packageName) => `${packageName}@latest`)\n\t\t.join(\" \");\n\n\tawait execaCommand(\n\t\t`pnpm add ${devDependencies} -D${options.offline ? \" --offline\" : \"\"}`,\n\t);\n\n\tif (!options.excludeAllContributors) {\n\t\tawait execaCommand(`npx all-contributors-cli generate`);\n\t\tawait removeDependencies(\n\t\t\t[\"all-contributors-cli\"],\n\t\t\t(await readPackageData()).devDependencies,\n\t\t\t\"-D\",\n\t\t);\n\t}\n\n\tawait execaCommand(`pnpm dedupe --offline`);\n}\n"],"mappings":"AAAA,SAAS,oBAAoB;AAE7B,SAAS,iBAAiB,0BAA0B;AAGpD,eAAsB,qBAAqB,SAAkB;AAC5D,QAAM,kBAAkB;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAI,QAAQ,yBAAyB,CAAC,IAAI,CAAC,sBAAsB;AAAA,IACjE,GAAI,QAAQ,oBACT,CAAC,IACD,CAAC,iDAAiD;AAAA,IACrD,GAAI,QAAQ,mBAAmB,CAAC,IAAI,CAAC,qBAAqB;AAAA,IAC1D,GAAI,QAAQ,kBAAkB,CAAC,IAAI,CAAC,qBAAqB;AAAA,IACzD,GAAI,QAAQ,kBAAkB,CAAC,IAAI,CAAC,MAAM;AAAA,IAC1C,GAAI,QAAQ,gBACT,CAAC,IACD;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IACF,GAAI,QAAQ,yBAAyB,CAAC,IAAI,CAAC,4BAA4B;AAAA,IACvE,GAAI,QAAQ,2BACT,CAAC,IACD,CAAC,6BAA6B;AAAA,IACjC,GAAI,QAAQ,oBAAoB,CAAC,IAAI,CAAC,sBAAsB;AAAA,IAC5D,GAAI,QAAQ,sBAAsB,CAAC,IAAI,CAAC,QAAQ;AAAA,IAChD,GAAI,QAAQ,iBAAiB,CAAC,IAAI,CAAC,mBAAmB;AAAA,IACtD,GAAI,QAAQ,kBACT,CAAC,IACD,CAAC,sCAAsC,YAAY;AAAA,IACtD,GAAI,QAAQ,eACT,CAAC,IACD;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,EACH,EACE,OAAO,OAAO,EACd,KAAK,EACL,IAAI,CAAC,gBAAgB,GAAG,WAAW,SAAS,EAC5C,KAAK,GAAG;AAEV,QAAM;AAAA,IACL,YAAY,eAAe,MAAM,QAAQ,UAAU,eAAe,EAAE;AAAA,EACrE;AAEA,MAAI,CAAC,QAAQ,wBAAwB;AACpC,UAAM,aAAa,mCAAmC;AACtD,UAAM;AAAA,MACL,CAAC,sBAAsB;AAAA,OACtB,MAAM,gBAAgB,GAAG;AAAA,MAC1B;AAAA,IACD;AAAA,EACD;AAEA,QAAM,aAAa,uBAAuB;AAC3C;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/steps/uninstallPackages.ts"],"sourcesContent":["import { $ } from \"execa\";\n\nimport { readPackageData, removeDependencies } from \"../shared/packages.js\";\n\nexport async function uninstallPackages(offline: boolean | undefined) {\n\tconst packageData = await readPackageData();\n\n\tawait removeDependencies(\n\t\t[\n\t\t\t\"@clack/prompts\",\n\t\t\t\"@prettier/sync\",\n\t\t\t\"all-contributors-cli\",\n\t\t\t\"chalk\",\n\t\t\t\"create\",\n\t\t\t\"cspell-populate-words\",\n\t\t\t\"execa\",\n\t\t\t\"git-remote-origin-url\",\n\t\t\t\"git-url-parse\",\n\t\t\t\"input-from-file\",\n\t\t\t\"input-from-file-json\",\n\t\t\t\"input-from-script\",\n\t\t\t\"js-yaml\",\n\t\t\t\"lazy-value\",\n\t\t\t\"npm-user\",\n\t\t\t\"object-strings-deep\",\n\t\t\t\"octokit\",\n\t\t\t\"octokit-from-auth\",\n\t\t\t\"parse-author\",\n\t\t\t\"parse-package-name\",\n\t\t\t\"populate-all-contributors-for-repository\",\n\t\t\t\"prettier\",\n\t\t\t\"remove-undefined-objects\",\n\t\t\t\"replace-in-file\",\n\t\t\t\"rimraf\",\n\t\t\t\"set-github-repository-labels\",\n\t\t\t\"sort-package-json\",\n\t\t\t\"title-case\",\n\t\t\t\"zod\",\n\t\t\t\"zod-validation-error\",\n\t\t],\n\t\tpackageData.dependencies,\n\t);\n\n\tawait removeDependencies(\n\t\t[\n\t\t\t\"@octokit/request-error\",\n\t\t\t\"@types/git-url-parse\",\n\t\t\t\"@types/js-yaml\",\n\t\t\t\"@types/parse-author\",\n\t\t\t\"all-contributors-cli\",\n\t\t\t\"c8\",\n\t\t\t\"create-testers\",\n\t\t\t\"eslint-config-prettier\",\n\t\t\t\"globby\",\n\t\t\t\"tsx\",\n\t\t],\n\t\tpackageData.devDependencies,\n\t\t\"-D\",\n\t);\n\n\tawait $`pnpm add prettier -D${offline ? \" --offline\" : \"\"}`;\n}\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,iBAAiB,0BAA0B;AAEpD,eAAsB,kBAAkB,SAA8B;AACrE,QAAM,cAAc,MAAM,gBAAgB;AAE1C,QAAM;AAAA,IACL;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IACA,YAAY;AAAA,EACb;AAEA,QAAM;AAAA,IACL;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,EACD;AAEA,QAAM,wBAAwB,UAAU,eAAe,EAAE;AAC1D;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/steps/uninstallPackages.ts"],"sourcesContent":["import { $ } from \"execa\";\n\nimport { readPackageData, removeDependencies } from \"../shared/packages.js\";\n\nexport async function uninstallPackages(offline: boolean | undefined) {\n\tconst packageData = await readPackageData();\n\n\tawait removeDependencies(\n\t\t[\n\t\t\t\"@clack/prompts\",\n\t\t\t\"@prettier/sync\",\n\t\t\t\"all-contributors-cli\",\n\t\t\t\"chalk\",\n\t\t\t\"create\",\n\t\t\t\"cspell-populate-words\",\n\t\t\t\"execa\",\n\t\t\t\"git-remote-origin-url\",\n\t\t\t\"git-url-parse\",\n\t\t\t\"image-size\",\n\t\t\t\"input-from-file\",\n\t\t\t\"input-from-file-json\",\n\t\t\t\"input-from-script\",\n\t\t\t\"js-yaml\",\n\t\t\t\"lazy-value\",\n\t\t\t\"npm-user\",\n\t\t\t\"object-strings-deep\",\n\t\t\t\"octokit\",\n\t\t\t\"octokit-from-auth\",\n\t\t\t\"parse-author\",\n\t\t\t\"parse-package-name\",\n\t\t\t\"populate-all-contributors-for-repository\",\n\t\t\t\"prettier\",\n\t\t\t\"remove-undefined-objects\",\n\t\t\t\"replace-in-file\",\n\t\t\t\"rimraf\",\n\t\t\t\"set-github-repository-labels\",\n\t\t\t\"sort-package-json\",\n\t\t\t\"title-case\",\n\t\t\t\"zod\",\n\t\t\t\"zod-validation-error\",\n\t\t],\n\t\tpackageData.dependencies,\n\t);\n\n\tawait removeDependencies(\n\t\t[\n\t\t\t\"@octokit/request-error\",\n\t\t\t\"@types/git-url-parse\",\n\t\t\t\"@types/js-yaml\",\n\t\t\t\"@types/parse-author\",\n\t\t\t\"all-contributors-cli\",\n\t\t\t\"c8\",\n\t\t\t\"create-testers\",\n\t\t\t\"eslint-config-prettier\",\n\t\t\t\"globby\",\n\t\t\t\"tsx\",\n\t\t],\n\t\tpackageData.devDependencies,\n\t\t\"-D\",\n\t);\n\n\tawait $`pnpm add prettier -D${offline ? \" --offline\" : \"\"}`;\n}\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,iBAAiB,0BAA0B;AAEpD,eAAsB,kBAAkB,SAA8B;AACrE,QAAM,cAAc,MAAM,gBAAgB;AAE1C,QAAM;AAAA,IACL;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IACA,YAAY;AAAA,EACb;AAEA,QAAM;AAAA,IACL;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,EACD;AAEA,QAAM,wBAAwB,UAAU,eAAe,EAAE;AAC1D;","names":[]}
|
|
@@ -12,7 +12,7 @@ const endOfReadmeNotice = [
|
|
|
12
12
|
const endOfReadmeMatcher = /💙.+(?:based|built|templated).+(?:from|using|on|with).+create-typescript-app/;
|
|
13
13
|
async function updateReadme(options) {
|
|
14
14
|
let contents = await readFileSafe("./README.md", "");
|
|
15
|
-
contents = contents.replaceAll("JoshuaKGoldberg", options.owner);
|
|
15
|
+
contents = contents.replaceAll("JoshuaKGoldberg", options.owner).replace(/\n<img .+ alt="Project logo.+>\n/gs, "");
|
|
16
16
|
if (!options.excludeTemplatedBy && !endOfReadmeMatcher.test(contents)) {
|
|
17
17
|
contents += endOfReadmeNotice;
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/steps/updateReadme.ts"],"sourcesContent":["import * as fs from \"node:fs/promises\";\nimport { EOL } from \"node:os\";\n\nimport { readFileSafe } from \"../shared/readFileSafe.js\";\nimport { Options } from \"../shared/types.js\";\n\nexport const endOfReadmeTemplateLine = `> 💙 This package was templated with [\\`create-typescript-app\\`](https://github.com/JoshuaKGoldberg/create-typescript-app).`;\n\nexport const endOfReadmeNotice = [\n\t``,\n\t`<!-- You can remove this notice if you don't want it 🙂 no worries! -->`,\n\t``,\n\tendOfReadmeTemplateLine,\n\t``,\n].join(EOL);\n\nexport const endOfReadmeMatcher =\n\t/💙.+(?:based|built|templated).+(?:from|using|on|with).+create-typescript-app/;\n\nexport async function updateReadme(\n\toptions: Pick<Options, \"excludeTemplatedBy\" | \"owner\">,\n) {\n\tlet contents = await readFileSafe(\"./README.md\", \"\");\n\n\tcontents = contents.replaceAll(\"JoshuaKGoldberg\", options.owner);\n\n\tif (!options.excludeTemplatedBy && !endOfReadmeMatcher.test(contents)) {\n\t\tcontents += endOfReadmeNotice;\n\t}\n\n\tawait fs.writeFile(\"./README.md\", contents);\n}\n"],"mappings":"AAAA,YAAY,QAAQ;AACpB,SAAS,WAAW;AAEpB,SAAS,oBAAoB;AAGtB,MAAM,0BAA0B;AAEhC,MAAM,oBAAoB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,EAAE,KAAK,GAAG;AAEH,MAAM,qBACZ;AAED,eAAsB,aACrB,SACC;AACD,MAAI,WAAW,MAAM,aAAa,eAAe,EAAE;AAEnD,aAAW,
|
|
1
|
+
{"version":3,"sources":["../../src/steps/updateReadme.ts"],"sourcesContent":["import * as fs from \"node:fs/promises\";\nimport { EOL } from \"node:os\";\n\nimport { readFileSafe } from \"../shared/readFileSafe.js\";\nimport { Options } from \"../shared/types.js\";\n\nexport const endOfReadmeTemplateLine = `> 💙 This package was templated with [\\`create-typescript-app\\`](https://github.com/JoshuaKGoldberg/create-typescript-app).`;\n\nexport const endOfReadmeNotice = [\n\t``,\n\t`<!-- You can remove this notice if you don't want it 🙂 no worries! -->`,\n\t``,\n\tendOfReadmeTemplateLine,\n\t``,\n].join(EOL);\n\nexport const endOfReadmeMatcher =\n\t/💙.+(?:based|built|templated).+(?:from|using|on|with).+create-typescript-app/;\n\nexport async function updateReadme(\n\toptions: Pick<Options, \"excludeTemplatedBy\" | \"owner\">,\n) {\n\tlet contents = await readFileSafe(\"./README.md\", \"\");\n\n\tcontents = contents\n\t\t.replaceAll(\"JoshuaKGoldberg\", options.owner)\n\t\t.replace(/\\n<img .+ alt=\"Project logo.+>\\n/gs, \"\");\n\n\tif (!options.excludeTemplatedBy && !endOfReadmeMatcher.test(contents)) {\n\t\tcontents += endOfReadmeNotice;\n\t}\n\n\tawait fs.writeFile(\"./README.md\", contents);\n}\n"],"mappings":"AAAA,YAAY,QAAQ;AACpB,SAAS,WAAW;AAEpB,SAAS,oBAAoB;AAGtB,MAAM,0BAA0B;AAEhC,MAAM,oBAAoB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,EAAE,KAAK,GAAG;AAEH,MAAM,qBACZ;AAED,eAAsB,aACrB,SACC;AACD,MAAI,WAAW,MAAM,aAAa,eAAe,EAAE;AAEnD,aAAW,SACT,WAAW,mBAAmB,QAAQ,KAAK,EAC3C,QAAQ,sCAAsC,EAAE;AAElD,MAAI,CAAC,QAAQ,sBAAsB,CAAC,mBAAmB,KAAK,QAAQ,GAAG;AACtE,gBAAY;AAAA,EACb;AAEA,QAAM,GAAG,UAAU,eAAe,QAAQ;AAC3C;","names":[]}
|
|
@@ -11,7 +11,7 @@ async function createESLintConfig(options) {
|
|
|
11
11
|
`import n from "eslint-plugin-n";`,
|
|
12
12
|
!options.excludeLintPackageJson && `import packageJson from "eslint-plugin-package-json/configs/recommended";`,
|
|
13
13
|
!options.excludeLintPerfectionist && `import perfectionist from "eslint-plugin-perfectionist";`,
|
|
14
|
-
!options.
|
|
14
|
+
!options.excludeLintRegexp && `import * as regexp from "eslint-plugin-regexp";`,
|
|
15
15
|
!options.excludeLintYml && `import yml from "eslint-plugin-yml";`,
|
|
16
16
|
`import tseslint from "typescript-eslint";`
|
|
17
17
|
].filter(Boolean);
|
|
@@ -26,7 +26,7 @@ async function createESLintConfig(options) {
|
|
|
26
26
|
` n.configs["flat/recommended"],`,
|
|
27
27
|
!options.excludeLintPackageJson && ` packageJson,`,
|
|
28
28
|
!options.excludeLintPerfectionist && ` perfectionist.configs["recommended-natural"],`,
|
|
29
|
-
!options.
|
|
29
|
+
!options.excludeLintRegexp && ` regexp.configs["flat/recommended"],`
|
|
30
30
|
].filter(Boolean);
|
|
31
31
|
const ignores = [
|
|
32
32
|
...options.excludeTests ? [] : ["**/*.snap", "coverage"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/steps/writing/creation/createESLintConfig.ts"],"sourcesContent":["import { Options } from \"../../../shared/types.js\";\nimport { formatTypeScript } from \"./formatters/formatTypeScript.js\";\n\nexport async function createESLintConfig(options: Options) {\n\tconst tseslintBase = options.excludeLintStrict ? \"recommended\" : \"strict\";\n\n\tconst imports = [\n\t\t!options.excludeLintESLint &&\n\t\t\t`import comments from \"@eslint-community/eslint-plugin-eslint-comments/configs\";`,\n\t\t`import eslint from \"@eslint/js\";`,\n\t\t!options.excludeTests && `import vitest from \"@vitest/eslint-plugin\";`,\n\t\t!options.excludeLintJSDoc && `import jsdoc from \"eslint-plugin-jsdoc\";`,\n\t\t!options.excludeLintJson && `import jsonc from \"eslint-plugin-jsonc\";`,\n\t\t!options.excludeLintMd && `import markdown from \"eslint-plugin-markdown\";`,\n\t\t`import n from \"eslint-plugin-n\";`,\n\t\t!options.excludeLintPackageJson &&\n\t\t\t`import packageJson from \"eslint-plugin-package-json/configs/recommended\";`,\n\t\t!options.excludeLintPerfectionist &&\n\t\t\t`import perfectionist from \"eslint-plugin-perfectionist\";`,\n\t\t!options.
|
|
1
|
+
{"version":3,"sources":["../../../../src/steps/writing/creation/createESLintConfig.ts"],"sourcesContent":["import { Options } from \"../../../shared/types.js\";\nimport { formatTypeScript } from \"./formatters/formatTypeScript.js\";\n\nexport async function createESLintConfig(options: Options) {\n\tconst tseslintBase = options.excludeLintStrict ? \"recommended\" : \"strict\";\n\n\tconst imports = [\n\t\t!options.excludeLintESLint &&\n\t\t\t`import comments from \"@eslint-community/eslint-plugin-eslint-comments/configs\";`,\n\t\t`import eslint from \"@eslint/js\";`,\n\t\t!options.excludeTests && `import vitest from \"@vitest/eslint-plugin\";`,\n\t\t!options.excludeLintJSDoc && `import jsdoc from \"eslint-plugin-jsdoc\";`,\n\t\t!options.excludeLintJson && `import jsonc from \"eslint-plugin-jsonc\";`,\n\t\t!options.excludeLintMd && `import markdown from \"eslint-plugin-markdown\";`,\n\t\t`import n from \"eslint-plugin-n\";`,\n\t\t!options.excludeLintPackageJson &&\n\t\t\t`import packageJson from \"eslint-plugin-package-json/configs/recommended\";`,\n\t\t!options.excludeLintPerfectionist &&\n\t\t\t`import perfectionist from \"eslint-plugin-perfectionist\";`,\n\t\t!options.excludeLintRegexp &&\n\t\t\t`import * as regexp from \"eslint-plugin-regexp\";`,\n\t\t!options.excludeLintYml && `import yml from \"eslint-plugin-yml\";`,\n\t\t`import tseslint from \"typescript-eslint\";`,\n\t].filter(Boolean);\n\n\tconst elements = [\n\t\t`eslint.configs.recommended,`,\n\t\t!options.excludeLintESLint && `\tcomments.recommended,`,\n\t\t!options.excludeLintJSDoc &&\n\t\t\t`\tjsdoc.configs[\"flat/contents-typescript-error\"],\n\t\tjsdoc.configs[\"flat/logical-typescript-error\"],\n\t\tjsdoc.configs[\"flat/stylistic-typescript-error\"],`,\n\t\t!options.excludeLintJson && `\tjsonc.configs[\"flat/recommended-with-json\"],`,\n\t\t!options.excludeLintMd && `\tmarkdown.configs.recommended,`,\n\t\t`\tn.configs[\"flat/recommended\"],`,\n\t\t!options.excludeLintPackageJson && `\tpackageJson,`,\n\t\t!options.excludeLintPerfectionist &&\n\t\t\t`\tperfectionist.configs[\"recommended-natural\"],`,\n\t\t!options.excludeLintRegexp && `\tregexp.configs[\"flat/recommended\"],`,\n\t].filter(Boolean);\n\n\tconst ignores = [\n\t\t...(options.excludeTests ? [] : [\"**/*.snap\", \"coverage\"]),\n\t\t\"lib\",\n\t\t\"node_modules\",\n\t\t\"pnpm-lock.yaml\",\n\t]\n\t\t.map((ignore) => JSON.stringify(ignore))\n\t\t.sort();\n\n\tconst rules =\n\t\t!options.excludeLintStylistic &&\n\t\t`{\n\t\t\t// Stylistic concerns that don't interfere with Prettier\n\t\t\t\"logical-assignment-operators\": [\n\t\t\t\t\"error\",\n\t\t\t\t\"always\",\n\t\t\t\t{ enforceForIfStatements: true },\n\t\t\t],\n\t\t\t\"no-useless-rename\": \"error\",\n\t\t\t\"object-shorthand\": \"error\",\n\t\t\t\"operator-assignment\": \"error\",\n\t\t}`;\n\n\treturn await formatTypeScript(`${imports.join(\"\\n\")}\n\nexport default tseslint.config(\n\t{ ignores: [${ignores.join(\", \")}], },\n\t{ linterOptions: { reportUnusedDisableDirectives: \"error\" } },\n\t${elements.join(\"\\n\")}\n\t{\n\t\textends: ${\n\t\t\toptions.excludeLintStylistic\n\t\t\t\t? `tseslint.configs.${tseslintBase}TypeChecked`\n\t\t\t\t: `[\n\t\t\ttseslint.configs.${tseslintBase}TypeChecked,\n\t\t\ttseslint.configs.stylisticTypeChecked,\n\t\t]`\n\t\t},\n\t\tfiles: [\"**/*.js\", \"**/*.ts\"],\n\t\tlanguageOptions: {\n\t\t\tparserOptions: {\n\t\t\t\tprojectService: { allowDefaultProject: [\"*.config.*s\"] },\n\t\t\t\ttsconfigRootDir: import.meta.dirname\n\t\t\t},\n\t\t},${\n\t\t\trules\n\t\t\t\t? `\n\t\trules: ${rules},`\n\t\t\t\t: \"\"\n\t\t}${\n\t\t\toptions.excludeLintPerfectionist\n\t\t\t\t? \"\"\n\t\t\t\t: `\n\t\tsettings: { perfectionist: { partitionByComment: true, type: \"natural\" } },`\n\t\t}\n\t},\n\t{\n\t\textends: [tseslint.configs.disableTypeChecked],\n\t\tfiles: [\"**/*.md/*.ts\"],\n\t\trules: {\n\t\t\t\"n/no-missing-import\": [\n\t\t\t\t\"error\",\n\t\t\t\t{ allowModules: [\"${options.repository}\"] },\n\t\t\t],\n\t\t},\n\t},${\n\t\toptions.excludeTests\n\t\t\t? \"\"\n\t\t\t: `\n\t{\n\t\textends: [vitest.configs.recommended],\n\t\tfiles: [\"**/*.test.*\"],\n\t\trules: { \"@typescript-eslint/no-unsafe-assignment\": \"off\" },\n\t},`\n\t}${\n\t\toptions.excludeLintYml\n\t\t\t? \"\"\n\t\t\t: `\n\t{\n\t\textends: [yml.configs[\"flat/recommended\"], yml.configs[\"flat/prettier\"]],\n\t\tfiles: [\"**/*.{yml,yaml}\"],\n\t\trules: {\n\t\t\t\"yml/file-extension\": [\"error\", { extension: \"yml\" }],\n\t\t\t\"yml/sort-keys\": [\n\t\t\t\t\"error\",\n\t\t\t\t{ order: { type: \"asc\" }, pathPattern: \"^.*$\" },\n\t\t\t],\n\t\t\t\"yml/sort-sequence-values\": [\n\t\t\t\t\"error\",\n\t\t\t\t{ order: { type: \"asc\" }, pathPattern: \"^.*$\" },\n\t\t\t],\n\t\t},\n\t},`\n\t}\n);\n`);\n}\n"],"mappings":"AACA,SAAS,wBAAwB;AAEjC,eAAsB,mBAAmB,SAAkB;AAC1D,QAAM,eAAe,QAAQ,oBAAoB,gBAAgB;AAEjE,QAAM,UAAU;AAAA,IACf,CAAC,QAAQ,qBACR;AAAA,IACD;AAAA,IACA,CAAC,QAAQ,gBAAgB;AAAA,IACzB,CAAC,QAAQ,oBAAoB;AAAA,IAC7B,CAAC,QAAQ,mBAAmB;AAAA,IAC5B,CAAC,QAAQ,iBAAiB;AAAA,IAC1B;AAAA,IACA,CAAC,QAAQ,0BACR;AAAA,IACD,CAAC,QAAQ,4BACR;AAAA,IACD,CAAC,QAAQ,qBACR;AAAA,IACD,CAAC,QAAQ,kBAAkB;AAAA,IAC3B;AAAA,EACD,EAAE,OAAO,OAAO;AAEhB,QAAM,WAAW;AAAA,IAChB;AAAA,IACA,CAAC,QAAQ,qBAAqB;AAAA,IAC9B,CAAC,QAAQ,oBACR;AAAA;AAAA;AAAA,IAGD,CAAC,QAAQ,mBAAmB;AAAA,IAC5B,CAAC,QAAQ,iBAAiB;AAAA,IAC1B;AAAA,IACA,CAAC,QAAQ,0BAA0B;AAAA,IACnC,CAAC,QAAQ,4BACR;AAAA,IACD,CAAC,QAAQ,qBAAqB;AAAA,EAC/B,EAAE,OAAO,OAAO;AAEhB,QAAM,UAAU;AAAA,IACf,GAAI,QAAQ,eAAe,CAAC,IAAI,CAAC,aAAa,UAAU;AAAA,IACxD;AAAA,IACA;AAAA,IACA;AAAA,EACD,EACE,IAAI,CAAC,WAAW,KAAK,UAAU,MAAM,CAAC,EACtC,KAAK;AAEP,QAAM,QACL,CAAC,QAAQ,wBACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYD,SAAO,MAAM,iBAAiB,GAAG,QAAQ,KAAK,IAAI,CAAC;AAAA;AAAA;AAAA,eAGrC,QAAQ,KAAK,IAAI,CAAC;AAAA;AAAA,GAE9B,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,aAGnB,QAAQ,uBACL,oBAAoB,YAAY,gBAChC;AAAA,sBACgB,YAAY;AAAA;AAAA,IAGhC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAQC,QACG;AAAA,WACK,KAAK,MACV,EACJ,GACC,QAAQ,2BACL,KACA;AAAA,8EAEJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAQsB,QAAQ,UAAU;AAAA;AAAA;AAAA,KAIxC,QAAQ,eACL,KACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMJ,GACC,QAAQ,iBACL,KACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAgBJ;AAAA;AAAA,CAEA;AACD;","names":[]}
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
producePreset
|
|
4
4
|
} from "create";
|
|
5
5
|
import prettier from "prettier";
|
|
6
|
-
import { presetCommon } from "../../../next/presetCommon.js";
|
|
7
|
-
import { presetEverything } from "../../../next/presetEverything.js";
|
|
8
|
-
import { presetMinimal } from "../../../next/presetMinimal.js";
|
|
6
|
+
import { presetCommon } from "../../../next/presets/presetCommon.js";
|
|
7
|
+
import { presetEverything } from "../../../next/presets/presetEverything.js";
|
|
8
|
+
import { presetMinimal } from "../../../next/presets/presetMinimal.js";
|
|
9
9
|
import { createDotGitHub } from "./dotGitHub/index.js";
|
|
10
10
|
import { createDotHusky } from "./dotHusky.js";
|
|
11
11
|
import { createDotVSCode } from "./dotVSCode.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/steps/writing/creation/index.ts"],"sourcesContent":["import {\n\tCreatedFiles,\n\tproduceBase,\n\tproducePreset,\n\tSystemFetchers,\n} from \"create\";\nimport prettier from \"prettier\";\n\nimport { presetCommon } from \"../../../next/presetCommon.js\";\nimport { presetEverything } from \"../../../next/presetEverything.js\";\nimport { presetMinimal } from \"../../../next/presetMinimal.js\";\nimport { Options } from \"../../../shared/types.js\";\nimport { Structure } from \"../types.js\";\nimport { createDotGitHub } from \"./dotGitHub/index.js\";\nimport { createDotHusky } from \"./dotHusky.js\";\nimport { createDotVSCode } from \"./dotVSCode.js\";\nimport { createRootFiles } from \"./rootFiles.js\";\nimport { createSrc } from \"./src.js\";\n\nconst presets = {\n\tcommon: presetCommon,\n\teverything: presetEverything,\n\tminimal: presetMinimal,\n};\n\nexport async function createStructure(\n\tprovidedOptions: Options,\n\tuseNextEngine: boolean,\n\tfetchers?: SystemFetchers,\n): Promise<Structure> {\n\tconst preset =\n\t\tuseNextEngine &&\n\t\tprovidedOptions.base &&\n\t\tprovidedOptions.base !== \"prompt\" &&\n\t\tpresets[providedOptions.base];\n\n\tif (preset) {\n\t\tconst options = {\n\t\t\t...(await produceBase(preset.base, {\n\t\t\t\tfetchers,\n\t\t\t\toptions: providedOptions,\n\t\t\t})),\n\t\t\t...providedOptions,\n\t\t};\n\t\tconst creation = await producePreset(preset, {\n\t\t\tfetchers,\n\t\t\tmode: \"initialize\",\n\t\t\toptions,\n\t\t});\n\n\t\treturn await recursivelyFormat(creation.files);\n\t}\n\n\treturn {\n\t\t\".github\": await createDotGitHub(providedOptions),\n\t\t\".husky\": createDotHusky(),\n\t\t\".vscode\": await createDotVSCode(providedOptions),\n\t\t...(providedOptions.mode !== \"migrate\" && {\n\t\t\tsrc: await createSrc(providedOptions),\n\t\t}),\n\t\t...(await createRootFiles(providedOptions)),\n\t};\n}\n\nasync function recursivelyFormat(files: CreatedFiles): Promise<Structure> {\n\tconst result: Structure = {};\n\n\tfor (const [key, value] of Object.entries(files)) {\n\t\tif (Array.isArray(value)) {\n\t\t\tresult[key] = await formatCreatedFile(key, value[0]);\n\t\t} else if (typeof value === \"string\") {\n\t\t\tresult[key] = await formatCreatedFile(key, value);\n\t\t} else if (typeof value === \"object\") {\n\t\t\tresult[key] = await recursivelyFormat(value);\n\t\t}\n\t}\n\n\treturn result;\n}\n\nconst asYaml = new Set([\n\t\".gitignore\",\n\t\".markdownlintignore\",\n\t\".nvmrc\",\n\t\".prettierignore\",\n\t\"pre-commit\",\n]);\n\nasync function formatCreatedFile(filepath: string, entry: string) {\n\t// For now, explicit yml files internally already have formatting applied\n\tif (filepath.endsWith(\".yml\")) {\n\t\treturn entry;\n\t}\n\n\treturn await prettier.format(entry, {\n\t\tuseTabs: true,\n\t\t...(asYaml.has(filepath) ? { parser: \"yaml\" } : { filepath }),\n\t});\n}\n"],"mappings":"AAAA;AAAA,EAEC;AAAA,EACA;AAAA,OAEM;AACP,OAAO,cAAc;AAErB,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,qBAAqB;AAG9B,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,uBAAuB;AAChC,SAAS,iBAAiB;AAE1B,MAAM,UAAU;AAAA,EACf,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,SAAS;AACV;AAEA,eAAsB,gBACrB,iBACA,eACA,UACqB;AACrB,QAAM,SACL,iBACA,gBAAgB,QAChB,gBAAgB,SAAS,YACzB,QAAQ,gBAAgB,IAAI;AAE7B,MAAI,QAAQ;AACX,UAAM,UAAU;AAAA,MACf,GAAI,MAAM,YAAY,OAAO,MAAM;AAAA,QAClC;AAAA,QACA,SAAS;AAAA,MACV,CAAC;AAAA,MACD,GAAG;AAAA,IACJ;AACA,UAAM,WAAW,MAAM,cAAc,QAAQ;AAAA,MAC5C;AAAA,MACA,MAAM;AAAA,MACN;AAAA,IACD,CAAC;AAED,WAAO,MAAM,kBAAkB,SAAS,KAAK;AAAA,EAC9C;AAEA,SAAO;AAAA,IACN,WAAW,MAAM,gBAAgB,eAAe;AAAA,IAChD,UAAU,eAAe;AAAA,IACzB,WAAW,MAAM,gBAAgB,eAAe;AAAA,IAChD,GAAI,gBAAgB,SAAS,aAAa;AAAA,MACzC,KAAK,MAAM,UAAU,eAAe;AAAA,IACrC;AAAA,IACA,GAAI,MAAM,gBAAgB,eAAe;AAAA,EAC1C;AACD;AAEA,eAAe,kBAAkB,OAAyC;AACzE,QAAM,SAAoB,CAAC;AAE3B,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,KAAK,GAAG;AACjD,QAAI,MAAM,QAAQ,KAAK,GAAG;AACzB,aAAO,GAAG,IAAI,MAAM,kBAAkB,KAAK,MAAM,CAAC,CAAC;AAAA,IACpD,WAAW,OAAO,UAAU,UAAU;AACrC,aAAO,GAAG,IAAI,MAAM,kBAAkB,KAAK,KAAK;AAAA,IACjD,WAAW,OAAO,UAAU,UAAU;AACrC,aAAO,GAAG,IAAI,MAAM,kBAAkB,KAAK;AAAA,IAC5C;AAAA,EACD;AAEA,SAAO;AACR;AAEA,MAAM,SAAS,oBAAI,IAAI;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,CAAC;AAED,eAAe,kBAAkB,UAAkB,OAAe;AAEjE,MAAI,SAAS,SAAS,MAAM,GAAG;AAC9B,WAAO;AAAA,EACR;AAEA,SAAO,MAAM,SAAS,OAAO,OAAO;AAAA,IACnC,SAAS;AAAA,IACT,GAAI,OAAO,IAAI,QAAQ,IAAI,EAAE,QAAQ,OAAO,IAAI,EAAE,SAAS;AAAA,EAC5D,CAAC;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../../src/steps/writing/creation/index.ts"],"sourcesContent":["import {\n\tCreatedFiles,\n\tproduceBase,\n\tproducePreset,\n\tSystemFetchers,\n} from \"create\";\nimport prettier from \"prettier\";\n\nimport { presetCommon } from \"../../../next/presets/presetCommon.js\";\nimport { presetEverything } from \"../../../next/presets/presetEverything.js\";\nimport { presetMinimal } from \"../../../next/presets/presetMinimal.js\";\nimport { Options } from \"../../../shared/types.js\";\nimport { Structure } from \"../types.js\";\nimport { createDotGitHub } from \"./dotGitHub/index.js\";\nimport { createDotHusky } from \"./dotHusky.js\";\nimport { createDotVSCode } from \"./dotVSCode.js\";\nimport { createRootFiles } from \"./rootFiles.js\";\nimport { createSrc } from \"./src.js\";\n\nconst presets = {\n\tcommon: presetCommon,\n\teverything: presetEverything,\n\tminimal: presetMinimal,\n};\n\nexport async function createStructure(\n\tprovidedOptions: Options,\n\tuseNextEngine: boolean,\n\tfetchers?: SystemFetchers,\n): Promise<Structure> {\n\tconst preset =\n\t\tuseNextEngine &&\n\t\tprovidedOptions.base &&\n\t\tprovidedOptions.base !== \"prompt\" &&\n\t\tpresets[providedOptions.base];\n\n\tif (preset) {\n\t\tconst options = {\n\t\t\t...(await produceBase(preset.base, {\n\t\t\t\tfetchers,\n\t\t\t\toptions: providedOptions,\n\t\t\t})),\n\t\t\t...providedOptions,\n\t\t};\n\t\tconst creation = await producePreset(preset, {\n\t\t\tfetchers,\n\t\t\tmode: \"initialize\",\n\t\t\toptions,\n\t\t});\n\n\t\treturn await recursivelyFormat(creation.files);\n\t}\n\n\treturn {\n\t\t\".github\": await createDotGitHub(providedOptions),\n\t\t\".husky\": createDotHusky(),\n\t\t\".vscode\": await createDotVSCode(providedOptions),\n\t\t...(providedOptions.mode !== \"migrate\" && {\n\t\t\tsrc: await createSrc(providedOptions),\n\t\t}),\n\t\t...(await createRootFiles(providedOptions)),\n\t};\n}\n\nasync function recursivelyFormat(files: CreatedFiles): Promise<Structure> {\n\tconst result: Structure = {};\n\n\tfor (const [key, value] of Object.entries(files)) {\n\t\tif (Array.isArray(value)) {\n\t\t\tresult[key] = await formatCreatedFile(key, value[0]);\n\t\t} else if (typeof value === \"string\") {\n\t\t\tresult[key] = await formatCreatedFile(key, value);\n\t\t} else if (typeof value === \"object\") {\n\t\t\tresult[key] = await recursivelyFormat(value);\n\t\t}\n\t}\n\n\treturn result;\n}\n\nconst asYaml = new Set([\n\t\".gitignore\",\n\t\".markdownlintignore\",\n\t\".nvmrc\",\n\t\".prettierignore\",\n\t\"pre-commit\",\n]);\n\nasync function formatCreatedFile(filepath: string, entry: string) {\n\t// For now, explicit yml files internally already have formatting applied\n\tif (filepath.endsWith(\".yml\")) {\n\t\treturn entry;\n\t}\n\n\treturn await prettier.format(entry, {\n\t\tuseTabs: true,\n\t\t...(asYaml.has(filepath) ? { parser: \"yaml\" } : { filepath }),\n\t});\n}\n"],"mappings":"AAAA;AAAA,EAEC;AAAA,EACA;AAAA,OAEM;AACP,OAAO,cAAc;AAErB,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,qBAAqB;AAG9B,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,uBAAuB;AAChC,SAAS,iBAAiB;AAE1B,MAAM,UAAU;AAAA,EACf,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,SAAS;AACV;AAEA,eAAsB,gBACrB,iBACA,eACA,UACqB;AACrB,QAAM,SACL,iBACA,gBAAgB,QAChB,gBAAgB,SAAS,YACzB,QAAQ,gBAAgB,IAAI;AAE7B,MAAI,QAAQ;AACX,UAAM,UAAU;AAAA,MACf,GAAI,MAAM,YAAY,OAAO,MAAM;AAAA,QAClC;AAAA,QACA,SAAS;AAAA,MACV,CAAC;AAAA,MACD,GAAG;AAAA,IACJ;AACA,UAAM,WAAW,MAAM,cAAc,QAAQ;AAAA,MAC5C;AAAA,MACA,MAAM;AAAA,MACN;AAAA,IACD,CAAC;AAED,WAAO,MAAM,kBAAkB,SAAS,KAAK;AAAA,EAC9C;AAEA,SAAO;AAAA,IACN,WAAW,MAAM,gBAAgB,eAAe;AAAA,IAChD,UAAU,eAAe;AAAA,IACzB,WAAW,MAAM,gBAAgB,eAAe;AAAA,IAChD,GAAI,gBAAgB,SAAS,aAAa;AAAA,MACzC,KAAK,MAAM,UAAU,eAAe;AAAA,IACrC;AAAA,IACA,GAAI,MAAM,gBAAgB,eAAe;AAAA,EAC1C;AACD;AAEA,eAAe,kBAAkB,OAAyC;AACzE,QAAM,SAAoB,CAAC;AAE3B,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,KAAK,GAAG;AACjD,QAAI,MAAM,QAAQ,KAAK,GAAG;AACzB,aAAO,GAAG,IAAI,MAAM,kBAAkB,KAAK,MAAM,CAAC,CAAC;AAAA,IACpD,WAAW,OAAO,UAAU,UAAU;AACrC,aAAO,GAAG,IAAI,MAAM,kBAAkB,KAAK,KAAK;AAAA,IACjD,WAAW,OAAO,UAAU,UAAU;AACrC,aAAO,GAAG,IAAI,MAAM,kBAAkB,KAAK;AAAA,IAC5C;AAAA,EACD;AAEA,SAAO;AACR;AAEA,MAAM,SAAS,oBAAI,IAAI;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,CAAC;AAED,eAAe,kBAAkB,UAAkB,OAAe;AAEjE,MAAI,SAAS,SAAS,MAAM,GAAG;AAC9B,WAAO;AAAA,EACR;AAEA,SAAO,MAAM,SAAS,OAAO,OAAO;AAAA,IACnC,SAAS;AAAA,IACT,GAAI,OAAO,IAAI,QAAQ,IAAI,EAAE,QAAQ,OAAO,IAAI,EAAE,SAAS;AAAA,EAC5D,CAAC;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-typescript-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.80.0",
|
|
4
4
|
"description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. ❤️🔥",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsup",
|
|
26
26
|
"format": "prettier .",
|
|
27
|
-
"initialize": "tsx ./bin/index.js --mode initialize",
|
|
27
|
+
"initialize": "pnpm build --no-dts && tsx ./bin/index.js --mode initialize",
|
|
28
28
|
"lint": "eslint . --max-warnings 0",
|
|
29
29
|
"lint:knip": "knip",
|
|
30
30
|
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"execa": "^9.5.2",
|
|
50
50
|
"git-remote-origin-url": "^4.0.0",
|
|
51
51
|
"git-url-parse": "^16.0.0",
|
|
52
|
+
"image-size": "^1.2.0",
|
|
52
53
|
"input-from-file": "0.1.0-alpha.4",
|
|
53
54
|
"input-from-file-json": "0.1.0-alpha.4",
|
|
54
55
|
"input-from-script": "0.1.0-alpha.4",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/next/presetCommon.ts"],"sourcesContent":["import { base } from \"./base.js\";\nimport { blockAllContributors } from \"./blocks/blockAllContributors.js\";\nimport { blockReleaseIt } from \"./blocks/blockReleaseIt.js\";\nimport { blockVitest } from \"./blocks/blockVitest.js\";\nimport { presetMinimal } from \"./presetMinimal.js\";\n\nexport const presetCommon = base.createPreset({\n\tabout: {\n\t\tdescription:\n\t\t\t\"Bare starters plus testing and automation for all-contributors and releases.\",\n\t\tname: \"Common\",\n\t},\n\tblocks: [\n\t\t...presetMinimal.blocks,\n\t\tblockAllContributors,\n\t\tblockReleaseIt,\n\t\tblockVitest,\n\t],\n});\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,4BAA4B;AACrC,SAAS,sBAAsB;AAC/B,SAAS,mBAAmB;AAC5B,SAAS,qBAAqB;AAEvB,MAAM,eAAe,KAAK,aAAa;AAAA,EAC7C,OAAO;AAAA,IACN,aACC;AAAA,IACD,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,GAAG,cAAc;AAAA,IACjB;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { base } from "./base.js";
|
|
2
|
-
import { blockCSpell } from "./blocks/blockCSpell.js";
|
|
3
|
-
import { blockESLintComments } from "./blocks/blockESLintComments.js";
|
|
4
|
-
import { blockESLintJSDoc } from "./blocks/blockESLintJSDoc.js";
|
|
5
|
-
import { blockESLintJSONC } from "./blocks/blockESLintJSONC.js";
|
|
6
|
-
import { blockESLintMarkdown } from "./blocks/blockESLintMarkdown.js";
|
|
7
|
-
import { blockESLintMoreStyling } from "./blocks/blockESLintMoreStyling.js";
|
|
8
|
-
import { blockESLintNode } from "./blocks/blockESLintNode.js";
|
|
9
|
-
import { blockESLintPackageJson } from "./blocks/blockESLintPackageJson.js";
|
|
10
|
-
import { blockESLintPerfectionist } from "./blocks/blockESLintPerfectionist.js";
|
|
11
|
-
import { blockESLintRegexp } from "./blocks/blockESLintRegexp.js";
|
|
12
|
-
import { blockESLintYML } from "./blocks/blockESLintYML.js";
|
|
13
|
-
import { blockKnip } from "./blocks/blockKnip.js";
|
|
14
|
-
import { blockMarkdownlint } from "./blocks/blockMarkdownlint.js";
|
|
15
|
-
import { blockNvmrc } from "./blocks/blockNvmrc.js";
|
|
16
|
-
import { blockPnpmDedupe } from "./blocks/blockPnpmDedupe.js";
|
|
17
|
-
import { blockPRCompliance } from "./blocks/blockPRCompliance.js";
|
|
18
|
-
import { blockPrettierPluginCurly } from "./blocks/blockPrettierPluginCurly.js";
|
|
19
|
-
import { blockPrettierPluginPackageJson } from "./blocks/blockPrettierPluginPackageJson.js";
|
|
20
|
-
import { blockPrettierPluginSh } from "./blocks/blockPrettierPluginSh.js";
|
|
21
|
-
import { blockRenovate } from "./blocks/blockRenovate.js";
|
|
22
|
-
import { blockSecurityDocs } from "./blocks/blockSecurityDocs.js";
|
|
23
|
-
import { blockVSCode } from "./blocks/blockVSCode.js";
|
|
24
|
-
import { presetCommon } from "./presetCommon.js";
|
|
25
|
-
const presetEverything = base.createPreset({
|
|
26
|
-
about: {
|
|
27
|
-
description: "The most comprehensive tooling imaginable: sorting, spellchecking, and more!",
|
|
28
|
-
name: "Everything"
|
|
29
|
-
},
|
|
30
|
-
blocks: [
|
|
31
|
-
...presetCommon.blocks,
|
|
32
|
-
blockCSpell,
|
|
33
|
-
blockESLintComments,
|
|
34
|
-
blockESLintJSDoc,
|
|
35
|
-
blockESLintJSONC,
|
|
36
|
-
blockESLintMarkdown,
|
|
37
|
-
blockESLintMoreStyling,
|
|
38
|
-
blockESLintNode,
|
|
39
|
-
blockESLintPackageJson,
|
|
40
|
-
blockESLintPerfectionist,
|
|
41
|
-
blockESLintRegexp,
|
|
42
|
-
blockESLintYML,
|
|
43
|
-
blockKnip,
|
|
44
|
-
blockMarkdownlint,
|
|
45
|
-
blockNvmrc,
|
|
46
|
-
blockPnpmDedupe,
|
|
47
|
-
blockPRCompliance,
|
|
48
|
-
blockPrettierPluginCurly,
|
|
49
|
-
blockPrettierPluginPackageJson,
|
|
50
|
-
blockPrettierPluginSh,
|
|
51
|
-
blockRenovate,
|
|
52
|
-
blockSecurityDocs,
|
|
53
|
-
blockVSCode
|
|
54
|
-
]
|
|
55
|
-
});
|
|
56
|
-
export {
|
|
57
|
-
presetEverything
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=presetEverything.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/next/presetEverything.ts"],"sourcesContent":["import { base } from \"./base.js\";\nimport { blockCSpell } from \"./blocks/blockCSpell.js\";\nimport { blockESLintComments } from \"./blocks/blockESLintComments.js\";\nimport { blockESLintJSDoc } from \"./blocks/blockESLintJSDoc.js\";\nimport { blockESLintJSONC } from \"./blocks/blockESLintJSONC.js\";\nimport { blockESLintMarkdown } from \"./blocks/blockESLintMarkdown.js\";\nimport { blockESLintMoreStyling } from \"./blocks/blockESLintMoreStyling.js\";\nimport { blockESLintNode } from \"./blocks/blockESLintNode.js\";\nimport { blockESLintPackageJson } from \"./blocks/blockESLintPackageJson.js\";\nimport { blockESLintPerfectionist } from \"./blocks/blockESLintPerfectionist.js\";\nimport { blockESLintRegexp } from \"./blocks/blockESLintRegexp.js\";\nimport { blockESLintYML } from \"./blocks/blockESLintYML.js\";\nimport { blockKnip } from \"./blocks/blockKnip.js\";\nimport { blockMarkdownlint } from \"./blocks/blockMarkdownlint.js\";\nimport { blockNvmrc } from \"./blocks/blockNvmrc.js\";\nimport { blockPnpmDedupe } from \"./blocks/blockPnpmDedupe.js\";\nimport { blockPRCompliance } from \"./blocks/blockPRCompliance.js\";\nimport { blockPrettierPluginCurly } from \"./blocks/blockPrettierPluginCurly.js\";\nimport { blockPrettierPluginPackageJson } from \"./blocks/blockPrettierPluginPackageJson.js\";\nimport { blockPrettierPluginSh } from \"./blocks/blockPrettierPluginSh.js\";\nimport { blockRenovate } from \"./blocks/blockRenovate.js\";\nimport { blockSecurityDocs } from \"./blocks/blockSecurityDocs.js\";\nimport { blockVSCode } from \"./blocks/blockVSCode.js\";\nimport { presetCommon } from \"./presetCommon.js\";\n\nexport const presetEverything = base.createPreset({\n\tabout: {\n\t\tdescription:\n\t\t\t\"The most comprehensive tooling imaginable: sorting, spellchecking, and more!\",\n\t\tname: \"Everything\",\n\t},\n\tblocks: [\n\t\t...presetCommon.blocks,\n\t\tblockCSpell,\n\t\tblockESLintComments,\n\t\tblockESLintJSDoc,\n\t\tblockESLintJSONC,\n\t\tblockESLintMarkdown,\n\t\tblockESLintMoreStyling,\n\t\tblockESLintNode,\n\t\tblockESLintPackageJson,\n\t\tblockESLintPerfectionist,\n\t\tblockESLintRegexp,\n\t\tblockESLintYML,\n\t\tblockKnip,\n\t\tblockMarkdownlint,\n\t\tblockNvmrc,\n\t\tblockPnpmDedupe,\n\t\tblockPRCompliance,\n\t\tblockPrettierPluginCurly,\n\t\tblockPrettierPluginPackageJson,\n\t\tblockPrettierPluginSh,\n\t\tblockRenovate,\n\t\tblockSecurityDocs,\n\t\tblockVSCode,\n\t],\n});\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAC5B,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,2BAA2B;AACpC,SAAS,8BAA8B;AACvC,SAAS,uBAAuB;AAChC,SAAS,8BAA8B;AACvC,SAAS,gCAAgC;AACzC,SAAS,yBAAyB;AAClC,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAC3B,SAAS,uBAAuB;AAChC,SAAS,yBAAyB;AAClC,SAAS,gCAAgC;AACzC,SAAS,sCAAsC;AAC/C,SAAS,6BAA6B;AACtC,SAAS,qBAAqB;AAC9B,SAAS,yBAAyB;AAClC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAEtB,MAAM,mBAAmB,KAAK,aAAa;AAAA,EACjD,OAAO;AAAA,IACN,aACC;AAAA,IACD,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,GAAG,aAAa;AAAA,IAChB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { base } from "./base.js";
|
|
2
|
-
import { blockContributingDocs } from "./blocks/blockContributingDocs.js";
|
|
3
|
-
import { blockContributorCovenant } from "./blocks/blockContributorCovenant.js";
|
|
4
|
-
import { blockDevelopmentDocs } from "./blocks/blockDevelopmentDocs.js";
|
|
5
|
-
import { blockESLint } from "./blocks/blockESLint.js";
|
|
6
|
-
import { blockExampleFiles } from "./blocks/blockExampleFiles.js";
|
|
7
|
-
import { blockFunding } from "./blocks/blockFunding.js";
|
|
8
|
-
import { blockGitHubActionsCI } from "./blocks/blockGitHubActionsCI.js";
|
|
9
|
-
import { blockGitHubApps } from "./blocks/blockGitHubApps.js";
|
|
10
|
-
import { blockGitHubIssueTemplates } from "./blocks/blockGitHubIssueTemplates.js";
|
|
11
|
-
import { blockGitHubPRTemplate } from "./blocks/blockGitHubPRTemplate.js";
|
|
12
|
-
import { blockGitignore } from "./blocks/blockGitignore.js";
|
|
13
|
-
import { blockMITLicense } from "./blocks/blockMITLicense.js";
|
|
14
|
-
import { blockPackageJson } from "./blocks/blockPackageJson.js";
|
|
15
|
-
import { blockPrettier } from "./blocks/blockPrettier.js";
|
|
16
|
-
import { blockREADME } from "./blocks/blockREADME.js";
|
|
17
|
-
import { blockRepositoryBranchRuleset } from "./blocks/blockRepositoryBranchRuleset.js";
|
|
18
|
-
import { blockRepositoryLabels } from "./blocks/blockRepositoryLabels.js";
|
|
19
|
-
import { blockRepositorySecrets } from "./blocks/blockRepositorySecrets.js";
|
|
20
|
-
import { blockRepositorySettings } from "./blocks/blockRepositorySettings.js";
|
|
21
|
-
import { blockTemplatedBy } from "./blocks/blockTemplatedBy.js";
|
|
22
|
-
import { blockTSup } from "./blocks/blockTSup.js";
|
|
23
|
-
import { blockTypeScript } from "./blocks/blockTypeScript.js";
|
|
24
|
-
const presetMinimal = base.createPreset({
|
|
25
|
-
about: {
|
|
26
|
-
description: "Just bare starter tooling: building, formatting, linting, and type checking.",
|
|
27
|
-
name: "Minimal"
|
|
28
|
-
},
|
|
29
|
-
blocks: [
|
|
30
|
-
blockContributingDocs,
|
|
31
|
-
blockContributorCovenant,
|
|
32
|
-
blockDevelopmentDocs,
|
|
33
|
-
blockESLint,
|
|
34
|
-
blockExampleFiles,
|
|
35
|
-
blockFunding,
|
|
36
|
-
blockGitHubActionsCI,
|
|
37
|
-
blockGitHubApps,
|
|
38
|
-
blockGitHubIssueTemplates,
|
|
39
|
-
blockGitHubPRTemplate,
|
|
40
|
-
blockGitignore,
|
|
41
|
-
blockMITLicense,
|
|
42
|
-
blockPackageJson,
|
|
43
|
-
blockPrettier,
|
|
44
|
-
blockREADME,
|
|
45
|
-
blockRepositoryBranchRuleset,
|
|
46
|
-
blockRepositoryLabels,
|
|
47
|
-
blockRepositorySecrets,
|
|
48
|
-
blockRepositorySettings,
|
|
49
|
-
blockTemplatedBy,
|
|
50
|
-
blockTSup,
|
|
51
|
-
blockTypeScript
|
|
52
|
-
]
|
|
53
|
-
});
|
|
54
|
-
export {
|
|
55
|
-
presetMinimal
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=presetMinimal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/next/presetMinimal.ts"],"sourcesContent":["import { base } from \"./base.js\";\nimport { blockContributingDocs } from \"./blocks/blockContributingDocs.js\";\nimport { blockContributorCovenant } from \"./blocks/blockContributorCovenant.js\";\nimport { blockDevelopmentDocs } from \"./blocks/blockDevelopmentDocs.js\";\nimport { blockESLint } from \"./blocks/blockESLint.js\";\nimport { blockExampleFiles } from \"./blocks/blockExampleFiles.js\";\nimport { blockFunding } from \"./blocks/blockFunding.js\";\nimport { blockGitHubActionsCI } from \"./blocks/blockGitHubActionsCI.js\";\nimport { blockGitHubApps } from \"./blocks/blockGitHubApps.js\";\nimport { blockGitHubIssueTemplates } from \"./blocks/blockGitHubIssueTemplates.js\";\nimport { blockGitHubPRTemplate } from \"./blocks/blockGitHubPRTemplate.js\";\nimport { blockGitignore } from \"./blocks/blockGitignore.js\";\nimport { blockMITLicense } from \"./blocks/blockMITLicense.js\";\nimport { blockPackageJson } from \"./blocks/blockPackageJson.js\";\nimport { blockPrettier } from \"./blocks/blockPrettier.js\";\nimport { blockREADME } from \"./blocks/blockREADME.js\";\nimport { blockRepositoryBranchRuleset } from \"./blocks/blockRepositoryBranchRuleset.js\";\nimport { blockRepositoryLabels } from \"./blocks/blockRepositoryLabels.js\";\nimport { blockRepositorySecrets } from \"./blocks/blockRepositorySecrets.js\";\nimport { blockRepositorySettings } from \"./blocks/blockRepositorySettings.js\";\nimport { blockTemplatedBy } from \"./blocks/blockTemplatedBy.js\";\nimport { blockTSup } from \"./blocks/blockTSup.js\";\nimport { blockTypeScript } from \"./blocks/blockTypeScript.js\";\n\nexport const presetMinimal = base.createPreset({\n\tabout: {\n\t\tdescription:\n\t\t\t\"Just bare starter tooling: building, formatting, linting, and type checking.\",\n\t\tname: \"Minimal\",\n\t},\n\tblocks: [\n\t\tblockContributingDocs,\n\t\tblockContributorCovenant,\n\t\tblockDevelopmentDocs,\n\t\tblockESLint,\n\t\tblockExampleFiles,\n\t\tblockFunding,\n\t\tblockGitHubActionsCI,\n\t\tblockGitHubApps,\n\t\tblockGitHubIssueTemplates,\n\t\tblockGitHubPRTemplate,\n\t\tblockGitignore,\n\t\tblockMITLicense,\n\t\tblockPackageJson,\n\t\tblockPrettier,\n\t\tblockREADME,\n\t\tblockRepositoryBranchRuleset,\n\t\tblockRepositoryLabels,\n\t\tblockRepositorySecrets,\n\t\tblockRepositorySettings,\n\t\tblockTemplatedBy,\n\t\tblockTSup,\n\t\tblockTypeScript,\n\t],\n});\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,6BAA6B;AACtC,SAAS,gCAAgC;AACzC,SAAS,4BAA4B;AACrC,SAAS,mBAAmB;AAC5B,SAAS,yBAAyB;AAClC,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;AACrC,SAAS,uBAAuB;AAChC,SAAS,iCAAiC;AAC1C,SAAS,6BAA6B;AACtC,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,wBAAwB;AACjC,SAAS,qBAAqB;AAC9B,SAAS,mBAAmB;AAC5B,SAAS,oCAAoC;AAC7C,SAAS,6BAA6B;AACtC,SAAS,8BAA8B;AACvC,SAAS,+BAA+B;AACxC,SAAS,wBAAwB;AACjC,SAAS,iBAAiB;AAC1B,SAAS,uBAAuB;AAEzB,MAAM,gBAAgB,KAAK,aAAa;AAAA,EAC9C,OAAO;AAAA,IACN,aACC;AAAA,IACD,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACD,CAAC;","names":[]}
|