@dword-design/base 12.2.1 → 13.0.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.
Files changed (50) hide show
  1. package/README.md +68 -68
  2. package/dist/cli.js +6 -7
  3. package/dist/commands/check-unknown-files/index.js +9 -13
  4. package/dist/commands/check-unknown-files/unknown-files-error.js +3 -3
  5. package/dist/commands/commit/index.js +2 -2
  6. package/dist/commands/depcheck/index.js +16 -16
  7. package/dist/commands/prepare/index.js +3 -5
  8. package/dist/commands/test-docker/index.js +5 -11
  9. package/dist/commands/test-raw/index.js +5 -18
  10. package/dist/get-depcheck-special-base/index.js +2 -5
  11. package/dist/get-generated-files/babel.js +5 -1
  12. package/dist/get-generated-files/common-editor-ignore.js +1 -1
  13. package/dist/get-generated-files/editorconfig.js +1 -1
  14. package/dist/get-generated-files/get-editor-ignore/index.js +2 -3
  15. package/dist/get-generated-files/get-eslint/index.js +3 -3
  16. package/dist/get-generated-files/get-github-workflow/steps/get-release.js +3 -5
  17. package/dist/get-generated-files/get-github-workflow/steps/get-test.js +3 -11
  18. package/dist/get-generated-files/get-github-workflow/strategies/job-matrix.js +2 -4
  19. package/dist/get-generated-files/get-gitignore/index.js +2 -3
  20. package/dist/get-generated-files/get-gitpod/index.js +1 -1
  21. package/dist/get-generated-files/get-gitpod-dockerfile.js +1 -1
  22. package/dist/get-generated-files/get-license-string.js +1 -1
  23. package/dist/get-generated-files/get-package-config/index.js +5 -7
  24. package/dist/get-generated-files/get-readme-string/index.js +13 -13
  25. package/dist/get-generated-files/get-readme-string/replacements.js +97 -99
  26. package/dist/get-generated-files/get-renovate/index.js +2 -2
  27. package/dist/get-generated-files/get-vscode/index.js +1 -3
  28. package/dist/get-generated-files/gitattributes.js +1 -1
  29. package/dist/get-generated-files/github-deprecated-dependencies-issue-template.js +1 -1
  30. package/dist/get-generated-files/github-labels.js +6 -10
  31. package/dist/get-generated-files/index.js +25 -43
  32. package/dist/get-generated-files/typescript.js +15 -0
  33. package/dist/index.js +85 -43
  34. package/dist/load-config/index.js +4 -2
  35. package/dist/load-config-sync/index.js +4 -2
  36. package/package.json +18 -30
  37. package/dist/__snapshots__/index.spec.js.snap +0 -84
  38. package/dist/commands/prepare/__snapshots__/index.spec.js.snap +0 -143
  39. package/dist/commands/test-raw/__snapshots__/index.spec.js.snap +0 -53
  40. package/dist/get-generated-files/__snapshots__/index.spec.js.snap +0 -57
  41. package/dist/get-generated-files/get-editor-ignore/__snapshots__/index.spec.js.snap +0 -29
  42. package/dist/get-generated-files/get-github-sync-metadata/__snapshots__/index.spec.js.snap +0 -72
  43. package/dist/get-generated-files/get-github-workflow/__snapshots__/index.spec.js.snap +0 -1133
  44. package/dist/get-generated-files/get-gitignore/__snapshots__/index.spec.js.snap +0 -13
  45. package/dist/get-generated-files/get-gitpod/__snapshots__/index.spec.js.snap +0 -32
  46. package/dist/get-generated-files/get-package-config/__snapshots__/index.spec.js.snap +0 -116
  47. package/dist/get-generated-files/get-readme-string/__snapshots__/index.spec.js.snap +0 -236
  48. package/dist/get-generated-files/get-vscode/__snapshots__/index.spec.js.snap +0 -35
  49. package/dist/get-generated-files/github-deprecated-dependencies/__snapshots__/index.spec.js.snap +0 -57
  50. package/dist/get-generated-files/typescript/index.js +0 -11
