create-typescript-app 1.76.0 → 1.77.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 +1 -1
- package/lib/bin/promptForMode.js +2 -1
- package/lib/bin/promptForMode.js.map +1 -1
- package/lib/create/createWithOptions.d.ts +3 -4
- package/lib/create/createWithOptions.js +19 -12
- package/lib/create/createWithOptions.js.map +1 -1
- package/lib/index.d.ts +45 -0
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/initialize/initializeWithOptions.d.ts +3 -4
- package/lib/initialize/initializeWithOptions.js +4 -4
- package/lib/initialize/initializeWithOptions.js.map +1 -1
- package/lib/migrate/migrateWithOptions.d.ts +3 -4
- package/lib/migrate/migrateWithOptions.js +8 -5
- package/lib/migrate/migrateWithOptions.js.map +1 -1
- package/lib/next/base.d.ts +101 -0
- package/lib/next/base.js +144 -0
- package/lib/next/base.js.map +1 -0
- package/lib/next/blocks/blockAllContributors.d.ts +48 -0
- package/lib/next/blocks/blockAllContributors.js +60 -0
- package/lib/next/blocks/blockAllContributors.js.map +1 -0
- package/lib/next/blocks/blockAreTheTypesWrong.d.ts +48 -0
- package/lib/next/blocks/blockAreTheTypesWrong.js +29 -0
- package/lib/next/blocks/blockAreTheTypesWrong.js.map +1 -0
- package/lib/next/blocks/blockCSpell.d.ts +51 -0
- package/lib/next/blocks/blockCSpell.js +72 -0
- package/lib/next/blocks/blockCSpell.js.map +1 -0
- package/lib/next/blocks/blockContributingDocs.d.ts +48 -0
- package/lib/next/blocks/blockContributingDocs.js +127 -0
- package/lib/next/blocks/blockContributingDocs.js.map +1 -0
- package/lib/next/blocks/blockContributorCovenant.d.ts +48 -0
- package/lib/next/blocks/blockContributorCovenant.js +162 -0
- package/lib/next/blocks/blockContributorCovenant.js.map +1 -0
- package/lib/next/blocks/blockDevelopmentDocs.d.ts +62 -0
- package/lib/next/blocks/blockDevelopmentDocs.js +92 -0
- package/lib/next/blocks/blockDevelopmentDocs.js.map +1 -0
- package/lib/next/blocks/blockESLint.d.ts +73 -0
- package/lib/next/blocks/blockESLint.js +242 -0
- package/lib/next/blocks/blockESLint.js.map +1 -0
- package/lib/next/blocks/blockESLintComments.d.ts +48 -0
- package/lib/next/blocks/blockESLintComments.js +26 -0
- package/lib/next/blocks/blockESLintComments.js.map +1 -0
- package/lib/next/blocks/blockESLintJSDoc.d.ts +48 -0
- package/lib/next/blocks/blockESLintJSDoc.js +25 -0
- package/lib/next/blocks/blockESLintJSDoc.js.map +1 -0
- package/lib/next/blocks/blockESLintJSONC.d.ts +48 -0
- package/lib/next/blocks/blockESLintJSONC.js +21 -0
- package/lib/next/blocks/blockESLintJSONC.js.map +1 -0
- package/lib/next/blocks/blockESLintMarkdown.d.ts +48 -0
- package/lib/next/blocks/blockESLintMarkdown.js +27 -0
- package/lib/next/blocks/blockESLintMarkdown.js.map +1 -0
- package/lib/next/blocks/blockESLintMoreStyling.d.ts +48 -0
- package/lib/next/blocks/blockESLintMoreStyling.js +34 -0
- package/lib/next/blocks/blockESLintMoreStyling.js.map +1 -0
- package/lib/next/blocks/blockESLintNode.d.ts +48 -0
- package/lib/next/blocks/blockESLintNode.js +33 -0
- package/lib/next/blocks/blockESLintNode.js.map +1 -0
- package/lib/next/blocks/blockESLintPackageJson.d.ts +48 -0
- package/lib/next/blocks/blockESLintPackageJson.js +26 -0
- package/lib/next/blocks/blockESLintPackageJson.js.map +1 -0
- package/lib/next/blocks/blockESLintPerfectionist.d.ts +48 -0
- package/lib/next/blocks/blockESLintPerfectionist.js +32 -0
- package/lib/next/blocks/blockESLintPerfectionist.js.map +1 -0
- package/lib/next/blocks/blockESLintRegexp.d.ts +48 -0
- package/lib/next/blocks/blockESLintRegexp.js +23 -0
- package/lib/next/blocks/blockESLintRegexp.js.map +1 -0
- package/lib/next/blocks/blockESLintYML.d.ts +48 -0
- package/lib/next/blocks/blockESLintYML.js +46 -0
- package/lib/next/blocks/blockESLintYML.js.map +1 -0
- package/lib/next/blocks/blockExampleFiles.d.ts +50 -0
- package/lib/next/blocks/blockExampleFiles.js +25 -0
- package/lib/next/blocks/blockExampleFiles.js.map +1 -0
- package/lib/next/blocks/blockFunding.d.ts +48 -0
- package/lib/next/blocks/blockFunding.js +20 -0
- package/lib/next/blocks/blockFunding.js.map +1 -0
- package/lib/next/blocks/blockGitHubActionsCI.d.ts +60 -0
- package/lib/next/blocks/blockGitHubActionsCI.js +133 -0
- package/lib/next/blocks/blockGitHubActionsCI.js.map +1 -0
- package/lib/next/blocks/blockGitHubIssueTemplates.d.ts +48 -0
- package/lib/next/blocks/blockGitHubIssueTemplates.js +217 -0
- package/lib/next/blocks/blockGitHubIssueTemplates.js.map +1 -0
- package/lib/next/blocks/blockGitHubPRTemplate.d.ts +48 -0
- package/lib/next/blocks/blockGitHubPRTemplate.js +32 -0
- package/lib/next/blocks/blockGitHubPRTemplate.js.map +1 -0
- package/lib/next/blocks/blockGitignore.d.ts +50 -0
- package/lib/next/blocks/blockGitignore.js +23 -0
- package/lib/next/blocks/blockGitignore.js.map +1 -0
- package/lib/next/blocks/blockKnip.d.ts +48 -0
- package/lib/next/blocks/blockKnip.js +58 -0
- package/lib/next/blocks/blockKnip.js.map +1 -0
- package/lib/next/blocks/blockMITLicense.d.ts +48 -0
- package/lib/next/blocks/blockMITLicense.js +46 -0
- package/lib/next/blocks/blockMITLicense.js.map +1 -0
- package/lib/next/blocks/blockMarkdownlint.d.ts +50 -0
- package/lib/next/blocks/blockMarkdownlint.js +77 -0
- package/lib/next/blocks/blockMarkdownlint.js.map +1 -0
- package/lib/next/blocks/blockNvmrc.d.ts +48 -0
- package/lib/next/blocks/blockNvmrc.js +26 -0
- package/lib/next/blocks/blockNvmrc.js.map +1 -0
- package/lib/next/blocks/blockPRCompliance.d.ts +48 -0
- package/lib/next/blocks/blockPRCompliance.js +48 -0
- package/lib/next/blocks/blockPRCompliance.js.map +1 -0
- package/lib/next/blocks/blockPackageJson.d.ts +57 -0
- package/lib/next/blocks/blockPackageJson.js +92 -0
- package/lib/next/blocks/blockPackageJson.js.map +1 -0
- package/lib/next/blocks/blockPnpmDedupe.d.ts +48 -0
- package/lib/next/blocks/blockPnpmDedupe.js +46 -0
- package/lib/next/blocks/blockPnpmDedupe.js.map +1 -0
- package/lib/next/blocks/blockPrettier.d.ts +57 -0
- package/lib/next/blocks/blockPrettier.js +114 -0
- package/lib/next/blocks/blockPrettier.js.map +1 -0
- package/lib/next/blocks/blockPrettierPluginCurly.d.ts +48 -0
- package/lib/next/blocks/blockPrettierPluginCurly.js +20 -0
- package/lib/next/blocks/blockPrettierPluginCurly.js.map +1 -0
- package/lib/next/blocks/blockPrettierPluginPackageJson.d.ts +48 -0
- package/lib/next/blocks/blockPrettierPluginPackageJson.js +20 -0
- package/lib/next/blocks/blockPrettierPluginPackageJson.js.map +1 -0
- package/lib/next/blocks/blockPrettierPluginSh.d.ts +48 -0
- package/lib/next/blocks/blockPrettierPluginSh.js +20 -0
- package/lib/next/blocks/blockPrettierPluginSh.js.map +1 -0
- package/lib/next/blocks/blockREADME.d.ts +50 -0
- package/lib/next/blocks/blockREADME.js +63 -0
- package/lib/next/blocks/blockREADME.js.map +1 -0
- package/lib/next/blocks/blockReleaseIt.d.ts +48 -0
- package/lib/next/blocks/blockReleaseIt.js +131 -0
- package/lib/next/blocks/blockReleaseIt.js.map +1 -0
- package/lib/next/blocks/blockRenovate.d.ts +48 -0
- package/lib/next/blocks/blockRenovate.js +34 -0
- package/lib/next/blocks/blockRenovate.js.map +1 -0
- package/lib/next/blocks/blockRepositoryBranchProtection.d.ts +50 -0
- package/lib/next/blocks/blockRepositoryBranchProtection.js +49 -0
- package/lib/next/blocks/blockRepositoryBranchProtection.js.map +1 -0
- package/lib/next/blocks/blockRepositoryLabels.d.ts +48 -0
- package/lib/next/blocks/blockRepositoryLabels.js +18 -0
- package/lib/next/blocks/blockRepositoryLabels.js.map +1 -0
- package/lib/next/blocks/blockRepositorySettings.d.ts +48 -0
- package/lib/next/blocks/blockRepositorySettings.js +42 -0
- package/lib/next/blocks/blockRepositorySettings.js.map +1 -0
- package/lib/next/blocks/blockSecurityDocs.d.ts +48 -0
- package/lib/next/blocks/blockSecurityDocs.js +28 -0
- package/lib/next/blocks/blockSecurityDocs.js.map +1 -0
- package/lib/next/blocks/blockTSup.d.ts +50 -0
- package/lib/next/blocks/blockTSup.js +95 -0
- package/lib/next/blocks/blockTSup.js.map +1 -0
- package/lib/next/blocks/blockTemplatedBy.d.ts +48 -0
- package/lib/next/blocks/blockTemplatedBy.js +30 -0
- package/lib/next/blocks/blockTemplatedBy.js.map +1 -0
- package/lib/next/blocks/blockTypeScript.d.ts +48 -0
- package/lib/next/blocks/blockTypeScript.js +137 -0
- package/lib/next/blocks/blockTypeScript.js.map +1 -0
- package/lib/next/blocks/blockVSCode.d.ts +57 -0
- package/lib/next/blocks/blockVSCode.js +91 -0
- package/lib/next/blocks/blockVSCode.js.map +1 -0
- package/lib/next/blocks/blockVitest.d.ts +55 -0
- package/lib/next/blocks/blockVitest.js +217 -0
- package/lib/next/blocks/blockVitest.js.map +1 -0
- package/lib/next/blocks/index.d.ts +43 -0
- package/lib/next/blocks/index.js +43 -0
- package/lib/next/blocks/index.js.map +1 -0
- package/lib/next/blocks/options.fakes.d.ts +13 -0
- package/lib/next/blocks/options.fakes.js +15 -0
- package/lib/next/blocks/options.fakes.js.map +1 -0
- package/lib/next/blocks/packageData.d.ts +5 -0
- package/lib/next/blocks/packageData.js +25 -0
- package/lib/next/blocks/packageData.js.map +1 -0
- package/lib/next/blocks/phases.d.ts +9 -0
- package/lib/next/blocks/phases.js +11 -0
- package/lib/next/blocks/phases.js.map +1 -0
- package/lib/next/presetCommon.d.ts +99 -0
- package/lib/next/presetCommon.js +21 -0
- package/lib/next/presetCommon.js.map +1 -0
- package/lib/next/presetEverything.d.ts +99 -0
- package/lib/next/presetEverything.js +59 -0
- package/lib/next/presetEverything.js.map +1 -0
- package/lib/next/presetMinimal.d.ts +99 -0
- package/lib/next/presetMinimal.js +53 -0
- package/lib/next/presetMinimal.js.map +1 -0
- package/lib/next/runCreateEnginePreset.d.ts +7 -0
- package/lib/next/runCreateEnginePreset.js +20 -0
- package/lib/next/runCreateEnginePreset.js.map +1 -0
- package/lib/next/template.d.ts +99 -0
- package/lib/next/template.js +21 -0
- package/lib/next/template.js.map +1 -0
- package/lib/next/utils/sortObject.d.ts +5 -0
- package/lib/next/utils/sortObject.js +9 -0
- package/lib/next/utils/sortObject.js.map +1 -0
- package/lib/next/utils/swallowError.d.ts +3 -0
- package/lib/next/utils/swallowError.js +7 -0
- package/lib/next/utils/swallowError.js.map +1 -0
- package/lib/shared/isUsingCreateEngine.d.ts +3 -0
- package/lib/shared/isUsingCreateEngine.js +7 -0
- package/lib/shared/isUsingCreateEngine.js.map +1 -0
- package/lib/shared/options/createOptionDefaults/index.d.ts +2 -4
- package/lib/shared/options/createOptionDefaults/index.js +4 -13
- package/lib/shared/options/createOptionDefaults/index.js.map +1 -1
- package/lib/shared/options/createOptionDefaults/readDefaultsFromReadme.js +4 -1
- package/lib/shared/options/createOptionDefaults/readDefaultsFromReadme.js.map +1 -1
- package/lib/shared/options/createOptionDefaults/readEmails.d.ts +11 -0
- package/lib/shared/options/createOptionDefaults/readEmails.js +14 -0
- package/lib/shared/options/createOptionDefaults/readEmails.js.map +1 -0
- package/lib/shared/options/createOptionDefaults/readFunding.d.ts +3 -0
- package/lib/shared/options/createOptionDefaults/readFunding.js +11 -0
- package/lib/shared/options/createOptionDefaults/readFunding.js.map +1 -0
- package/lib/shared/options/createOptionDefaults/readGuide.d.ts +6 -0
- package/lib/shared/options/createOptionDefaults/readGuide.js +18 -0
- package/lib/shared/options/createOptionDefaults/readGuide.js.map +1 -0
- package/lib/shared/options/ensureRepositoryExists.d.ts +3 -4
- package/lib/shared/options/ensureRepositoryExists.js +9 -8
- package/lib/shared/options/ensureRepositoryExists.js.map +1 -1
- package/lib/shared/options/readOptions.d.ts +5 -6
- package/lib/shared/options/readOptions.js +7 -4
- package/lib/shared/options/readOptions.js.map +1 -1
- package/lib/shared/types.d.ts +7 -0
- package/lib/steps/addOwnerAsAllContributor.js.map +1 -1
- package/lib/steps/clearUnnecessaryFiles.js +0 -1
- package/lib/steps/clearUnnecessaryFiles.js.map +1 -1
- package/lib/steps/finalizeDependencies.js +5 -7
- package/lib/steps/finalizeDependencies.js.map +1 -1
- package/lib/steps/initializeGitHubRepository/index.js +7 -2
- package/lib/steps/initializeGitHubRepository/index.js.map +1 -1
- package/lib/steps/initializeGitHubRepository/outcomeLabels.d.ts +13 -0
- package/lib/steps/initializeGitHubRepository/{labels/outcomeLabels.js → outcomeLabels.js} +4 -1
- package/lib/steps/initializeGitHubRepository/outcomeLabels.js.map +1 -0
- package/lib/steps/removeSetupScripts.js +9 -3
- package/lib/steps/removeSetupScripts.js.map +1 -1
- package/lib/steps/uninstallPackages.js +14 -5
- package/lib/steps/uninstallPackages.js.map +1 -1
- package/lib/steps/writing/creation/createCSpellConfig.d.ts +7 -0
- package/lib/steps/writing/creation/createCSpellConfig.js +27 -0
- package/lib/steps/writing/creation/createCSpellConfig.js.map +1 -0
- package/lib/steps/writing/creation/createDotGitignore.js +7 -5
- package/lib/steps/writing/creation/createDotGitignore.js.map +1 -1
- package/lib/steps/writing/creation/createESLintConfig.js +1 -3
- package/lib/steps/writing/creation/createESLintConfig.js.map +1 -1
- package/lib/steps/writing/creation/createTsupConfig.js +10 -10
- package/lib/steps/writing/creation/createTsupConfig.js.map +1 -1
- package/lib/steps/writing/creation/dotGitHub/createDevelopment/index.js +31 -16
- package/lib/steps/writing/creation/dotGitHub/createDevelopment/index.js.map +1 -1
- package/lib/steps/writing/creation/dotGitHub/createDevelopment/splitIntoSections.js +1 -1
- package/lib/steps/writing/creation/dotGitHub/createDevelopment/splitIntoSections.js.map +1 -1
- package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.js +5 -5
- package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.js.map +1 -1
- package/lib/steps/writing/creation/dotGitHub/createMultiWorkflowFile.d.ts +3 -1
- package/lib/steps/writing/creation/dotGitHub/createMultiWorkflowFile.js.map +1 -1
- package/lib/steps/writing/creation/dotGitHub/createWorkflows.js +5 -1
- package/lib/steps/writing/creation/dotGitHub/createWorkflows.js.map +1 -1
- package/lib/steps/writing/creation/formatters/formatIgnoreFile.d.ts +1 -1
- package/lib/steps/writing/creation/formatters/formatIgnoreFile.js +1 -1
- package/lib/steps/writing/creation/formatters/formatIgnoreFile.js.map +1 -1
- package/lib/steps/writing/creation/formatters/formatTypeScript.js +1 -1
- package/lib/steps/writing/creation/formatters/formatTypeScript.js.map +1 -1
- package/lib/steps/writing/creation/formatters/formatYaml.js +3 -1
- package/lib/steps/writing/creation/formatters/formatYaml.js.map +1 -1
- package/lib/steps/writing/creation/index.d.ts +1 -1
- package/lib/steps/writing/creation/index.js +48 -1
- package/lib/steps/writing/creation/index.js.map +1 -1
- package/lib/steps/writing/creation/rootFiles.js +4 -14
- package/lib/steps/writing/creation/rootFiles.js.map +1 -1
- package/lib/steps/writing/creation/writeAllContributorsRC.js +1 -9
- package/lib/steps/writing/creation/writeAllContributorsRC.js.map +1 -1
- package/lib/steps/writing/creation/writePackageJson.js +69 -62
- package/lib/steps/writing/creation/writePackageJson.js.map +1 -1
- package/lib/steps/writing/types.d.ts +1 -1
- package/lib/steps/writing/writeStructure.js +9 -1
- package/lib/steps/writing/writeStructure.js.map +1 -1
- package/lib/steps/writing/writeStructureWorker.js +1 -1
- package/lib/steps/writing/writeStructureWorker.js.map +1 -1
- package/package.json +35 -28
- package/lib/shared/options/createOptionDefaults/readDefaultsFromDevelopment.d.ts +0 -8
- package/lib/shared/options/createOptionDefaults/readDefaultsFromDevelopment.js +0 -22
- package/lib/shared/options/createOptionDefaults/readDefaultsFromDevelopment.js.map +0 -1
- package/lib/shared/options/getGitHub.d.ts +0 -9
- package/lib/shared/options/getGitHub.js +0 -17
- package/lib/shared/options/getGitHub.js.map +0 -1
- package/lib/steps/detectExistingContributors.d.ts +0 -7
- package/lib/steps/detectExistingContributors.js +0 -19
- package/lib/steps/detectExistingContributors.js.map +0 -1
- package/lib/steps/initializeGitHubRepository/labels/getExistingEquivalentLabels.d.ts +0 -8
- package/lib/steps/initializeGitHubRepository/labels/getExistingEquivalentLabels.js +0 -14
- package/lib/steps/initializeGitHubRepository/labels/getExistingEquivalentLabels.js.map +0 -1
- package/lib/steps/initializeGitHubRepository/labels/initializeRepositoryLabels.d.ts +0 -8
- package/lib/steps/initializeGitHubRepository/labels/initializeRepositoryLabels.js +0 -63
- package/lib/steps/initializeGitHubRepository/labels/initializeRepositoryLabels.js.map +0 -1
- package/lib/steps/initializeGitHubRepository/labels/outcomeLabels.d.ts +0 -7
- package/lib/steps/initializeGitHubRepository/labels/outcomeLabels.js.map +0 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockRenovate: create.BlockWithoutAddons<{
|
|
4
|
+
description: string;
|
|
5
|
+
email: {
|
|
6
|
+
github: string;
|
|
7
|
+
npm: string;
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
owner: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
access?: "public" | "restricted" | undefined;
|
|
13
|
+
author?: string | undefined;
|
|
14
|
+
bin?: string | undefined;
|
|
15
|
+
login?: string | undefined;
|
|
16
|
+
contributors?: {
|
|
17
|
+
name: string;
|
|
18
|
+
avatar_url: string;
|
|
19
|
+
contributions: string[];
|
|
20
|
+
login: string;
|
|
21
|
+
profile: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
documentation?: string | undefined;
|
|
24
|
+
funding?: string | undefined;
|
|
25
|
+
guide?: {
|
|
26
|
+
href: string;
|
|
27
|
+
title: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
hideTemplatedBy?: boolean | undefined;
|
|
30
|
+
keywords?: string[] | undefined;
|
|
31
|
+
logo?: {
|
|
32
|
+
alt: string;
|
|
33
|
+
src: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
node?: {
|
|
36
|
+
minimum: string;
|
|
37
|
+
pinned?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
packageData?: {
|
|
40
|
+
dependencies?: Record<string, string> | undefined;
|
|
41
|
+
devDependencies?: Record<string, string> | undefined;
|
|
42
|
+
scripts?: Record<string, string> | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
export { blockRenovate };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { base } from "../base.js";
|
|
2
|
+
import { blockCSpell } from "./blockCSpell.js";
|
|
3
|
+
const blockRenovate = base.createBlock({
|
|
4
|
+
about: {
|
|
5
|
+
name: "Renovate"
|
|
6
|
+
},
|
|
7
|
+
produce() {
|
|
8
|
+
return {
|
|
9
|
+
addons: [
|
|
10
|
+
blockCSpell({
|
|
11
|
+
words: ["automerge"]
|
|
12
|
+
})
|
|
13
|
+
],
|
|
14
|
+
files: {
|
|
15
|
+
".github": {
|
|
16
|
+
"renovate.json": JSON.stringify({
|
|
17
|
+
$schema: "https://docs.renovatebot.com/renovate-schema.json",
|
|
18
|
+
automerge: true,
|
|
19
|
+
extends: ["config:best-practices", "replacements:all"],
|
|
20
|
+
ignoreDeps: ["codecov/codecov-action"],
|
|
21
|
+
labels: ["dependencies"],
|
|
22
|
+
minimumReleaseAge: "7 days",
|
|
23
|
+
patch: { enabled: false },
|
|
24
|
+
postUpdateOptions: ["pnpmDedupe"]
|
|
25
|
+
})
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
blockRenovate
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=blockRenovate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockRenovate.ts"],"sourcesContent":["import { base } from \"../base.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\n\nexport const blockRenovate = base.createBlock({\n\tabout: {\n\t\tname: \"Renovate\",\n\t},\n\tproduce() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\twords: [\"automerge\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"renovate.json\": JSON.stringify({\n\t\t\t\t\t\t$schema: \"https://docs.renovatebot.com/renovate-schema.json\",\n\t\t\t\t\t\tautomerge: true,\n\t\t\t\t\t\textends: [\"config:best-practices\", \"replacements:all\"],\n\t\t\t\t\t\tignoreDeps: [\"codecov/codecov-action\"],\n\t\t\t\t\t\tlabels: [\"dependencies\"],\n\t\t\t\t\t\tminimumReleaseAge: \"7 days\",\n\t\t\t\t\t\tpatch: { enabled: false },\n\t\t\t\t\t\tpostUpdateOptions: [\"pnpmDedupe\"],\n\t\t\t\t\t}),\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAErB,MAAM,gBAAgB,KAAK,YAAY;AAAA,EAC7C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,YAAY;AAAA,UACX,OAAO,CAAC,WAAW;AAAA,QACpB,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,WAAW;AAAA,UACV,iBAAiB,KAAK,UAAU;AAAA,YAC/B,SAAS;AAAA,YACT,WAAW;AAAA,YACX,SAAS,CAAC,yBAAyB,kBAAkB;AAAA,YACrD,YAAY,CAAC,wBAAwB;AAAA,YACrC,QAAQ,CAAC,cAAc;AAAA,YACvB,mBAAmB;AAAA,YACnB,OAAO,EAAE,SAAS,MAAM;AAAA,YACxB,mBAAmB,CAAC,YAAY;AAAA,UACjC,CAAC;AAAA,QACF;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockRepositoryBranchProtection: create.BlockWithAddons<{
|
|
4
|
+
requiredStatusChecks: string[];
|
|
5
|
+
}, {
|
|
6
|
+
description: string;
|
|
7
|
+
email: {
|
|
8
|
+
github: string;
|
|
9
|
+
npm: string;
|
|
10
|
+
};
|
|
11
|
+
title: string;
|
|
12
|
+
owner: string;
|
|
13
|
+
repository: string;
|
|
14
|
+
access?: "public" | "restricted" | undefined;
|
|
15
|
+
author?: string | undefined;
|
|
16
|
+
bin?: string | undefined;
|
|
17
|
+
login?: string | undefined;
|
|
18
|
+
contributors?: {
|
|
19
|
+
name: string;
|
|
20
|
+
avatar_url: string;
|
|
21
|
+
contributions: string[];
|
|
22
|
+
login: string;
|
|
23
|
+
profile: string;
|
|
24
|
+
}[] | undefined;
|
|
25
|
+
documentation?: string | undefined;
|
|
26
|
+
funding?: string | undefined;
|
|
27
|
+
guide?: {
|
|
28
|
+
href: string;
|
|
29
|
+
title: string;
|
|
30
|
+
} | undefined;
|
|
31
|
+
hideTemplatedBy?: boolean | undefined;
|
|
32
|
+
keywords?: string[] | undefined;
|
|
33
|
+
logo?: {
|
|
34
|
+
alt: string;
|
|
35
|
+
src: string;
|
|
36
|
+
} | undefined;
|
|
37
|
+
node?: {
|
|
38
|
+
minimum: string;
|
|
39
|
+
pinned?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
packageData?: {
|
|
42
|
+
dependencies?: Record<string, string> | undefined;
|
|
43
|
+
devDependencies?: Record<string, string> | undefined;
|
|
44
|
+
scripts?: Record<string, string> | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
47
|
+
version?: string | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
|
|
50
|
+
export { blockRepositoryBranchProtection };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { base } from "../base.js";
|
|
3
|
+
const blockRepositoryBranchProtection = base.createBlock({
|
|
4
|
+
about: {
|
|
5
|
+
name: "Repository Branch Protection"
|
|
6
|
+
},
|
|
7
|
+
addons: {
|
|
8
|
+
requiredStatusChecks: z.array(z.string()).default([])
|
|
9
|
+
},
|
|
10
|
+
produce({ addons, options }) {
|
|
11
|
+
return {
|
|
12
|
+
requests: [
|
|
13
|
+
{
|
|
14
|
+
id: "branch-protection",
|
|
15
|
+
async send({ octokit }) {
|
|
16
|
+
await octokit.request(
|
|
17
|
+
`PUT /repos/{owner}/{repository}/branches/{main}/protection`,
|
|
18
|
+
{
|
|
19
|
+
allow_deletions: false,
|
|
20
|
+
allow_force_pushes: true,
|
|
21
|
+
allow_fork_pushes: false,
|
|
22
|
+
allow_fork_syncing: true,
|
|
23
|
+
block_creations: false,
|
|
24
|
+
branch: "main",
|
|
25
|
+
enforce_admins: false,
|
|
26
|
+
owner: options.owner,
|
|
27
|
+
repo: options.repository,
|
|
28
|
+
required_conversation_resolution: true,
|
|
29
|
+
required_linear_history: false,
|
|
30
|
+
required_pull_request_reviews: null,
|
|
31
|
+
required_status_checks: {
|
|
32
|
+
checks: addons.requiredStatusChecks.map((context) => ({
|
|
33
|
+
context
|
|
34
|
+
})),
|
|
35
|
+
strict: false
|
|
36
|
+
},
|
|
37
|
+
restrictions: null
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
blockRepositoryBranchProtection
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=blockRepositoryBranchProtection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockRepositoryBranchProtection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\n\nexport const blockRepositoryBranchProtection = base.createBlock({\n\tabout: {\n\t\tname: \"Repository Branch Protection\",\n\t},\n\taddons: {\n\t\trequiredStatusChecks: z.array(z.string()).default([]),\n\t},\n\tproduce({ addons, options }) {\n\t\treturn {\n\t\t\trequests: [\n\t\t\t\t{\n\t\t\t\t\tid: \"branch-protection\",\n\t\t\t\t\tasync send({ octokit }) {\n\t\t\t\t\t\tawait octokit.request(\n\t\t\t\t\t\t\t`PUT /repos/{owner}/{repository}/branches/{main}/protection`,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tallow_deletions: false,\n\t\t\t\t\t\t\t\tallow_force_pushes: true,\n\t\t\t\t\t\t\t\tallow_fork_pushes: false,\n\t\t\t\t\t\t\t\tallow_fork_syncing: true,\n\t\t\t\t\t\t\t\tblock_creations: false,\n\t\t\t\t\t\t\t\tbranch: \"main\",\n\t\t\t\t\t\t\t\tenforce_admins: false,\n\t\t\t\t\t\t\t\towner: options.owner,\n\t\t\t\t\t\t\t\trepo: options.repository,\n\t\t\t\t\t\t\t\trequired_conversation_resolution: true,\n\t\t\t\t\t\t\t\trequired_linear_history: false,\n\t\t\t\t\t\t\t\trequired_pull_request_reviews: null,\n\t\t\t\t\t\t\t\trequired_status_checks: {\n\t\t\t\t\t\t\t\t\tchecks: addons.requiredStatusChecks.map((context) => ({\n\t\t\t\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\t\t\t})),\n\t\t\t\t\t\t\t\t\tstrict: false,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\trestrictions: null,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t);\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,YAAY;AAEd,MAAM,kCAAkC,KAAK,YAAY;AAAA,EAC/D,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,sBAAsB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,EACrD;AAAA,EACA,QAAQ,EAAE,QAAQ,QAAQ,GAAG;AAC5B,WAAO;AAAA,MACN,UAAU;AAAA,QACT;AAAA,UACC,IAAI;AAAA,UACJ,MAAM,KAAK,EAAE,QAAQ,GAAG;AACvB,kBAAM,QAAQ;AAAA,cACb;AAAA,cACA;AAAA,gBACC,iBAAiB;AAAA,gBACjB,oBAAoB;AAAA,gBACpB,mBAAmB;AAAA,gBACnB,oBAAoB;AAAA,gBACpB,iBAAiB;AAAA,gBACjB,QAAQ;AAAA,gBACR,gBAAgB;AAAA,gBAChB,OAAO,QAAQ;AAAA,gBACf,MAAM,QAAQ;AAAA,gBACd,kCAAkC;AAAA,gBAClC,yBAAyB;AAAA,gBACzB,+BAA+B;AAAA,gBAC/B,wBAAwB;AAAA,kBACvB,QAAQ,OAAO,qBAAqB,IAAI,CAAC,aAAa;AAAA,oBACrD;AAAA,kBACD,EAAE;AAAA,kBACF,QAAQ;AAAA,gBACT;AAAA,gBACA,cAAc;AAAA,cACf;AAAA,YACD;AAAA,UACD;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockRepositoryLabels: create.BlockWithoutAddons<{
|
|
4
|
+
description: string;
|
|
5
|
+
email: {
|
|
6
|
+
github: string;
|
|
7
|
+
npm: string;
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
owner: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
access?: "public" | "restricted" | undefined;
|
|
13
|
+
author?: string | undefined;
|
|
14
|
+
bin?: string | undefined;
|
|
15
|
+
login?: string | undefined;
|
|
16
|
+
contributors?: {
|
|
17
|
+
name: string;
|
|
18
|
+
avatar_url: string;
|
|
19
|
+
contributions: string[];
|
|
20
|
+
login: string;
|
|
21
|
+
profile: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
documentation?: string | undefined;
|
|
24
|
+
funding?: string | undefined;
|
|
25
|
+
guide?: {
|
|
26
|
+
href: string;
|
|
27
|
+
title: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
hideTemplatedBy?: boolean | undefined;
|
|
30
|
+
keywords?: string[] | undefined;
|
|
31
|
+
logo?: {
|
|
32
|
+
alt: string;
|
|
33
|
+
src: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
node?: {
|
|
36
|
+
minimum: string;
|
|
37
|
+
pinned?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
packageData?: {
|
|
40
|
+
dependencies?: Record<string, string> | undefined;
|
|
41
|
+
devDependencies?: Record<string, string> | undefined;
|
|
42
|
+
scripts?: Record<string, string> | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
export { blockRepositoryLabels };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { outcomeLabels } from "../../steps/initializeGitHubRepository/outcomeLabels.js";
|
|
2
|
+
import { base } from "../base.js";
|
|
3
|
+
const blockRepositoryLabels = base.createBlock({
|
|
4
|
+
about: {
|
|
5
|
+
name: "Repository Labels"
|
|
6
|
+
},
|
|
7
|
+
produce({ options }) {
|
|
8
|
+
return {
|
|
9
|
+
scripts: [
|
|
10
|
+
`npx set-github-repository-labels --labels ${JSON.stringify(outcomeLabels)} --owner "${options.owner}" --repository "${options.repository}"`
|
|
11
|
+
]
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
blockRepositoryLabels
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=blockRepositoryLabels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockRepositoryLabels.ts"],"sourcesContent":["import { outcomeLabels } from \"../../steps/initializeGitHubRepository/outcomeLabels.js\";\nimport { base } from \"../base.js\";\n\nexport const blockRepositoryLabels = base.createBlock({\n\tabout: {\n\t\tname: \"Repository Labels\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t`npx set-github-repository-labels --labels ${JSON.stringify(outcomeLabels)} --owner \"${options.owner}\" --repository \"${options.repository}\"`,\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,qBAAqB;AAC9B,SAAS,YAAY;AAEd,MAAM,wBAAwB,KAAK,YAAY;AAAA,EACrD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,QAAQ,GAAG;AACpB,WAAO;AAAA,MACN,SAAS;AAAA,QACR,6CAA6C,KAAK,UAAU,aAAa,CAAC,aAAa,QAAQ,KAAK,mBAAmB,QAAQ,UAAU;AAAA,MAC1I;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockRepositorySettings: create.BlockWithoutAddons<{
|
|
4
|
+
description: string;
|
|
5
|
+
email: {
|
|
6
|
+
github: string;
|
|
7
|
+
npm: string;
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
owner: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
access?: "public" | "restricted" | undefined;
|
|
13
|
+
author?: string | undefined;
|
|
14
|
+
bin?: string | undefined;
|
|
15
|
+
login?: string | undefined;
|
|
16
|
+
contributors?: {
|
|
17
|
+
name: string;
|
|
18
|
+
avatar_url: string;
|
|
19
|
+
contributions: string[];
|
|
20
|
+
login: string;
|
|
21
|
+
profile: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
documentation?: string | undefined;
|
|
24
|
+
funding?: string | undefined;
|
|
25
|
+
guide?: {
|
|
26
|
+
href: string;
|
|
27
|
+
title: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
hideTemplatedBy?: boolean | undefined;
|
|
30
|
+
keywords?: string[] | undefined;
|
|
31
|
+
logo?: {
|
|
32
|
+
alt: string;
|
|
33
|
+
src: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
node?: {
|
|
36
|
+
minimum: string;
|
|
37
|
+
pinned?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
packageData?: {
|
|
40
|
+
dependencies?: Record<string, string> | undefined;
|
|
41
|
+
devDependencies?: Record<string, string> | undefined;
|
|
42
|
+
scripts?: Record<string, string> | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
export { blockRepositorySettings };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { base } from "../base.js";
|
|
2
|
+
const blockRepositorySettings = base.createBlock({
|
|
3
|
+
about: {
|
|
4
|
+
name: "Repository Settings"
|
|
5
|
+
},
|
|
6
|
+
produce({ options }) {
|
|
7
|
+
return {
|
|
8
|
+
requests: [
|
|
9
|
+
{
|
|
10
|
+
id: "repository-settings",
|
|
11
|
+
async send({ octokit }) {
|
|
12
|
+
await octokit.rest.repos.update({
|
|
13
|
+
allow_auto_merge: true,
|
|
14
|
+
allow_rebase_merge: false,
|
|
15
|
+
allow_squash_merge: true,
|
|
16
|
+
default_branch: "main",
|
|
17
|
+
delete_branch_on_merge: true,
|
|
18
|
+
description: options.description,
|
|
19
|
+
has_wiki: false,
|
|
20
|
+
owner: options.owner,
|
|
21
|
+
repo: options.repository,
|
|
22
|
+
security_and_analysis: {
|
|
23
|
+
secret_scanning: {
|
|
24
|
+
status: "enabled"
|
|
25
|
+
},
|
|
26
|
+
secret_scanning_push_protection: {
|
|
27
|
+
status: "enabled"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
squash_merge_commit_message: "PR_BODY",
|
|
31
|
+
squash_merge_commit_title: "PR_TITLE"
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
blockRepositorySettings
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=blockRepositorySettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockRepositorySettings.ts"],"sourcesContent":["import { base } from \"../base.js\";\n\nexport const blockRepositorySettings = base.createBlock({\n\tabout: {\n\t\tname: \"Repository Settings\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\trequests: [\n\t\t\t\t{\n\t\t\t\t\tid: \"repository-settings\",\n\t\t\t\t\tasync send({ octokit }) {\n\t\t\t\t\t\tawait octokit.rest.repos.update({\n\t\t\t\t\t\t\tallow_auto_merge: true,\n\t\t\t\t\t\t\tallow_rebase_merge: false,\n\t\t\t\t\t\t\tallow_squash_merge: true,\n\t\t\t\t\t\t\tdefault_branch: \"main\",\n\t\t\t\t\t\t\tdelete_branch_on_merge: true,\n\t\t\t\t\t\t\tdescription: options.description,\n\t\t\t\t\t\t\thas_wiki: false,\n\t\t\t\t\t\t\towner: options.owner,\n\t\t\t\t\t\t\trepo: options.repository,\n\t\t\t\t\t\t\tsecurity_and_analysis: {\n\t\t\t\t\t\t\t\tsecret_scanning: {\n\t\t\t\t\t\t\t\t\tstatus: \"enabled\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tsecret_scanning_push_protection: {\n\t\t\t\t\t\t\t\t\tstatus: \"enabled\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsquash_merge_commit_message: \"PR_BODY\",\n\t\t\t\t\t\t\tsquash_merge_commit_title: \"PR_TITLE\",\n\t\t\t\t\t\t});\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,YAAY;AAEd,MAAM,0BAA0B,KAAK,YAAY;AAAA,EACvD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,QAAQ,GAAG;AACpB,WAAO;AAAA,MACN,UAAU;AAAA,QACT;AAAA,UACC,IAAI;AAAA,UACJ,MAAM,KAAK,EAAE,QAAQ,GAAG;AACvB,kBAAM,QAAQ,KAAK,MAAM,OAAO;AAAA,cAC/B,kBAAkB;AAAA,cAClB,oBAAoB;AAAA,cACpB,oBAAoB;AAAA,cACpB,gBAAgB;AAAA,cAChB,wBAAwB;AAAA,cACxB,aAAa,QAAQ;AAAA,cACrB,UAAU;AAAA,cACV,OAAO,QAAQ;AAAA,cACf,MAAM,QAAQ;AAAA,cACd,uBAAuB;AAAA,gBACtB,iBAAiB;AAAA,kBAChB,QAAQ;AAAA,gBACT;AAAA,gBACA,iCAAiC;AAAA,kBAChC,QAAQ;AAAA,gBACT;AAAA,cACD;AAAA,cACA,6BAA6B;AAAA,cAC7B,2BAA2B;AAAA,YAC5B,CAAC;AAAA,UACF;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockSecurityDocs: create.BlockWithoutAddons<{
|
|
4
|
+
description: string;
|
|
5
|
+
email: {
|
|
6
|
+
github: string;
|
|
7
|
+
npm: string;
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
owner: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
access?: "public" | "restricted" | undefined;
|
|
13
|
+
author?: string | undefined;
|
|
14
|
+
bin?: string | undefined;
|
|
15
|
+
login?: string | undefined;
|
|
16
|
+
contributors?: {
|
|
17
|
+
name: string;
|
|
18
|
+
avatar_url: string;
|
|
19
|
+
contributions: string[];
|
|
20
|
+
login: string;
|
|
21
|
+
profile: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
documentation?: string | undefined;
|
|
24
|
+
funding?: string | undefined;
|
|
25
|
+
guide?: {
|
|
26
|
+
href: string;
|
|
27
|
+
title: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
hideTemplatedBy?: boolean | undefined;
|
|
30
|
+
keywords?: string[] | undefined;
|
|
31
|
+
logo?: {
|
|
32
|
+
alt: string;
|
|
33
|
+
src: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
node?: {
|
|
36
|
+
minimum: string;
|
|
37
|
+
pinned?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
packageData?: {
|
|
40
|
+
dependencies?: Record<string, string> | undefined;
|
|
41
|
+
devDependencies?: Record<string, string> | undefined;
|
|
42
|
+
scripts?: Record<string, string> | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
export { blockSecurityDocs };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { base } from "../base.js";
|
|
2
|
+
const blockSecurityDocs = base.createBlock({
|
|
3
|
+
about: {
|
|
4
|
+
name: "Security Docs"
|
|
5
|
+
},
|
|
6
|
+
produce({ options }) {
|
|
7
|
+
return {
|
|
8
|
+
files: {
|
|
9
|
+
".github": {
|
|
10
|
+
"SECURITY.md": `# Security Policy
|
|
11
|
+
|
|
12
|
+
We take all security vulnerabilities seriously.
|
|
13
|
+
If you have a vulnerability or other security issues to disclose:
|
|
14
|
+
|
|
15
|
+
- Thank you very much, please do!
|
|
16
|
+
- Please send them to us by emailing \`${options.email.github}\`
|
|
17
|
+
|
|
18
|
+
We appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions.
|
|
19
|
+
`
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
blockSecurityDocs
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=blockSecurityDocs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockSecurityDocs.ts"],"sourcesContent":["import { base } from \"../base.js\";\n\nexport const blockSecurityDocs = base.createBlock({\n\tabout: {\n\t\tname: \"Security Docs\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\t\"SECURITY.md\": `# Security Policy\n\nWe take all security vulnerabilities seriously.\nIf you have a vulnerability or other security issues to disclose:\n\n- Thank you very much, please do!\n- Please send them to us by emailing \\`${options.email.github}\\`\n\nWe appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions.\n`,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,YAAY;AAEd,MAAM,oBAAoB,KAAK,YAAY;AAAA,EACjD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,QAAQ,GAAG;AACpB,WAAO;AAAA,MACN,OAAO;AAAA,QACN,WAAW;AAAA,UACV,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yCAMqB,QAAQ,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA,QAIzD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockTSup: create.BlockWithAddons<{
|
|
4
|
+
entry: string[];
|
|
5
|
+
}, {
|
|
6
|
+
description: string;
|
|
7
|
+
email: {
|
|
8
|
+
github: string;
|
|
9
|
+
npm: string;
|
|
10
|
+
};
|
|
11
|
+
title: string;
|
|
12
|
+
owner: string;
|
|
13
|
+
repository: string;
|
|
14
|
+
access?: "public" | "restricted" | undefined;
|
|
15
|
+
author?: string | undefined;
|
|
16
|
+
bin?: string | undefined;
|
|
17
|
+
login?: string | undefined;
|
|
18
|
+
contributors?: {
|
|
19
|
+
name: string;
|
|
20
|
+
avatar_url: string;
|
|
21
|
+
contributions: string[];
|
|
22
|
+
login: string;
|
|
23
|
+
profile: string;
|
|
24
|
+
}[] | undefined;
|
|
25
|
+
documentation?: string | undefined;
|
|
26
|
+
funding?: string | undefined;
|
|
27
|
+
guide?: {
|
|
28
|
+
href: string;
|
|
29
|
+
title: string;
|
|
30
|
+
} | undefined;
|
|
31
|
+
hideTemplatedBy?: boolean | undefined;
|
|
32
|
+
keywords?: string[] | undefined;
|
|
33
|
+
logo?: {
|
|
34
|
+
alt: string;
|
|
35
|
+
src: string;
|
|
36
|
+
} | undefined;
|
|
37
|
+
node?: {
|
|
38
|
+
minimum: string;
|
|
39
|
+
pinned?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
packageData?: {
|
|
42
|
+
dependencies?: Record<string, string> | undefined;
|
|
43
|
+
devDependencies?: Record<string, string> | undefined;
|
|
44
|
+
scripts?: Record<string, string> | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
47
|
+
version?: string | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
|
|
50
|
+
export { blockTSup };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { base } from "../base.js";
|
|
3
|
+
import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
|
|
4
|
+
import { blockESLint } from "./blockESLint.js";
|
|
5
|
+
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.js";
|
|
6
|
+
import { blockPackageJson } from "./blockPackageJson.js";
|
|
7
|
+
import { getPackageDependencies } from "./packageData.js";
|
|
8
|
+
import { CommandPhase } from "./phases.js";
|
|
9
|
+
const blockTSup = base.createBlock({
|
|
10
|
+
about: {
|
|
11
|
+
name: "tsup"
|
|
12
|
+
},
|
|
13
|
+
addons: {
|
|
14
|
+
entry: z.array(z.string()).default([])
|
|
15
|
+
},
|
|
16
|
+
migrate() {
|
|
17
|
+
return {
|
|
18
|
+
scripts: [
|
|
19
|
+
{
|
|
20
|
+
commands: ["rm -rf .babelrc* babel.config.* dist lib"],
|
|
21
|
+
phase: CommandPhase.Migrations
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
produce({ addons, options }) {
|
|
27
|
+
const { entry } = addons;
|
|
28
|
+
return {
|
|
29
|
+
addons: [
|
|
30
|
+
blockDevelopmentDocs({
|
|
31
|
+
sections: {
|
|
32
|
+
Building: {
|
|
33
|
+
contents: `
|
|
34
|
+
Run [**tsup**](https://tsup.egoist.dev) locally to build source files from \`src/\` into output files in \`lib/\`:
|
|
35
|
+
|
|
36
|
+
\`\`\`shell
|
|
37
|
+
pnpm build
|
|
38
|
+
\`\`\`
|
|
39
|
+
|
|
40
|
+
Add \`--watch\` to run the builder in a watch mode that continuously cleans and recreates \`lib/\` as you save files:
|
|
41
|
+
|
|
42
|
+
\`\`\`shell
|
|
43
|
+
pnpm build --watch
|
|
44
|
+
\`\`\`
|
|
45
|
+
`
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}),
|
|
49
|
+
blockESLint({
|
|
50
|
+
beforeLint: `Note that you'll need to run \`pnpm build\` before \`pnpm lint\` so that lint rules which check the file system can pick up on any built files.`
|
|
51
|
+
}),
|
|
52
|
+
blockGitHubActionsCI({
|
|
53
|
+
jobs: [
|
|
54
|
+
{
|
|
55
|
+
name: "Build",
|
|
56
|
+
steps: [{ run: "pnpm build" }, { run: "node ./lib/index.js" }]
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}),
|
|
60
|
+
blockPackageJson({
|
|
61
|
+
properties: {
|
|
62
|
+
devDependencies: getPackageDependencies("tsup"),
|
|
63
|
+
scripts: {
|
|
64
|
+
build: "tsup"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
})
|
|
68
|
+
],
|
|
69
|
+
files: {
|
|
70
|
+
"tsup.config.ts": `import { defineConfig } from "tsup";
|
|
71
|
+
|
|
72
|
+
export default defineConfig({
|
|
73
|
+
bundle: false,
|
|
74
|
+
clean: true,
|
|
75
|
+
dts: true,
|
|
76
|
+
entry: ${JSON.stringify(["src/**/*.ts", ...entry])},
|
|
77
|
+
format: "esm",
|
|
78
|
+
outDir: "lib",
|
|
79
|
+
sourcemap: true,
|
|
80
|
+
});
|
|
81
|
+
`
|
|
82
|
+
},
|
|
83
|
+
scripts: options.bin ? [
|
|
84
|
+
{
|
|
85
|
+
commands: ["pnpm build"],
|
|
86
|
+
phase: CommandPhase.Build
|
|
87
|
+
}
|
|
88
|
+
] : void 0
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
export {
|
|
93
|
+
blockTSup
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=blockTSup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/next/blocks/blockTSup.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockESLint } from \"./blockESLint.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { getPackageDependencies } from \"./packageData.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockTSup = base.createBlock({\n\tabout: {\n\t\tname: \"tsup\",\n\t},\n\taddons: {\n\t\tentry: z.array(z.string()).default([]),\n\t},\n\tmigrate() {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"rm -rf .babelrc* babel.config.* dist lib\"],\n\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\tproduce({ addons, options }) {\n\t\tconst { entry } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tBuilding: {\n\t\t\t\t\t\t\tcontents: `\nRun [**tsup**](https://tsup.egoist.dev) locally to build source files from \\`src/\\` into output files in \\`lib/\\`:\n\n\\`\\`\\`shell\npnpm build\n\\`\\`\\`\n\nAdd \\`--watch\\` to run the builder in a watch mode that continuously cleans and recreates \\`lib/\\` as you save files:\n\n\\`\\`\\`shell\npnpm build --watch\n\\`\\`\\`\n`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockESLint({\n\t\t\t\t\tbeforeLint: `Note that you'll need to run \\`pnpm build\\` before \\`pnpm lint\\` so that lint rules which check the file system can pick up on any built files.`,\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Build\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm build\" }, { run: \"node ./lib/index.js\" }],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"tsup\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\tbuild: \"tsup\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\"tsup.config.ts\": `import { defineConfig } from \"tsup\";\n\nexport default defineConfig({\n\tbundle: false,\n\tclean: true,\n\tdts: true,\n\tentry: ${JSON.stringify([\"src/**/*.ts\", ...entry])},\n\tformat: \"esm\",\n\toutDir: \"lib\",\n\tsourcemap: true,\n});\n`,\n\t\t\t},\n\t\t\tscripts: options.bin\n\t\t\t\t? [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcommands: [\"pnpm build\"],\n\t\t\t\t\t\t\tphase: CommandPhase.Build,\n\t\t\t\t\t\t},\n\t\t\t\t\t]\n\t\t\t\t: undefined,\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,4BAA4B;AACrC,SAAS,mBAAmB;AAC5B,SAAS,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,8BAA8B;AACvC,SAAS,oBAAoB;AAEtB,MAAM,YAAY,KAAK,YAAY;AAAA,EACzC,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,EACtC;AAAA,EACA,UAAU;AACT,WAAO;AAAA,MACN,SAAS;AAAA,QACR;AAAA,UACC,UAAU,CAAC,0CAA0C;AAAA,UACrD,OAAO,aAAa;AAAA,QACrB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,QAAQ,EAAE,QAAQ,QAAQ,GAAG;AAC5B,UAAM,EAAE,MAAM,IAAI;AAElB,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,qBAAqB;AAAA,UACpB,UAAU;AAAA,YACT,UAAU;AAAA,cACT,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAaX;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,YAAY;AAAA,UACX,YAAY;AAAA,QACb,CAAC;AAAA,QACD,qBAAqB;AAAA,UACpB,MAAM;AAAA,YACL;AAAA,cACC,MAAM;AAAA,cACN,OAAO,CAAC,EAAE,KAAK,aAAa,GAAG,EAAE,KAAK,sBAAsB,CAAC;AAAA,YAC9D;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,iBAAiB;AAAA,UAChB,YAAY;AAAA,YACX,iBAAiB,uBAAuB,MAAM;AAAA,YAC9C,SAAS;AAAA,cACR,OAAO;AAAA,YACR;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAMZ,KAAK,UAAU,CAAC,eAAe,GAAG,KAAK,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAMhD;AAAA,MACA,SAAS,QAAQ,MACd;AAAA,QACA;AAAA,UACC,UAAU,CAAC,YAAY;AAAA,UACvB,OAAO,aAAa;AAAA,QACrB;AAAA,MACD,IACC;AAAA,IACJ;AAAA,EACD;AACD,CAAC;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as create from 'create';
|
|
2
|
+
|
|
3
|
+
declare const blockTemplatedBy: create.BlockWithoutAddons<{
|
|
4
|
+
description: string;
|
|
5
|
+
email: {
|
|
6
|
+
github: string;
|
|
7
|
+
npm: string;
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
owner: string;
|
|
11
|
+
repository: string;
|
|
12
|
+
access?: "public" | "restricted" | undefined;
|
|
13
|
+
author?: string | undefined;
|
|
14
|
+
bin?: string | undefined;
|
|
15
|
+
login?: string | undefined;
|
|
16
|
+
contributors?: {
|
|
17
|
+
name: string;
|
|
18
|
+
avatar_url: string;
|
|
19
|
+
contributions: string[];
|
|
20
|
+
login: string;
|
|
21
|
+
profile: string;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
documentation?: string | undefined;
|
|
24
|
+
funding?: string | undefined;
|
|
25
|
+
guide?: {
|
|
26
|
+
href: string;
|
|
27
|
+
title: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
hideTemplatedBy?: boolean | undefined;
|
|
30
|
+
keywords?: string[] | undefined;
|
|
31
|
+
logo?: {
|
|
32
|
+
alt: string;
|
|
33
|
+
src: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
node?: {
|
|
36
|
+
minimum: string;
|
|
37
|
+
pinned?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
packageData?: {
|
|
40
|
+
dependencies?: Record<string, string> | undefined;
|
|
41
|
+
devDependencies?: Record<string, string> | undefined;
|
|
42
|
+
scripts?: Record<string, string> | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
preserveGeneratedFrom?: boolean | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
|
|
48
|
+
export { blockTemplatedBy };
|