@dword-design/base 12.2.0 → 13.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 +68 -68
- package/dist/cli.js +6 -7
- package/dist/commands/check-unknown-files/index.js +9 -13
- package/dist/commands/check-unknown-files/unknown-files-error.js +3 -3
- package/dist/commands/commit/index.js +2 -2
- package/dist/commands/depcheck/index.js +16 -16
- package/dist/commands/prepare/index.js +3 -5
- package/dist/commands/test-docker/index.js +5 -11
- package/dist/commands/test-raw/index.js +5 -18
- package/dist/get-depcheck-special-base/index.js +2 -5
- package/dist/get-generated-files/babel.js +5 -1
- package/dist/get-generated-files/common-editor-ignore.js +1 -1
- package/dist/get-generated-files/editorconfig.js +1 -1
- package/dist/get-generated-files/get-editor-ignore/index.js +2 -3
- package/dist/get-generated-files/get-eslint/index.js +3 -3
- package/dist/get-generated-files/get-github-workflow/steps/get-release.js +3 -5
- package/dist/get-generated-files/get-github-workflow/steps/get-test.js +3 -11
- package/dist/get-generated-files/get-github-workflow/strategies/job-matrix.js +2 -4
- package/dist/get-generated-files/get-gitignore/index.js +2 -3
- package/dist/get-generated-files/get-gitpod/index.js +1 -1
- package/dist/get-generated-files/get-gitpod-dockerfile.js +1 -1
- package/dist/get-generated-files/get-license-string.js +1 -1
- package/dist/get-generated-files/get-package-config/index.js +5 -7
- package/dist/get-generated-files/get-readme-string/index.js +13 -13
- package/dist/get-generated-files/get-readme-string/replacements.js +97 -99
- package/dist/get-generated-files/get-renovate/index.js +2 -2
- package/dist/get-generated-files/get-vscode/index.js +1 -3
- package/dist/get-generated-files/gitattributes.js +1 -1
- package/dist/get-generated-files/github-deprecated-dependencies-issue-template.js +1 -1
- package/dist/get-generated-files/github-labels.js +6 -10
- package/dist/get-generated-files/index.js +24 -42
- package/dist/get-generated-files/typescript.js +12 -1
- package/dist/index.js +85 -43
- package/dist/load-config/index.js +4 -2
- package/dist/load-config-sync/index.js +4 -2
- package/package.json +18 -29
- package/dist/__snapshots__/index.spec.js.snap +0 -84
- package/dist/commands/prepare/__snapshots__/index.spec.js.snap +0 -143
- package/dist/commands/test-raw/__snapshots__/index.spec.js.snap +0 -53
- package/dist/get-generated-files/__snapshots__/index.spec.js.snap +0 -57
- package/dist/get-generated-files/get-editor-ignore/__snapshots__/index.spec.js.snap +0 -29
- package/dist/get-generated-files/get-github-sync-metadata/__snapshots__/index.spec.js.snap +0 -72
- package/dist/get-generated-files/get-github-workflow/__snapshots__/index.spec.js.snap +0 -1133
- package/dist/get-generated-files/get-gitignore/__snapshots__/index.spec.js.snap +0 -13
- package/dist/get-generated-files/get-gitpod/__snapshots__/index.spec.js.snap +0 -32
- package/dist/get-generated-files/get-package-config/__snapshots__/index.spec.js.snap +0 -116
- package/dist/get-generated-files/get-readme-string/__snapshots__/index.spec.js.snap +0 -236
- package/dist/get-generated-files/get-vscode/__snapshots__/index.spec.js.snap +0 -35
- package/dist/get-generated-files/github-deprecated-dependencies/__snapshots__/index.spec.js.snap +0 -57
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import pathLib from 'node:path';
|
|
2
|
-
import { keys, mapValues, pick, stubTrue } from '@dword-design/functions';
|
|
3
|
-
import packageName from 'depcheck-package-name';
|
|
4
2
|
import fs from 'fs-extra';
|
|
3
|
+
import { mapValues, pick, stubTrue } from 'lodash-es';
|
|
5
4
|
import sortKeys from 'sort-keys';
|
|
6
5
|
export default function () {
|
|
7
|
-
var _this$config$commands, _this$packageConfig, _baseConfig$bin$depen, _ref, _commandNames;
|
|
8
6
|
const commandNames = {
|
|
9
7
|
checkUnknownFiles: true,
|
|
10
8
|
commit: true,
|
|
@@ -15,11 +13,11 @@ export default function () {
|
|
|
15
13
|
'test:raw': true
|
|
16
14
|
}),
|
|
17
15
|
test: true,
|
|
18
|
-
...(
|
|
16
|
+
...mapValues(this.config.commands, stubTrue)
|
|
19
17
|
};
|
|
20
18
|
return {
|
|
21
19
|
type: 'module',
|
|
22
|
-
...(
|
|
20
|
+
...pick(this.packageConfig, Object.keys({
|
|
23
21
|
baseConfig: true,
|
|
24
22
|
bin: true,
|
|
25
23
|
dependencies: true,
|
|
@@ -37,7 +35,7 @@ export default function () {
|
|
|
37
35
|
resolutions: true,
|
|
38
36
|
type: true,
|
|
39
37
|
types: true
|
|
40
|
-
}
|
|
38
|
+
})),
|
|
41
39
|
funding: 'https://github.com/sponsors/dword-design',
|
|
42
40
|
publishConfig: {
|
|
43
41
|
access: 'public'
|
|
@@ -53,6 +51,6 @@ export default function () {
|
|
|
53
51
|
files: ['dist', ...(fs.existsSync(pathLib.join(this.cwd, 'types.d.ts')) ? ['types.d.ts'] : [])],
|
|
54
52
|
license: 'MIT',
|
|
55
53
|
...this.config.packageConfig,
|
|
56
|
-
scripts: (
|
|
54
|
+
scripts: sortKeys(mapValues(commandNames, (handler, name) => this.packageConfig.name === '@dword-design/base' ? `rimraf dist && tsc && babel dist --out-dir dist && node dist/cli.js ${name}` : `base ${name}`))
|
|
57
55
|
};
|
|
58
56
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import pathLib from 'node:path';
|
|
2
|
+
import endent from 'endent';
|
|
2
3
|
import getProjectzReadmeSectionRegex from 'get-projectz-readme-section-regex';
|
|
3
4
|
import { readFileSync as safeReadFileSync } from 'safe-readfile';
|
|
4
5
|
import replacements from "./replacements.js";
|
|
5
6
|
export default function () {
|
|
6
|
-
|
|
7
|
-
const readme = safeReadFileSync('README.md', 'utf8') || endent`
|
|
7
|
+
const readme = safeReadFileSync(pathLib.join(this.cwd, 'README.md'), 'utf8') || endent`
|
|
8
8
|
<!-- TITLE -->
|
|
9
9
|
|
|
10
10
|
<!-- BADGES -->
|
|
@@ -13,16 +13,16 @@ export default function () {
|
|
|
13
13
|
|
|
14
14
|
<!-- INSTALL -->
|
|
15
15
|
|
|
16
|
-
<!-- LICENSE
|
|
17
|
-
|
|
16
|
+
<!-- LICENSE -->\n
|
|
18
17
|
`;
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
let result = readme;
|
|
19
|
+
for (const [name, replacement] of Object.entries(replacements)) {
|
|
21
20
|
const sectionName = name.toUpperCase();
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
21
|
+
result = result.replace(getProjectzReadmeSectionRegex(sectionName), endent`
|
|
22
|
+
<!-- ${sectionName}/ -->
|
|
23
|
+
${replacement.call(this)}
|
|
24
|
+
<!-- /${sectionName} -->
|
|
25
|
+
`);
|
|
26
|
+
}
|
|
27
|
+
return result;
|
|
28
28
|
}
|
|
@@ -1,133 +1,131 @@
|
|
|
1
|
-
import
|
|
1
|
+
import endent from 'endent';
|
|
2
|
+
import { last } from 'lodash-es';
|
|
2
3
|
import spdxParse from 'spdx-expression-parse';
|
|
3
4
|
import spdxList from 'spdx-license-list/full.js';
|
|
4
5
|
export default {
|
|
5
6
|
badges() {
|
|
6
|
-
var _ref;
|
|
7
7
|
return endent`
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
<a href="https://www.buymeacoffee.com/dword">
|
|
44
|
-
<img
|
|
45
|
-
src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg"
|
|
46
|
-
alt="Buy Me a Coffee"
|
|
47
|
-
width="114"
|
|
48
|
-
>
|
|
49
|
-
</a>
|
|
50
|
-
`, endent`
|
|
51
|
-
<a href="https://paypal.me/SebastianLandwehr">
|
|
52
|
-
<img
|
|
53
|
-
src="https://sebastianlandwehr.com/images/paypal.svg"
|
|
54
|
-
alt="PayPal"
|
|
55
|
-
width="163"
|
|
56
|
-
>
|
|
57
|
-
</a>
|
|
58
|
-
`, endent`
|
|
59
|
-
<a href="https://www.patreon.com/dworddesign">
|
|
60
|
-
<img
|
|
61
|
-
src="https://sebastianlandwehr.com/images/patreon.svg"
|
|
62
|
-
alt="Patreon"
|
|
63
|
-
width="163"
|
|
64
|
-
>
|
|
65
|
-
</a>
|
|
66
|
-
`], join('')(_ref)}
|
|
67
|
-
</p>
|
|
68
|
-
`;
|
|
69
|
-
},
|
|
70
|
-
description() {
|
|
71
|
-
return this.packageConfig.description || '';
|
|
72
|
-
},
|
|
73
|
-
install() {
|
|
74
|
-
return this.config.readmeInstallString;
|
|
75
|
-
},
|
|
76
|
-
license() {
|
|
77
|
-
var _ref2, _ref3, _this$config$seeAlso;
|
|
78
|
-
return _ref2 = [endent`
|
|
79
|
-
## Contribute
|
|
80
|
-
|
|
81
|
-
Are you missing something or want to contribute? Feel free to file an [issue](https://github.com/${this.packageConfig.repository}/issues) or a [pull request](https://github.com/${this.packageConfig.repository}/pulls)! ⚙️
|
|
82
|
-
|
|
83
|
-
## Support
|
|
84
|
-
|
|
85
|
-
Hey, I am Sebastian Landwehr, a freelance web developer, and I love developing web apps and open source packages. If you want to support me so that I can keep packages up to date and build more helpful tools, you can donate here:
|
|
86
|
-
|
|
87
|
-
<p>
|
|
8
|
+
<p>
|
|
9
|
+
${[...(this.config.npmPublish && !this.packageConfig.private ? [endent`
|
|
10
|
+
<a href="https://npmjs.org/package/${this.packageConfig.name}">
|
|
11
|
+
<img
|
|
12
|
+
src="https://img.shields.io/npm/v/${this.packageConfig.name}.svg"
|
|
13
|
+
alt="npm version"
|
|
14
|
+
>
|
|
15
|
+
</a>
|
|
16
|
+
`] : []), '<img src="https://img.shields.io/badge/os-linux%20%7C%C2%A0macos%20%7C%C2%A0windows-blue" alt="Linux macOS Windows compatible">', endent`
|
|
17
|
+
<a href="https://github.com/${this.packageConfig.repository}/actions">
|
|
18
|
+
<img
|
|
19
|
+
src="https://github.com/${this.packageConfig.repository}/workflows/build/badge.svg"
|
|
20
|
+
alt="Build status"
|
|
21
|
+
>
|
|
22
|
+
</a>
|
|
23
|
+
`, endent`
|
|
24
|
+
<a href="https://codecov.io/gh/${this.packageConfig.repository}">
|
|
25
|
+
<img
|
|
26
|
+
src="https://codecov.io/gh/${this.packageConfig.repository}/branch/master/graph/badge.svg${this.config.codecovGraphToken ? `?token=${this.config.codecovGraphToken}` : ''}"
|
|
27
|
+
alt="Coverage status"
|
|
28
|
+
>
|
|
29
|
+
</a>
|
|
30
|
+
`, endent`
|
|
31
|
+
<a href="https://david-dm.org/${this.packageConfig.repository}">
|
|
32
|
+
<img src="https://img.shields.io/david/${this.packageConfig.repository}" alt="Dependency status">
|
|
33
|
+
</a>
|
|
34
|
+
`, '<img src="https://img.shields.io/badge/renovate-enabled-brightgreen" alt="Renovate enabled">', '<br/>', endent`
|
|
35
|
+
<a href="https://gitpod.io/#https://github.com/${this.packageConfig.repository}">
|
|
36
|
+
<img
|
|
37
|
+
src="https://gitpod.io/button/open-in-gitpod.svg"
|
|
38
|
+
alt="Open in Gitpod"
|
|
39
|
+
width="114"
|
|
40
|
+
>
|
|
41
|
+
</a>
|
|
42
|
+
`, endent`
|
|
88
43
|
<a href="https://www.buymeacoffee.com/dword">
|
|
89
44
|
<img
|
|
90
45
|
src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg"
|
|
91
46
|
alt="Buy Me a Coffee"
|
|
92
47
|
width="114"
|
|
93
48
|
>
|
|
94
|
-
</a
|
|
49
|
+
</a>
|
|
50
|
+
`, endent`
|
|
95
51
|
<a href="https://paypal.me/SebastianLandwehr">
|
|
96
52
|
<img
|
|
97
53
|
src="https://sebastianlandwehr.com/images/paypal.svg"
|
|
98
54
|
alt="PayPal"
|
|
99
55
|
width="163"
|
|
100
56
|
>
|
|
101
|
-
</a
|
|
57
|
+
</a>
|
|
58
|
+
`, endent`
|
|
102
59
|
<a href="https://www.patreon.com/dworddesign">
|
|
103
60
|
<img
|
|
104
61
|
src="https://sebastianlandwehr.com/images/patreon.svg"
|
|
105
62
|
alt="Patreon"
|
|
106
63
|
width="163"
|
|
107
64
|
>
|
|
108
|
-
</a
|
|
109
|
-
|
|
65
|
+
</a>
|
|
66
|
+
`].join('')}
|
|
67
|
+
</p>
|
|
68
|
+
`;
|
|
69
|
+
},
|
|
70
|
+
description() {
|
|
71
|
+
return this.packageConfig.description || '';
|
|
72
|
+
},
|
|
73
|
+
install() {
|
|
74
|
+
return this.config.readmeInstallString;
|
|
75
|
+
},
|
|
76
|
+
license() {
|
|
77
|
+
return [endent`
|
|
78
|
+
## Contribute
|
|
79
|
+
|
|
80
|
+
Are you missing something or want to contribute? Feel free to file an [issue](https://github.com/${this.packageConfig.repository}/issues) or a [pull request](https://github.com/${this.packageConfig.repository}/pulls)! ⚙️
|
|
81
|
+
|
|
82
|
+
## Support
|
|
83
|
+
|
|
84
|
+
Hey, I am Sebastian Landwehr, a freelance web developer, and I love developing web apps and open source packages. If you want to support me so that I can keep packages up to date and build more helpful tools, you can donate here:
|
|
85
|
+
|
|
86
|
+
<p>
|
|
87
|
+
<a href="https://www.buymeacoffee.com/dword">
|
|
88
|
+
<img
|
|
89
|
+
src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg"
|
|
90
|
+
alt="Buy Me a Coffee"
|
|
91
|
+
width="114"
|
|
92
|
+
>
|
|
93
|
+
</a> If you want to send me a one time donation. The coffee is pretty good 😊.<br/>
|
|
94
|
+
<a href="https://paypal.me/SebastianLandwehr">
|
|
95
|
+
<img
|
|
96
|
+
src="https://sebastianlandwehr.com/images/paypal.svg"
|
|
97
|
+
alt="PayPal"
|
|
98
|
+
width="163"
|
|
99
|
+
>
|
|
100
|
+
</a> Also for one time donations if you like PayPal.<br/>
|
|
101
|
+
<a href="https://www.patreon.com/dworddesign">
|
|
102
|
+
<img
|
|
103
|
+
src="https://sebastianlandwehr.com/images/patreon.svg"
|
|
104
|
+
alt="Patreon"
|
|
105
|
+
width="163"
|
|
106
|
+
>
|
|
107
|
+
</a> Here you can support me regularly, which is great so I can steadily work on projects.
|
|
108
|
+
</p>
|
|
110
109
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
Thanks a lot for your support! ❤️
|
|
111
|
+
`, ...(this.config.seeAlso.length > 0 ? [endent`
|
|
112
|
+
## See also
|
|
114
113
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
const parts = (_entry$repository = entry.repository, split('/')(_entry$repository));
|
|
114
|
+
${this.config.seeAlso.map(entry => {
|
|
115
|
+
const parts = entry.repository.split('/');
|
|
118
116
|
const owner = parts.length >= 2 ? parts[0] : 'dword-design';
|
|
119
|
-
const name = (
|
|
117
|
+
const name = last(parts);
|
|
120
118
|
return `* [${name}](https://github.com/${owner}/${name}): ${entry.description}`;
|
|
121
|
-
})
|
|
122
|
-
|
|
119
|
+
}).join('\n')}
|
|
120
|
+
`] : []), this.packageConfig.license ? [(() => {
|
|
123
121
|
const parsed = spdxParse(this.packageConfig.license);
|
|
124
122
|
const license = spdxList[parsed.license];
|
|
125
123
|
return endent`
|
|
126
|
-
|
|
124
|
+
## License
|
|
127
125
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
})()] : []]
|
|
126
|
+
[${license.name}](${license.url}) © [Sebastian Landwehr](https://sebastianlandwehr.com)
|
|
127
|
+
`;
|
|
128
|
+
})()] : []].join('\n\n');
|
|
131
129
|
},
|
|
132
130
|
title() {
|
|
133
131
|
return `# ${this.packageConfig.name}`;
|
|
@@ -18,13 +18,13 @@ export default function () {
|
|
|
18
18
|
rangeStrategy: 'replace',
|
|
19
19
|
regexManagers: [{
|
|
20
20
|
datasourceTemplate: 'github-tags',
|
|
21
|
-
fileMatch: [String.raw`\.
|
|
21
|
+
fileMatch: [String.raw`\.ts$`],
|
|
22
22
|
matchStrings: [getRegexManagerString('gitHubAction', '(?<depName>.*?)@v(?<currentValue>.*?)')],
|
|
23
23
|
versioningTemplate: 'npm'
|
|
24
24
|
}, {
|
|
25
25
|
datasourceTemplate: 'node-version',
|
|
26
26
|
depNameTemplate: 'node',
|
|
27
|
-
fileMatch: [String.raw`\.
|
|
27
|
+
fileMatch: [String.raw`\.ts$`],
|
|
28
28
|
matchStrings: [getRegexManagerString('nodejsVersion', '(?<currentValue>.*?)')],
|
|
29
29
|
versioningTemplate: 'node'
|
|
30
30
|
}],
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { fromPairs, map } from '@dword-design/functions';
|
|
2
1
|
export default function () {
|
|
3
|
-
var _ref, _this$getEditorIgnore;
|
|
4
2
|
return {
|
|
5
3
|
'editor.tabSize': 2,
|
|
6
4
|
'files.autoSave': 'off',
|
|
7
|
-
'files.exclude': (
|
|
5
|
+
'files.exclude': Object.fromEntries(this.getEditorIgnoreConfig().map(entry => [entry, true])),
|
|
8
6
|
'workbench.editor.enablePreview': false
|
|
9
7
|
};
|
|
10
8
|
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default (_ref = (_ref2 = (_ref3 = (_BFD4F2$C2E0C6$EDEDED = {
|
|
1
|
+
import { mapValues, sortBy } from 'lodash-es';
|
|
2
|
+
export default sortBy(Object.values(mapValues({
|
|
4
3
|
BFD4F2: ['blocking', 'breaking', 'important'],
|
|
5
4
|
C2E0C6: ['active', 'blocked', 'maintenance', 'waiting-for'],
|
|
6
5
|
EDEDED: ['released', 'semantic-release']
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
name
|
|
12
|
-
}))(_names);
|
|
13
|
-
})(_BFD4F2$C2E0C6$EDEDED)), values(_ref3)), flatten(_ref2)), sortBy('name')(_ref));
|
|
6
|
+
}, (names, color) => names.map(name => ({
|
|
7
|
+
color,
|
|
8
|
+
name
|
|
9
|
+
})))).flat(), 'name');
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { join, jsonToString, map } from '@dword-design/functions';
|
|
2
1
|
import sortKeys from 'sort-keys';
|
|
3
2
|
import sortPackageJson from 'sort-package-json';
|
|
4
|
-
import
|
|
3
|
+
import { stringify as yamlStringify } from 'yaml';
|
|
5
4
|
import babelConfig from "./babel.js";
|
|
6
5
|
import commitizenConfig from "./commitizen.js";
|
|
7
6
|
import commitlintConfig from "./commitlint.js";
|
|
@@ -15,61 +14,44 @@ import githubSyncLabelsConfig from "./github-sync-labels.js";
|
|
|
15
14
|
import npmrc from "./npmrc.js";
|
|
16
15
|
import typescriptConfig from "./typescript.js";
|
|
17
16
|
export default function () {
|
|
18
|
-
var _commitlintConfig, _commitizenConfig, _this$githubCodespace, _githubFunding, _sortKeys, _sortKeys2, _sortKeys3, _sortKeys4, _sortKeys5, _ref, _this$getGitignoreCon, _this$getGitpodConfig, _this$getReleaseConfi, _sortKeys6, _this$getVscodeConfig, _babelConfig, _ref2, _packageConfig;
|
|
19
17
|
const packageConfig = this.getPackageConfig();
|
|
20
18
|
return {
|
|
21
|
-
'.commitlintrc.json': `${
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
'.cz.json': `${_commitizenConfig = commitizenConfig, jsonToString({
|
|
25
|
-
indent: 2
|
|
26
|
-
})(_commitizenConfig)}\n`,
|
|
27
|
-
'.devcontainer/devcontainer.json': `${_this$githubCodespace = this.githubCodespacesConfig, jsonToString({
|
|
28
|
-
indent: 2
|
|
29
|
-
})(_this$githubCodespace)}\n`,
|
|
19
|
+
'.commitlintrc.json': `${JSON.stringify(commitlintConfig, undefined, 2)}\n`,
|
|
20
|
+
'.cz.json': `${JSON.stringify(commitizenConfig, undefined, 2)}\n`,
|
|
21
|
+
'.devcontainer/devcontainer.json': `${JSON.stringify(this.githubCodespacesConfig, undefined, 2)}\n`,
|
|
30
22
|
'.editorconfig': editorconfigConfig,
|
|
31
23
|
'.gitattributes': gitattributesConfig,
|
|
32
24
|
'.github/DEPRECATED_DEPENDENCIES_ISSUE_TEMPLATE.md': deprecatedDependenciesIssueTemplate,
|
|
33
|
-
'.github/FUNDING.yml': (
|
|
34
|
-
'.github/labels.yml': (
|
|
25
|
+
'.github/FUNDING.yml': yamlStringify(githubFunding),
|
|
26
|
+
'.github/labels.yml': yamlStringify(sortKeys(githubLabelsConfig, {
|
|
35
27
|
deep: true
|
|
36
|
-
})
|
|
37
|
-
'.github/workflows/build.yml': (
|
|
28
|
+
})),
|
|
29
|
+
'.github/workflows/build.yml': yamlStringify(sortKeys(this.getGithubWorkflowConfig(), {
|
|
38
30
|
deep: true
|
|
39
|
-
})
|
|
40
|
-
'.github/workflows/deprecated-dependencies.yml': (
|
|
31
|
+
})),
|
|
32
|
+
'.github/workflows/deprecated-dependencies.yml': yamlStringify(sortKeys(githubDeprecatedDependenciesConfig, {
|
|
41
33
|
deep: true
|
|
42
|
-
})
|
|
43
|
-
'.github/workflows/sync-labels.yml': (
|
|
34
|
+
})),
|
|
35
|
+
'.github/workflows/sync-labels.yml': yamlStringify(sortKeys(githubSyncLabelsConfig, {
|
|
44
36
|
deep: true
|
|
45
|
-
})
|
|
46
|
-
'.github/workflows/sync-metadata.yml': (
|
|
37
|
+
})),
|
|
38
|
+
'.github/workflows/sync-metadata.yml': yamlStringify(sortKeys(this.getGithubSyncMetadataConfig(), {
|
|
47
39
|
deep: true
|
|
48
|
-
})
|
|
49
|
-
'.gitignore':
|
|
40
|
+
})),
|
|
41
|
+
'.gitignore': this.getGitignoreConfig().map(entry => `${entry}\n`).join(''),
|
|
50
42
|
'.gitpod.Dockerfile': this.getGitpodDockerfile(),
|
|
51
|
-
'.gitpod.yml': (
|
|
43
|
+
'.gitpod.yml': yamlStringify(this.getGitpodConfig()),
|
|
52
44
|
'.npmrc': `${npmrc}\n`,
|
|
53
|
-
'.releaserc.json': `${
|
|
54
|
-
|
|
55
|
-
})(_this$getReleaseConfi)}\n`,
|
|
56
|
-
'.renovaterc.json': `${_sortKeys6 = sortKeys(this.getRenovateConfig(), {
|
|
45
|
+
'.releaserc.json': `${JSON.stringify(this.getReleaseConfig(), undefined, 2)}\n`,
|
|
46
|
+
'.renovaterc.json': `${JSON.stringify(sortKeys(this.getRenovateConfig(), {
|
|
57
47
|
deep: true
|
|
58
|
-
}),
|
|
59
|
-
|
|
60
|
-
})(_sortKeys6)}\n`,
|
|
61
|
-
'.vscode/settings.json': `${_this$getVscodeConfig = this.getVscodeConfig(), jsonToString({
|
|
62
|
-
indent: 2
|
|
63
|
-
})(_this$getVscodeConfig)}\n`,
|
|
48
|
+
}), undefined, 2)}\n`,
|
|
49
|
+
'.vscode/settings.json': `${JSON.stringify(this.getVscodeConfig(), undefined, 2)}\n`,
|
|
64
50
|
'LICENSE.md': this.getLicenseString(),
|
|
65
51
|
'README.md': this.getReadmeString(),
|
|
66
|
-
'babel.config.json': `${
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
'eslint.config.js': this.getEslintConfig(),
|
|
70
|
-
'package.json': `${_ref2 = (_packageConfig = packageConfig, sortPackageJson(_packageConfig)), jsonToString({
|
|
71
|
-
indent: 2
|
|
72
|
-
})(_ref2)}\n`,
|
|
52
|
+
'babel.config.json': `${JSON.stringify(babelConfig, undefined, 2)}\n`,
|
|
53
|
+
'eslint.config.ts': this.getEslintConfig(),
|
|
54
|
+
'package.json': `${JSON.stringify(sortPackageJson(packageConfig), undefined, 2)}\n`,
|
|
73
55
|
'tsconfig.json': `${JSON.stringify(typescriptConfig, undefined, 2)}\n`
|
|
74
56
|
};
|
|
75
57
|
}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
2
|
+
compilerOptions: {
|
|
3
|
+
esModuleInterop: true,
|
|
4
|
+
module: 'ESNext',
|
|
5
|
+
moduleResolution: 'bundler',
|
|
6
|
+
outDir: 'dist',
|
|
7
|
+
paths: {
|
|
8
|
+
'@/*': ['./*']
|
|
9
|
+
},
|
|
10
|
+
target: 'ESNext'
|
|
11
|
+
},
|
|
12
|
+
exclude: ['**/*.spec.ts'],
|
|
13
|
+
include: ['src']
|
|
3
14
|
};
|