@@ -1,13 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`index valid 1`] = `
4
- Array [
5
- ".DS_Store",
6
- "/.env.json",
7
- "/.nyc_output",
8
- "/.test.env.json",
9
- "/coverage",
10
- "/node_modules",
11
- "foo",
12
- ]
13
- `;
@@ -1,32 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`index works 1`] = `
4
- Object {
5
- "image": Object {
6
- "file": ".gitpod.Dockerfile",
7
- },
8
- "tasks": Array [
9
- Object {
10
- "before": "echo \\"corepack enable\\" >> /home/gitpod/.bashrc
11
- echo \\"export COREPACK_ENABLE_DOWNLOAD_PROMPT=0\\" >> /home/gitpod/.bashrc
12
- gitpod-env-per-project >> /home/gitpod/.bashrc
13
- echo \\"export PUPPETEER_CACHE_DIR=/workspace/foo/node_modules/.cache/puppeteer\\" >> /home/gitpod/.bashrc
14
- echo \\"export PLAYWRIGHT_BROWSERS_PATH=0\\" >> /home/gitpod/.bashrc
15
- source /home/gitpod/.bashrc",
16
- "init": "git config --global user.name \\"Sebastian Landwehr\\"
17
- git config diff.lfs.textconv cat
18
- git lfs pull
19
- pnpm install --frozen-lockfile",
20
- },
21
- ],
22
- "vscode": Object {
23
- "extensions": Array [
24
- "https://sebastianlandwehr.com/vscode-extensions/karlito40.fix-irregular-whitespace-0.1.1.vsix",
25
- "https://sebastianlandwehr.com/vscode-extensions/adrianwilczynski.toggle-hidden-1.0.2.vsix",
26
- "octref.vetur@0.33.1",
27
- "Tobermory.es6-string-html",
28
- "zjcompt.es6-string-javascript",
29
- ],
30
- },
31
- }
32
- `;
@@ -1,116 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`index empty 1`] = `
4
- Object {
5
- "author": "Sebastian Landwehr <info@sebastianlandwehr.com>",
6
- "engines": Object {
7
- "node": ">=18",
8
- },
9
- "files": Array [
10
- "dist",
11
- ],
12
- "funding": "https://github.com/sponsors/dword-design",
13
- "license": "MIT",
14
- "publishConfig": Object {
15
- "access": "public",
16
- },
17
- "scripts": Object {
18
- "checkUnknownFiles": "base checkUnknownFiles",
19
- "commit": "base commit",
20
- "depcheck": "base depcheck",
21
- "dev": "base dev",
22
- "lint": "base lint",
23
- "prepare": "base prepare",
24
- "prepublishOnly": "base prepublishOnly",
25
- "test": "base test",
26
- },
27
- "type": "module",
28
- "version": "1.0.0",
29
- }
30
- `;
31
-
32
- exports[`index existing package 1`] = `
33
- Object {
34
- "author": "Sebastian Landwehr <info@sebastianlandwehr.com>",
35
- "bin": Object {
36
- "foo": "./dist/cli.js",
37
- },
38
- "dependencies": Object {
39
- "foo": "^1.0.0",
40
- },
41
- "description": "foo bar",
42
- "devDependencies": Object {
43
- "base-config-bar": "^1.0.0",
44
- },
45
- "engines": Object {
46
- "node": ">=18",
47
- },
48
- "files": Array [
49
- "dist",
50
- ],
51
- "funding": "https://github.com/sponsors/dword-design",
52
- "keywords": Array [
53
- "foo",
54
- "bar",
55
- ],
56
- "license": "MIT",
57
- "name": "foo",
58
- "optionalDependencies": Object {
59
- "typescript": "^1.0.0",
60
- },
61
- "peerDependencies": Object {
62
- "nuxt": "^1.0.0",
63
- },
64
- "pnpm": Object {
65
- "overrides": Object {
66
- "bulma": "^1",
67
- },
68
- },
69
- "publishConfig": Object {
70
- "access": "public",
71
- },
72
- "scripts": Object {
73
- "checkUnknownFiles": "base checkUnknownFiles",
74
- "commit": "base commit",
75
- "depcheck": "base depcheck",
76
- "dev": "base dev",
77
- "lint": "base lint",
78
- "prepare": "base prepare",
79
- "prepublishOnly": "base prepublishOnly",
80
- "test": "base test",
81
- },
82
- "type": "module",
83
- "types": "types.d.ts",
84
- "version": "1.1.0",
85
- }
86
- `;
87
-
88
- exports[`index git repo 1`] = `
89
- Object {
90
- "author": "Sebastian Landwehr <info@sebastianlandwehr.com>",
91
- "engines": Object {
92
- "node": ">=18",
93
- },
94
- "files": Array [
95
- "dist",
96
- ],
97
- "funding": "https://github.com/sponsors/dword-design",
98
- "license": "MIT",
99
- "publishConfig": Object {
100
- "access": "public",
101
- },
102
- "repository": "dword-design/foo",
103
- "scripts": Object {
104
- "checkUnknownFiles": "base checkUnknownFiles",
105
- "commit": "base commit",
106
- "depcheck": "base depcheck",
107
- "dev": "base dev",
108
- "lint": "base lint",
109
- "prepare": "base prepare",
110
- "prepublishOnly": "base prepublishOnly",
111
- "test": "base test",
112
- },
113
- "type": "module",
114
- "version": "1.0.0",
115
- }
116
- `;
@@ -1,236 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`index badges 1`] = `
4
- "<!-- BADGES/ -->
5
- <p>
6
- <a href=\\"https://npmjs.org/package/@dword-design/foo\\">
7
- <img
8
- src=\\"https://img.shields.io/npm/v/@dword-design/foo.svg\\"
9
- alt=\\"npm version\\"
10
- >
11
- </a><img src=\\"https://img.shields.io/badge/os-linux%20%7C%C2%A0macos%20%7C%C2%A0windows-blue\\" alt=\\"Linux macOS Windows compatible\\"><a href=\\"https://github.com/dword-design/bar/actions\\">
12
- <img
13
- src=\\"https://github.com/dword-design/bar/workflows/build/badge.svg\\"
14
- alt=\\"Build status\\"
15
- >
16
- </a><a href=\\"https://codecov.io/gh/dword-design/bar\\">
17
- <img
18
- src=\\"https://codecov.io/gh/dword-design/bar/branch/master/graph/badge.svg\\"
19
- alt=\\"Coverage status\\"
20
- >
21
- </a><a href=\\"https://david-dm.org/dword-design/bar\\">
22
- <img src=\\"https://img.shields.io/david/dword-design/bar\\" alt=\\"Dependency status\\">
23
- </a><img src=\\"https://img.shields.io/badge/renovate-enabled-brightgreen\\" alt=\\"Renovate enabled\\"><br/><a href=\\"https://gitpod.io/#https://github.com/dword-design/bar\\">
24
- <img
25
- src=\\"https://gitpod.io/button/open-in-gitpod.svg\\"
26
- alt=\\"Open in Gitpod\\"
27
- width=\\"114\\"
28
- >
29
- </a><a href=\\"https://www.buymeacoffee.com/dword\\">
30
- <img
31
- src=\\"https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg\\"
32
- alt=\\"Buy Me a Coffee\\"
33
- width=\\"114\\"
34
- >
35
- </a><a href=\\"https://paypal.me/SebastianLandwehr\\">
36
- <img
37
- src=\\"https://sebastianlandwehr.com/images/paypal.svg\\"
38
- alt=\\"PayPal\\"
39
- width=\\"163\\"
40
- >
41
- </a><a href=\\"https://www.patreon.com/dworddesign\\">
42
- <img
43
- src=\\"https://sebastianlandwehr.com/images/patreon.svg\\"
44
- alt=\\"Patreon\\"
45
- width=\\"163\\"
46
- >
47
- </a>
48
- </p>
49
- <!-- /BADGES -->
50
- "
51
- `;
52
-
53
- exports[`index badges private 1`] = `
54
- "<!-- BADGES/ -->
55
- <p>
56
- <img src=\\"https://img.shields.io/badge/os-linux%20%7C%C2%A0macos%20%7C%C2%A0windows-blue\\" alt=\\"Linux macOS Windows compatible\\"><a href=\\"https://github.com/dword-design/bar/actions\\">
57
- <img
58
- src=\\"https://github.com/dword-design/bar/workflows/build/badge.svg\\"
59
- alt=\\"Build status\\"
60
- >
61
- </a><a href=\\"https://codecov.io/gh/dword-design/bar\\">
62
- <img
63
- src=\\"https://codecov.io/gh/dword-design/bar/branch/master/graph/badge.svg\\"
64
- alt=\\"Coverage status\\"
65
- >
66
- </a><a href=\\"https://david-dm.org/dword-design/bar\\">
67
- <img src=\\"https://img.shields.io/david/dword-design/bar\\" alt=\\"Dependency status\\">
68
- </a><img src=\\"https://img.shields.io/badge/renovate-enabled-brightgreen\\" alt=\\"Renovate enabled\\"><br/><a href=\\"https://gitpod.io/#https://github.com/dword-design/bar\\">
69
- <img
70
- src=\\"https://gitpod.io/button/open-in-gitpod.svg\\"
71
- alt=\\"Open in Gitpod\\"
72
- width=\\"114\\"
73
- >
74
- </a><a href=\\"https://www.buymeacoffee.com/dword\\">
75
- <img
76
- src=\\"https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg\\"
77
- alt=\\"Buy Me a Coffee\\"
78
- width=\\"114\\"
79
- >
80
- </a><a href=\\"https://paypal.me/SebastianLandwehr\\">
81
- <img
82
- src=\\"https://sebastianlandwehr.com/images/paypal.svg\\"
83
- alt=\\"PayPal\\"
84
- width=\\"163\\"
85
- >
86
- </a><a href=\\"https://www.patreon.com/dworddesign\\">
87
- <img
88
- src=\\"https://sebastianlandwehr.com/images/patreon.svg\\"
89
- alt=\\"Patreon\\"
90
- width=\\"163\\"
91
- >
92
- </a>
93
- </p>
94
- <!-- /BADGES -->
95
- "
96
- `;
97
-
98
- exports[`index existing content 1`] = `
99
- "<!-- DESCRIPTION/ -->
100
- foo bar baz
101
- <!-- /DESCRIPTION -->
102
-
103
- This is a more detailed description
104
-
105
- <!-- LICENSE/ -->
106
- ## Contribute
107
-
108
- Are you missing something or want to contribute? Feel free to file an [issue](https://github.com/undefined/issues) or a [pull request](https://github.com/undefined/pulls)! ⚙️
109
-
110
- ## Support
111
-
112
- 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:
113
-
114
- <p>
115
- <a href=\\"https://www.buymeacoffee.com/dword\\">
116
- <img
117
- src=\\"https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg\\"
118
- alt=\\"Buy Me a Coffee\\"
119
- width=\\"114\\"
120
- >
121
- </a>&nbsp;If you want to send me a one time donation. The coffee is pretty good 😊.<br/>
122
- <a href=\\"https://paypal.me/SebastianLandwehr\\">
123
- <img
124
- src=\\"https://sebastianlandwehr.com/images/paypal.svg\\"
125
- alt=\\"PayPal\\"
126
- width=\\"163\\"
127
- >
128
- </a>&nbsp;Also for one time donations if you like PayPal.<br/>
129
- <a href=\\"https://www.patreon.com/dworddesign\\">
130
- <img
131
- src=\\"https://sebastianlandwehr.com/images/patreon.svg\\"
132
- alt=\\"Patreon\\"
133
- width=\\"163\\"
134
- >
135
- </a>&nbsp;Here you can support me regularly, which is great so I can steadily work on projects.
136
- </p>
137
-
138
- Thanks a lot for your support! ❤️
139
-
140
- ## License
141
-
142
- [MIT License](https://opensource.org/license/mit/) © [Sebastian Landwehr](https://sebastianlandwehr.com)
143
- <!-- /LICENSE -->
144
- "
145
- `;
146
-
147
- exports[`index license 1`] = `
148
- "<!-- LICENSE/ -->
149
- ## Contribute
150
-
151
- Are you missing something or want to contribute? Feel free to file an [issue](https://github.com/undefined/issues) or a [pull request](https://github.com/undefined/pulls)! ⚙️
152
-
153
- ## Support
154
-
155
- 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:
156
-
157
- <p>
158
- <a href=\\"https://www.buymeacoffee.com/dword\\">
159
- <img
160
- src=\\"https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg\\"
161
- alt=\\"Buy Me a Coffee\\"
162
- width=\\"114\\"
163
- >
164
- </a>&nbsp;If you want to send me a one time donation. The coffee is pretty good 😊.<br/>
165
- <a href=\\"https://paypal.me/SebastianLandwehr\\">
166
- <img
167
- src=\\"https://sebastianlandwehr.com/images/paypal.svg\\"
168
- alt=\\"PayPal\\"
169
- width=\\"163\\"
170
- >
171
- </a>&nbsp;Also for one time donations if you like PayPal.<br/>
172
- <a href=\\"https://www.patreon.com/dworddesign\\">
173
- <img
174
- src=\\"https://sebastianlandwehr.com/images/patreon.svg\\"
175
- alt=\\"Patreon\\"
176
- width=\\"163\\"
177
- >
178
- </a>&nbsp;Here you can support me regularly, which is great so I can steadily work on projects.
179
- </p>
180
-
181
- Thanks a lot for your support! ❤️
182
-
183
- ## License
184
-
185
- [MIT License](https://opensource.org/license/mit/) © [Sebastian Landwehr](https://sebastianlandwehr.com)
186
- <!-- /LICENSE -->
187
- "
188
- `;
189
-
190
- exports[`index seeAlso 1`] = `
191
- "<!-- LICENSE/ -->
192
- ## Contribute
193
-
194
- Are you missing something or want to contribute? Feel free to file an [issue](https://github.com/undefined/issues) or a [pull request](https://github.com/undefined/pulls)! ⚙️
195
-
196
- ## Support
197
-
198
- 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:
199
-
200
- <p>
201
- <a href=\\"https://www.buymeacoffee.com/dword\\">
202
- <img
203
- src=\\"https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg\\"
204
- alt=\\"Buy Me a Coffee\\"
205
- width=\\"114\\"
206
- >
207
- </a>&nbsp;If you want to send me a one time donation. The coffee is pretty good 😊.<br/>
208
- <a href=\\"https://paypal.me/SebastianLandwehr\\">
209
- <img
210
- src=\\"https://sebastianlandwehr.com/images/paypal.svg\\"
211
- alt=\\"PayPal\\"
212
- width=\\"163\\"
213
- >
214
- </a>&nbsp;Also for one time donations if you like PayPal.<br/>
215
- <a href=\\"https://www.patreon.com/dworddesign\\">
216
- <img
217
- src=\\"https://sebastianlandwehr.com/images/patreon.svg\\"
218
- alt=\\"Patreon\\"
219
- width=\\"163\\"
220
- >
221
- </a>&nbsp;Here you can support me regularly, which is great so I can steadily work on projects.
222
- </p>
223
-
224
- Thanks a lot for your support! ❤️
225
-
226
- ## See also
227
-
228
- * [output-files](https://github.com/dword-design/output-files): Foo bar
229
- * [with-local-tmp-dir](https://github.com/foo/with-local-tmp-dir): Bar baz
230
-
231
- ## License
232
-
233
- [MIT License](https://opensource.org/license/mit/) © [Sebastian Landwehr](https://sebastianlandwehr.com)
234
- <!-- /LICENSE -->
235
- "
236
- `;
@@ -1,35 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`index valid 1`] = `
4
- Object {
5
- "editor.tabSize": 2,
6
- "files.autoSave": "off",
7
- "files.exclude": Object {
8
- ".commitlintrc.json": true,
9
- ".cz.json": true,
10
- ".devcontainer": true,
11
- ".editorconfig": true,
12
- ".gitattributes": true,
13
- ".github": true,
14
- ".gitignore": true,
15
- ".gitpod.Dockerfile": true,
16
- ".gitpod.yml": true,
17
- ".husky": true,
18
- ".npmrc": true,
19
- ".nyc_output": true,
20
- ".releaserc.json": true,
21
- ".renovaterc.json": true,
22
- ".vscode": true,
23
- "CHANGELOG.md": true,
24
- "LICENSE.md": true,
25
- "babel.config.json": true,
26
- "bar": true,
27
- "coverage": true,
28
- "eslint.config.js": true,
29
- "foo": true,
30
- "node_modules": true,
31
- "pnpm-lock.yaml": true,
32
- },
33
- "workbench.editor.enablePreview": false,
34
- }
35
- `;
@@ -1,57 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`index valid 1`] = `
4
- Object {
5
- "jobs": Object {
6
- "run": Object {
7
- "runs-on": "ubuntu-latest",
8
- "steps": Array [
9
- Object {
10
- "uses": "actions/checkout@v4",
11
- "with": Object {
12
- "lfs": true,
13
- },
14
- },
15
- Object {
16
- "continue-on-error": true,
17
- "id": "check-deprecated-js-deps",
18
- "uses": "tinovyatkin/action-check-deprecated-js-deps@v1",
19
- },
20
- Object {
21
- "env": Object {
22
- "DEPRECATED": "\${{ steps.check-deprecated-js-deps.outputs.deprecated }}",
23
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
24
- "RUN_URL": "https://github.com/\${{github.repository}}/actions/runs/\${{github.run_id}}",
25
- },
26
- "id": "create-deprecation-issue",
27
- "if": "\${{ steps.check-deprecated-js-deps.outputs.deprecated }}",
28
- "uses": "JasonEtco/create-an-issue@v2",
29
- "with": Object {
30
- "filename": ".github/DEPRECATED_DEPENDENCIES_ISSUE_TEMPLATE.md",
31
- "update_existing": true,
32
- },
33
- },
34
- Object {
35
- "if": "\${{ !steps.check-deprecated-js-deps.outputs.deprecated && steps.create-deprecation-issue.outputs.number }}",
36
- "uses": "peter-evans/close-issue@v3",
37
- "with": Object {
38
- "comment": "Auto-closing the issue",
39
- "issue-number": "\${{ steps.create-deprecation-issue.outputs.number }}",
40
- },
41
- },
42
- Object {
43
- "uses": "liskin/gh-workflow-keepalive@v1",
44
- },
45
- ],
46
- },
47
- },
48
- "name": "deprecated-dependencies",
49
- "on": Object {
50
- "schedule": Array [
51
- Object {
52
- "cron": "0 5 * * MON",
53
- },
54
- ],
55
- },
56
- }
57
- `;
@@ -1,11 +0,0 @@
1
- export default {
2
- compilerOptions: {
3
- moduleResolution: 'bundler',
4
- paths: {
5
- '@': ['.'],
6
- '@/*': ['./*']
7
- },
8
- target: 'ESNext'
9
- },
10
- exclude: ['**/*.test.ts', '**/*.spec.ts']
11
- };