create-typescript-app 2.0.0-beta.8 → 2.0.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 +14 -15
- package/bin/index.js +3 -13
- package/lib/base.d.ts +4 -3
- package/lib/base.js +25 -15
- package/lib/base.js.map +1 -1
- package/lib/blocks/blockAllContributors.d.ts +5 -4
- package/lib/blocks/blockAllContributors.js +3 -2
- package/lib/blocks/blockAllContributors.js.map +1 -1
- package/lib/blocks/blockAreTheTypesWrong.d.ts +5 -4
- package/lib/blocks/blockCSpell.d.ts +5 -4
- package/lib/blocks/blockCSpell.js +13 -13
- package/lib/blocks/blockCSpell.js.map +1 -1
- package/lib/blocks/blockCodecov.d.ts +5 -4
- package/lib/blocks/blockCodecov.js +11 -11
- package/lib/blocks/blockCodecov.js.map +1 -1
- package/lib/blocks/blockContributingDocs.d.ts +5 -4
- package/lib/blocks/blockContributingDocs.js +11 -11
- package/lib/blocks/blockContributingDocs.js.map +1 -1
- package/lib/blocks/blockContributorCovenant.d.ts +5 -4
- package/lib/blocks/blockContributorCovenant.js +11 -11
- package/lib/blocks/blockContributorCovenant.js.map +1 -1
- package/lib/blocks/blockDevelopmentDocs.d.ts +5 -4
- package/lib/blocks/blockDevelopmentDocs.js +11 -11
- package/lib/blocks/blockDevelopmentDocs.js.map +1 -1
- package/lib/blocks/blockESLint.d.ts +5 -4
- package/lib/blocks/blockESLint.js +11 -11
- package/lib/blocks/blockESLint.js.map +1 -1
- package/lib/blocks/blockESLintComments.d.ts +5 -4
- package/lib/blocks/blockESLintJSDoc.d.ts +5 -4
- package/lib/blocks/blockESLintJSONC.d.ts +5 -4
- package/lib/blocks/blockESLintMarkdown.d.ts +5 -4
- package/lib/blocks/blockESLintMoreStyling.d.ts +5 -4
- package/lib/blocks/blockESLintNode.d.ts +5 -4
- package/lib/blocks/blockESLintPackageJson.d.ts +5 -4
- package/lib/blocks/blockESLintPerfectionist.d.ts +5 -4
- package/lib/blocks/blockESLintRegexp.d.ts +5 -4
- package/lib/blocks/blockESLintYML.d.ts +5 -4
- package/lib/blocks/blockExampleFiles.d.ts +5 -4
- package/lib/blocks/blockExampleFiles.js +3 -2
- package/lib/blocks/blockExampleFiles.js.map +1 -1
- package/lib/blocks/blockFunding.d.ts +5 -4
- package/lib/blocks/blockGitHubActionsCI.d.ts +5 -4
- package/lib/blocks/blockGitHubActionsCI.js +11 -11
- package/lib/blocks/blockGitHubActionsCI.js.map +1 -1
- package/lib/blocks/blockGitHubApps.d.ts +5 -4
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +5 -4
- package/lib/blocks/blockGitHubPRTemplate.d.ts +5 -4
- package/lib/blocks/blockGitignore.d.ts +5 -4
- package/lib/blocks/blockKnip.d.ts +5 -4
- package/lib/blocks/blockKnip.js +11 -11
- package/lib/blocks/blockKnip.js.map +1 -1
- package/lib/blocks/blockMITLicense.d.ts +5 -4
- package/lib/blocks/blockMarkdownlint.d.ts +5 -4
- package/lib/blocks/blockNvmrc.d.ts +5 -4
- package/lib/blocks/blockPRCompliance.d.ts +5 -4
- package/lib/blocks/blockPackageJson.d.ts +5 -4
- package/lib/blocks/blockPackageJson.js +11 -11
- package/lib/blocks/blockPackageJson.js.map +1 -1
- package/lib/blocks/blockPnpmDedupe.d.ts +5 -4
- package/lib/blocks/blockPrettier.d.ts +5 -4
- package/lib/blocks/blockPrettier.js +11 -10
- package/lib/blocks/blockPrettier.js.map +1 -1
- package/lib/blocks/blockPrettierPluginCurly.d.ts +5 -4
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +5 -4
- package/lib/blocks/blockPrettierPluginSh.d.ts +5 -4
- package/lib/blocks/blockREADME.d.ts +5 -4
- package/lib/blocks/blockReleaseIt.d.ts +5 -4
- package/lib/blocks/blockReleaseIt.js +0 -1
- package/lib/blocks/blockReleaseIt.js.map +1 -1
- package/lib/blocks/blockRenovate.d.ts +5 -4
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +5 -4
- package/lib/blocks/blockRepositoryBranchRuleset.js +78 -54
- package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -1
- package/lib/blocks/blockRepositoryLabels.d.ts +5 -4
- package/lib/blocks/blockRepositorySecrets.d.ts +6 -5
- package/lib/blocks/blockRepositorySettings.d.ts +5 -4
- package/lib/blocks/blockSecurityDocs.d.ts +5 -4
- package/lib/blocks/blockTSup.d.ts +5 -4
- package/lib/blocks/blockTSup.js +18 -18
- package/lib/blocks/blockTSup.js.map +1 -1
- package/lib/blocks/blockTemplatedWith.d.ts +5 -4
- package/lib/blocks/blockTemplatedWith.js +2 -2
- package/lib/blocks/blockTemplatedWith.js.map +1 -1
- package/lib/blocks/blockTypeScript.d.ts +5 -4
- package/lib/blocks/blockVSCode.d.ts +5 -4
- package/lib/blocks/blockVitest.d.ts +5 -4
- package/lib/blocks/blockVitest.js +17 -17
- package/lib/blocks/blockVitest.js.map +1 -1
- package/lib/blocks/index.d.ts +173 -130
- package/lib/data/contributions.d.ts +3 -0
- package/lib/data/contributions.js +14 -0
- package/lib/data/contributions.js.map +1 -0
- package/lib/data/packageData.d.ts +40 -44
- package/lib/index.d.ts +155 -3
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/inputs/inputFromOctokit.d.ts +9 -0
- package/lib/inputs/inputFromOctokit.js +28 -0
- package/lib/inputs/inputFromOctokit.js.map +1 -0
- package/lib/options/readAllContributors.d.ts +6 -0
- package/lib/options/readAllContributors.js +27 -0
- package/lib/options/readAllContributors.js.map +1 -0
- package/lib/options/readDocumentation.d.ts +1 -1
- package/lib/options/readDocumentation.js.map +1 -1
- package/lib/presets/common.d.ts +5 -4
- package/lib/presets/everything.d.ts +5 -4
- package/lib/presets/index.d.ts +13 -10
- package/lib/presets/minimal.d.ts +5 -4
- package/lib/template.d.ts +6 -5
- package/lib/template.js +6 -4
- package/lib/template.js.map +1 -1
- package/package.json +38 -40
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockESLintJSONC:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockESLintJSONC: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockESLintJSONC: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,7 @@ declare const blockESLintJSONC: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
rulesetId?: string | undefined;
|
|
46
47
|
usage?: string | undefined;
|
|
47
48
|
version?: string | undefined;
|
|
48
49
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockESLintMarkdown:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockESLintMarkdown: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockESLintMarkdown: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,7 @@ declare const blockESLintMarkdown: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
rulesetId?: string | undefined;
|
|
46
47
|
usage?: string | undefined;
|
|
47
48
|
version?: string | undefined;
|
|
48
49
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockESLintMoreStyling:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockESLintMoreStyling: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockESLintMoreStyling: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,7 @@ declare const blockESLintMoreStyling: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
rulesetId?: string | undefined;
|
|
46
47
|
usage?: string | undefined;
|
|
47
48
|
version?: string | undefined;
|
|
48
49
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockESLintNode:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockESLintNode: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockESLintNode: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,7 @@ declare const blockESLintNode: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
rulesetId?: string | undefined;
|
|
46
47
|
usage?: string | undefined;
|
|
47
48
|
version?: string | undefined;
|
|
48
49
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockESLintPackageJson:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockESLintPackageJson: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockESLintPackageJson: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,7 @@ declare const blockESLintPackageJson: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
rulesetId?: string | undefined;
|
|
46
47
|
usage?: string | undefined;
|
|
47
48
|
version?: string | undefined;
|
|
48
49
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockESLintPerfectionist:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockESLintPerfectionist: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockESLintPerfectionist: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,7 @@ declare const blockESLintPerfectionist: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
rulesetId?: string | undefined;
|
|
46
47
|
usage?: string | undefined;
|
|
47
48
|
version?: string | undefined;
|
|
48
49
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockESLintRegexp:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockESLintRegexp: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockESLintRegexp: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,7 @@ declare const blockESLintRegexp: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
rulesetId?: string | undefined;
|
|
46
47
|
usage?: string | undefined;
|
|
47
48
|
version?: string | undefined;
|
|
48
49
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockESLintYML:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockESLintYML: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockESLintYML: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,7 @@ declare const blockESLintYML: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
rulesetId?: string | undefined;
|
|
46
47
|
usage?: string | undefined;
|
|
47
48
|
version?: string | undefined;
|
|
48
49
|
}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockExampleFiles:
|
|
3
|
+
declare const blockExampleFiles: bingo_stratum.BlockWithAddons<{
|
|
4
4
|
files: Record<string, string>;
|
|
5
5
|
}, {
|
|
6
|
-
description: string;
|
|
7
6
|
access: "public" | "restricted";
|
|
7
|
+
description: string;
|
|
8
8
|
directory: string;
|
|
9
9
|
email: {
|
|
10
10
|
github: string;
|
|
@@ -16,10 +16,10 @@ declare const blockExampleFiles: create.BlockWithAddons<{
|
|
|
16
16
|
author?: string | undefined;
|
|
17
17
|
bin?: string | undefined;
|
|
18
18
|
contributors?: {
|
|
19
|
-
name: string;
|
|
20
19
|
avatar_url: string;
|
|
21
20
|
contributions: string[];
|
|
22
21
|
login: string;
|
|
22
|
+
name: string;
|
|
23
23
|
profile: string;
|
|
24
24
|
}[] | undefined;
|
|
25
25
|
documentation?: string | undefined;
|
|
@@ -45,6 +45,7 @@ declare const blockExampleFiles: create.BlockWithAddons<{
|
|
|
45
45
|
devDependencies?: Record<string, string> | undefined;
|
|
46
46
|
scripts?: Record<string, string> | undefined;
|
|
47
47
|
} | undefined;
|
|
48
|
+
rulesetId?: string | undefined;
|
|
48
49
|
usage?: string | undefined;
|
|
49
50
|
version?: string | undefined;
|
|
50
51
|
}>;
|
|
@@ -7,14 +7,15 @@ const blockExampleFiles = base.createBlock({
|
|
|
7
7
|
addons: {
|
|
8
8
|
files: z.record(z.string()).default({})
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
setup({ addons }) {
|
|
11
11
|
return {
|
|
12
12
|
files: {
|
|
13
13
|
src: addons.files
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
},
|
|
17
|
-
// TODO: Make produce() optional
|
|
17
|
+
// TODO: Make produce() optional
|
|
18
|
+
// This needs createBlock to be generic to know if block.produce({}) is ok
|
|
18
19
|
produce() {
|
|
19
20
|
return {};
|
|
20
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/blocks/blockExampleFiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\n\nexport const blockExampleFiles = base.createBlock({\n\tabout: {\n\t\tname: \"Example Files\",\n\t},\n\taddons: {\n\t\tfiles: z.record(z.string()).default({}),\n\t},\n\
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockExampleFiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\n\nexport const blockExampleFiles = base.createBlock({\n\tabout: {\n\t\tname: \"Example Files\",\n\t},\n\taddons: {\n\t\tfiles: z.record(z.string()).default({}),\n\t},\n\tsetup({ addons }) {\n\t\treturn {\n\t\t\tfiles: {\n\t\t\t\tsrc: addons.files,\n\t\t\t},\n\t\t};\n\t},\n\t// TODO: Make produce() optional\n\t// This needs createBlock to be generic to know if block.produce({}) is ok\n\tproduce() {\n\t\treturn {};\n\t},\n});\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,YAAY;AAEd,MAAM,oBAAoB,KAAK,YAAY;AAAA,EACjD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,EACvC;AAAA,EACA,MAAM,EAAE,OAAO,GAAG;AACjB,WAAO;AAAA,MACN,OAAO;AAAA,QACN,KAAK,OAAO;AAAA,MACb;AAAA,IACD;AAAA,EACD;AAAA;AAAA;AAAA,EAGA,UAAU;AACT,WAAO,CAAC;AAAA,EACT;AACD,CAAC;","names":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockFunding:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockFunding: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockFunding: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,7 @@ declare const blockFunding: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
rulesetId?: string | undefined;
|
|
46
47
|
usage?: string | undefined;
|
|
47
48
|
version?: string | undefined;
|
|
48
49
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare const zActionStep: z.ZodIntersection<z.ZodObject<{
|
|
@@ -26,7 +26,7 @@ declare const zActionStep: z.ZodIntersection<z.ZodObject<{
|
|
|
26
26
|
}, {
|
|
27
27
|
uses: string;
|
|
28
28
|
}>]>>;
|
|
29
|
-
declare const blockGitHubActionsCI:
|
|
29
|
+
declare const blockGitHubActionsCI: bingo_stratum.BlockWithAddons<{
|
|
30
30
|
jobs?: {
|
|
31
31
|
name: string;
|
|
32
32
|
steps: ({
|
|
@@ -40,8 +40,8 @@ declare const blockGitHubActionsCI: create.BlockWithAddons<{
|
|
|
40
40
|
}))[];
|
|
41
41
|
}[] | undefined;
|
|
42
42
|
}, {
|
|
43
|
-
description: string;
|
|
44
43
|
access: "public" | "restricted";
|
|
44
|
+
description: string;
|
|
45
45
|
directory: string;
|
|
46
46
|
email: {
|
|
47
47
|
github: string;
|
|
@@ -53,10 +53,10 @@ declare const blockGitHubActionsCI: create.BlockWithAddons<{
|
|
|
53
53
|
author?: string | undefined;
|
|
54
54
|
bin?: string | undefined;
|
|
55
55
|
contributors?: {
|
|
56
|
-
name: string;
|
|
57
56
|
avatar_url: string;
|
|
58
57
|
contributions: string[];
|
|
59
58
|
login: string;
|
|
59
|
+
name: string;
|
|
60
60
|
profile: string;
|
|
61
61
|
}[] | undefined;
|
|
62
62
|
documentation?: string | undefined;
|
|
@@ -82,6 +82,7 @@ declare const blockGitHubActionsCI: create.BlockWithAddons<{
|
|
|
82
82
|
devDependencies?: Record<string, string> | undefined;
|
|
83
83
|
scripts?: Record<string, string> | undefined;
|
|
84
84
|
} | undefined;
|
|
85
|
+
rulesetId?: string | undefined;
|
|
85
86
|
usage?: string | undefined;
|
|
86
87
|
version?: string | undefined;
|
|
87
88
|
}>;
|
|
@@ -25,17 +25,6 @@ const blockGitHubActionsCI = base.createBlock({
|
|
|
25
25
|
})
|
|
26
26
|
).optional()
|
|
27
27
|
},
|
|
28
|
-
migrate() {
|
|
29
|
-
return {
|
|
30
|
-
scripts: [
|
|
31
|
-
{
|
|
32
|
-
commands: ["rm -rf .circleci travis.yml"],
|
|
33
|
-
phase: CommandPhase.Migrations,
|
|
34
|
-
silent: true
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
28
|
produce({ addons }) {
|
|
40
29
|
const { jobs } = addons;
|
|
41
30
|
return {
|
|
@@ -129,6 +118,17 @@ echo "See https://github.com/actions-ecosystem/action-remove-labels/issues/221."
|
|
|
129
118
|
}
|
|
130
119
|
}
|
|
131
120
|
};
|
|
121
|
+
},
|
|
122
|
+
transition() {
|
|
123
|
+
return {
|
|
124
|
+
scripts: [
|
|
125
|
+
{
|
|
126
|
+
commands: ["rm -rf .circleci travis.yml"],
|
|
127
|
+
phase: CommandPhase.Migrations,
|
|
128
|
+
silent: true
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
};
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
134
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/blocks/blockGitHubActionsCI.ts"],"sourcesContent":["import jsYaml from \"js-yaml\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockRepositoryBranchRuleset } from \"./blockRepositoryBranchRuleset.js\";\nimport { createMultiWorkflowFile } from \"./files/createMultiWorkflowFile.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const zActionStep = z.intersection(\n\tz.object({\n\t\tenv: z.record(z.string(), z.string()).optional(),\n\t\tif: z.string().optional(),\n\t\twith: z.record(z.string(), z.string()).optional(),\n\t}),\n\tz.union([z.object({ run: z.string() }), z.object({ uses: z.string() })]),\n);\n\nexport const blockGitHubActionsCI = base.createBlock({\n\tabout: {\n\t\tname: \"GitHub Actions CI\",\n\t},\n\taddons: {\n\t\tjobs: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tname: z.string(),\n\t\t\t\t\tsteps: z.array(zActionStep),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.optional(),\n\t},\n\
|
|
1
|
+
{"version":3,"sources":["../../src/blocks/blockGitHubActionsCI.ts"],"sourcesContent":["import jsYaml from \"js-yaml\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockRepositoryBranchRuleset } from \"./blockRepositoryBranchRuleset.js\";\nimport { createMultiWorkflowFile } from \"./files/createMultiWorkflowFile.js\";\nimport { createSoloWorkflowFile } from \"./files/createSoloWorkflowFile.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const zActionStep = z.intersection(\n\tz.object({\n\t\tenv: z.record(z.string(), z.string()).optional(),\n\t\tif: z.string().optional(),\n\t\twith: z.record(z.string(), z.string()).optional(),\n\t}),\n\tz.union([z.object({ run: z.string() }), z.object({ uses: z.string() })]),\n);\n\nexport const blockGitHubActionsCI = base.createBlock({\n\tabout: {\n\t\tname: \"GitHub Actions CI\",\n\t},\n\taddons: {\n\t\tjobs: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tname: z.string(),\n\t\t\t\t\tsteps: z.array(zActionStep),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.optional(),\n\t},\n\tproduce({ addons }) {\n\t\tconst { jobs } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRepositoryBranchRuleset({\n\t\t\t\t\trequiredStatusChecks: jobs?.map((job) => job.name),\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".github\": {\n\t\t\t\t\tactions: {\n\t\t\t\t\t\tprepare: {\n\t\t\t\t\t\t\t\"action.yml\": jsYaml\n\t\t\t\t\t\t\t\t.dump({\n\t\t\t\t\t\t\t\t\tdescription: \"Prepares the repo for a typical CI job\",\n\t\t\t\t\t\t\t\t\tname: \"Prepare\",\n\t\t\t\t\t\t\t\t\truns: {\n\t\t\t\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tuses: \"pnpm/action-setup@v4\",\n\t\t\t\t\t\t\t\t\t\t\t\twith: { version: 9 },\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tuses: \"actions/setup-node@v4\",\n\t\t\t\t\t\t\t\t\t\t\t\twith: { cache: \"pnpm\", \"node-version\": \"20\" },\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\trun: \"pnpm install --frozen-lockfile\",\n\t\t\t\t\t\t\t\t\t\t\t\tshell: \"bash\",\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\tusing: \"composite\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.replaceAll(/\\n(\\S)/g, \"\\n\\n$1\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"accessibility-alt-text-bot.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tif: \"${{ !endsWith(github.actor, '[bot]') }}\",\n\t\t\t\t\t\t\tname: \"Accessibility Alt Text Bot\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tissue_comment: {\n\t\t\t\t\t\t\t\t\ttypes: [\"created\", \"edited\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tissues: {\n\t\t\t\t\t\t\t\t\ttypes: [\"edited\", \"opened\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tpull_request: {\n\t\t\t\t\t\t\t\t\ttypes: [\"edited\", \"opened\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tpermissions: {\n\t\t\t\t\t\t\t\tissues: \"write\",\n\t\t\t\t\t\t\t\t\"pull-requests\": \"write\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tuses: \"github/accessibility-alt-text-bot@v1.4.0\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t\"ci.yml\":\n\t\t\t\t\t\t\tjobs &&\n\t\t\t\t\t\t\tcreateMultiWorkflowFile({\n\t\t\t\t\t\t\t\tjobs: jobs.sort((a, b) => a.name.localeCompare(b.name)),\n\t\t\t\t\t\t\t\tname: \"CI\",\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\"pr-review-requested.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tname: \"PR Review Requested\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpull_request_target: {\n\t\t\t\t\t\t\t\t\ttypes: [\"review_requested\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tpermissions: {\n\t\t\t\t\t\t\t\t\"pull-requests\": \"write\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tuses: \"actions-ecosystem/action-remove-labels@v1\",\n\t\t\t\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\t\t\tlabels: \"status: waiting for author\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif: \"failure()\",\n\t\t\t\t\t\t\t\t\trun: 'echo \"Don\\'t worry if the previous step failed.\"\\necho \"See https://github.com/actions-ecosystem/action-remove-labels/issues/221.\"\\n',\n\t\t\t\t\t\t\t\t},\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\ttransition() {\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\"rm -rf .circleci travis.yml\"],\n\t\t\t\t\tphase: CommandPhase.Migrations,\n\t\t\t\t\tsilent: true,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"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","names":[]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockGitHubApps:
|
|
3
|
+
declare const blockGitHubApps: bingo_stratum.BlockWithAddons<{
|
|
4
4
|
apps: {
|
|
5
5
|
name: string;
|
|
6
6
|
url: string;
|
|
7
7
|
}[];
|
|
8
8
|
}, {
|
|
9
|
-
description: string;
|
|
10
9
|
access: "public" | "restricted";
|
|
10
|
+
description: string;
|
|
11
11
|
directory: string;
|
|
12
12
|
email: {
|
|
13
13
|
github: string;
|
|
@@ -19,10 +19,10 @@ declare const blockGitHubApps: create.BlockWithAddons<{
|
|
|
19
19
|
author?: string | undefined;
|
|
20
20
|
bin?: string | undefined;
|
|
21
21
|
contributors?: {
|
|
22
|
-
name: string;
|
|
23
22
|
avatar_url: string;
|
|
24
23
|
contributions: string[];
|
|
25
24
|
login: string;
|
|
25
|
+
name: string;
|
|
26
26
|
profile: string;
|
|
27
27
|
}[] | undefined;
|
|
28
28
|
documentation?: string | undefined;
|
|
@@ -48,6 +48,7 @@ declare const blockGitHubApps: create.BlockWithAddons<{
|
|
|
48
48
|
devDependencies?: Record<string, string> | undefined;
|
|
49
49
|
scripts?: Record<string, string> | undefined;
|
|
50
50
|
} | undefined;
|
|
51
|
+
rulesetId?: string | undefined;
|
|
51
52
|
usage?: string | undefined;
|
|
52
53
|
version?: string | undefined;
|
|
53
54
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockGitHubIssueTemplates:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockGitHubIssueTemplates: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockGitHubIssueTemplates: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,7 @@ declare const blockGitHubIssueTemplates: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
rulesetId?: string | undefined;
|
|
46
47
|
usage?: string | undefined;
|
|
47
48
|
version?: string | undefined;
|
|
48
49
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockGitHubPRTemplate:
|
|
4
|
-
description: string;
|
|
3
|
+
declare const blockGitHubPRTemplate: bingo_stratum.BlockWithoutAddons<{
|
|
5
4
|
access: "public" | "restricted";
|
|
5
|
+
description: string;
|
|
6
6
|
directory: string;
|
|
7
7
|
email: {
|
|
8
8
|
github: string;
|
|
@@ -14,10 +14,10 @@ declare const blockGitHubPRTemplate: create.BlockWithoutAddons<{
|
|
|
14
14
|
author?: string | undefined;
|
|
15
15
|
bin?: string | undefined;
|
|
16
16
|
contributors?: {
|
|
17
|
-
name: string;
|
|
18
17
|
avatar_url: string;
|
|
19
18
|
contributions: string[];
|
|
20
19
|
login: string;
|
|
20
|
+
name: string;
|
|
21
21
|
profile: string;
|
|
22
22
|
}[] | undefined;
|
|
23
23
|
documentation?: string | undefined;
|
|
@@ -43,6 +43,7 @@ declare const blockGitHubPRTemplate: create.BlockWithoutAddons<{
|
|
|
43
43
|
devDependencies?: Record<string, string> | undefined;
|
|
44
44
|
scripts?: Record<string, string> | undefined;
|
|
45
45
|
} | undefined;
|
|
46
|
+
rulesetId?: string | undefined;
|
|
46
47
|
usage?: string | undefined;
|
|
47
48
|
version?: string | undefined;
|
|
48
49
|
}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockGitignore:
|
|
3
|
+
declare const blockGitignore: bingo_stratum.BlockWithAddons<{
|
|
4
4
|
ignores: string[];
|
|
5
5
|
}, {
|
|
6
|
-
description: string;
|
|
7
6
|
access: "public" | "restricted";
|
|
7
|
+
description: string;
|
|
8
8
|
directory: string;
|
|
9
9
|
email: {
|
|
10
10
|
github: string;
|
|
@@ -16,10 +16,10 @@ declare const blockGitignore: create.BlockWithAddons<{
|
|
|
16
16
|
author?: string | undefined;
|
|
17
17
|
bin?: string | undefined;
|
|
18
18
|
contributors?: {
|
|
19
|
-
name: string;
|
|
20
19
|
avatar_url: string;
|
|
21
20
|
contributions: string[];
|
|
22
21
|
login: string;
|
|
22
|
+
name: string;
|
|
23
23
|
profile: string;
|
|
24
24
|
}[] | undefined;
|
|
25
25
|
documentation?: string | undefined;
|
|
@@ -45,6 +45,7 @@ declare const blockGitignore: create.BlockWithAddons<{
|
|
|
45
45
|
devDependencies?: Record<string, string> | undefined;
|
|
46
46
|
scripts?: Record<string, string> | undefined;
|
|
47
47
|
} | undefined;
|
|
48
|
+
rulesetId?: string | undefined;
|
|
48
49
|
usage?: string | undefined;
|
|
49
50
|
version?: string | undefined;
|
|
50
51
|
}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockKnip:
|
|
3
|
+
declare const blockKnip: bingo_stratum.BlockWithAddons<{
|
|
4
4
|
ignoreDependencies?: string[] | undefined;
|
|
5
5
|
}, {
|
|
6
|
-
description: string;
|
|
7
6
|
access: "public" | "restricted";
|
|
7
|
+
description: string;
|
|
8
8
|
directory: string;
|
|
9
9
|
email: {
|
|
10
10
|
github: string;
|
|
@@ -16,10 +16,10 @@ declare const blockKnip: create.BlockWithAddons<{
|
|
|
16
16
|
author?: string | undefined;
|
|
17
17
|
bin?: string | undefined;
|
|
18
18
|
contributors?: {
|
|
19
|
-
name: string;
|
|
20
19
|
avatar_url: string;
|
|
21
20
|
contributions: string[];
|
|
22
21
|
login: string;
|
|
22
|
+
name: string;
|
|
23
23
|
profile: string;
|
|
24
24
|
}[] | undefined;
|
|
25
25
|
documentation?: string | undefined;
|
|
@@ -45,6 +45,7 @@ declare const blockKnip: create.BlockWithAddons<{
|
|
|
45
45
|
devDependencies?: Record<string, string> | undefined;
|
|
46
46
|
scripts?: Record<string, string> | undefined;
|
|
47
47
|
} | undefined;
|
|
48
|
+
rulesetId?: string | undefined;
|
|
48
49
|
usage?: string | undefined;
|
|
49
50
|
version?: string | undefined;
|
|
50
51
|
}>;
|
package/lib/blocks/blockKnip.js
CHANGED
|
@@ -15,17 +15,6 @@ const blockKnip = base.createBlock({
|
|
|
15
15
|
addons: {
|
|
16
16
|
ignoreDependencies: z.array(z.string()).optional()
|
|
17
17
|
},
|
|
18
|
-
migrate() {
|
|
19
|
-
return {
|
|
20
|
-
scripts: [
|
|
21
|
-
{
|
|
22
|
-
commands: ["rm .knip* knip.*"],
|
|
23
|
-
phase: CommandPhase.Migrations,
|
|
24
|
-
silent: true
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
18
|
produce({ addons }) {
|
|
30
19
|
const { ignoreDependencies } = addons;
|
|
31
20
|
return {
|
|
@@ -71,6 +60,17 @@ const blockKnip = base.createBlock({
|
|
|
71
60
|
})
|
|
72
61
|
}
|
|
73
62
|
};
|
|
63
|
+
},
|
|
64
|
+
transition() {
|
|
65
|
+
return {
|
|
66
|
+
scripts: [
|
|
67
|
+
{
|
|
68
|
+
commands: ["rm .knip* knip.*"],
|
|
69
|
+
phase: CommandPhase.Migrations,
|
|
70
|
+
silent: true
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
};
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
export {
|