@dword-design/base 9.4.59 → 9.4.60

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.
@@ -11,7 +11,7 @@ export default class extends Error {
11
11
  var _ref, _ref2, _ref3, _files;
12
12
  super(endent`
13
13
  There are files in this repository that are not known to ${packageConfig.name}. Let's discuss about them in a PR!
14
-
14
+
15
15
  ${(_ref = (_ref2 = (_ref3 = (_files = files, keys(_files)), map(file => `* ${file}`)(_ref3)), sortBy(identity)(_ref2)), join('\n')(_ref))}
16
16
  `);
17
17
  }
@@ -29,15 +29,15 @@ export default async function () {
29
29
  }
30
30
  };
31
31
  const errorMessage = (_ref = [...(result.dependencies.length > 0 ? [endent`
32
- Unused dependencies
33
- ${(_ref2 = (_result$dependencies = result.dependencies, map(dep => `* ${dep}`)(_result$dependencies)), join('\n')(_ref2))}
34
- `] : []), ...(result.devDependencies.length > 0 ? [endent`
35
- Unused devDependencies
36
- ${(_ref3 = (_result$devDependenci = result.devDependencies, map(dep => `* ${dep}`)(_result$devDependenci)), join('\n')(_ref3))}
37
- `] : []), ...(isEmpty(result.invalidFiles) ? [] : [endent`
38
- Invalid files
39
- ${(_ref4 = (_ref5 = (_result$invalidFiles = result.invalidFiles, mapValues((error, name) => `* ${name}: ${error}`)(_result$invalidFiles)), values(_ref5)), join('\n')(_ref4))}
40
- `])], join('\n\n')(_ref));
32
+ Unused dependencies
33
+ ${(_ref2 = (_result$dependencies = result.dependencies, map(dep => `* ${dep}`)(_result$dependencies)), join('\n')(_ref2))}
34
+ `] : []), ...(result.devDependencies.length > 0 ? [endent`
35
+ Unused devDependencies
36
+ ${(_ref3 = (_result$devDependenci = result.devDependencies, map(dep => `* ${dep}`)(_result$devDependenci)), join('\n')(_ref3))}
37
+ `] : []), ...(isEmpty(result.invalidFiles) ? [] : [endent`
38
+ Invalid files
39
+ ${(_ref4 = (_ref5 = (_result$invalidFiles = result.invalidFiles, mapValues((error, name) => `* ${name}: ${error}`)(_result$invalidFiles)), values(_ref5)), join('\n')(_ref4))}
40
+ `])], join('\n\n')(_ref));
41
41
  if (errorMessage) {
42
42
  throw new Error(errorMessage);
43
43
  }
@@ -18,11 +18,11 @@ export default function () {
18
18
  RUN yarn global add gitpod-env-per-project @babel/node @babel/core
19
19
 
20
20
  RUN sudo apt-get install -y graphviz
21
-
21
+
22
22
  RUN brew install gh
23
23
 
24
24
  # Puppeteer dependencies
25
25
  RUN sudo apt-get update && sudo apt-get install -y libgtk-3-0 libx11-xcb1 libnss3 libxss1 libasound2 libgbm1 libxshmfence1
26
-
26
+
27
27
  `;
28
28
  }
@@ -9,128 +9,128 @@ export default {
9
9
  badges() {
10
10
  var _ref;
11
11
  return endent`
12
- <p>
13
- ${(_ref = [...(this.config.npmPublish && !this.packageConfig.private ? [endent`
14
- <a href="https://npmjs.org/package/${this.packageConfig.name}">
12
+ <p>
13
+ ${(_ref = [...(this.config.npmPublish && !this.packageConfig.private ? [endent`
14
+ <a href="https://npmjs.org/package/${this.packageConfig.name}">
15
+ <img
16
+ src="https://img.shields.io/npm/v/${this.packageConfig.name}.svg"
17
+ alt="npm version"
18
+ >
19
+ </a>
20
+ `] : []), '<img src="https://img.shields.io/badge/os-linux%20%7C%C2%A0macos%20%7C%C2%A0windows-blue" alt="Linux macOS Windows compatible">', endent`
21
+ <a href="https://github.com/${this.packageConfig.repository}/actions">
15
22
  <img
16
- src="https://img.shields.io/npm/v/${this.packageConfig.name}.svg"
17
- alt="npm version"
23
+ src="https://github.com/${this.packageConfig.repository}/workflows/build/badge.svg"
24
+ alt="Build status"
18
25
  >
19
26
  </a>
20
- `] : []), '<img src="https://img.shields.io/badge/os-linux%20%7C%C2%A0macos%20%7C%C2%A0windows-blue" alt="Linux macOS Windows compatible">', endent`
21
- <a href="https://github.com/${this.packageConfig.repository}/actions">
22
- <img
23
- src="https://github.com/${this.packageConfig.repository}/workflows/build/badge.svg"
24
- alt="Build status"
25
- >
26
- </a>
27
- `, endent`
28
- <a href="https://codecov.io/gh/${this.packageConfig.repository}">
29
- <img
30
- src="https://codecov.io/gh/${this.packageConfig.repository}/branch/master/graph/badge.svg${this.config.codecovGraphToken ? `?token=${this.config.codecovGraphToken}` : ''}"
31
- alt="Coverage status"
32
- >
33
- </a>
34
- `, endent`
35
- <a href="https://david-dm.org/${this.packageConfig.repository}">
36
- <img src="https://img.shields.io/david/${this.packageConfig.repository}" alt="Dependency status">
37
- </a>
38
- `, '<img src="https://img.shields.io/badge/renovate-enabled-brightgreen" alt="Renovate enabled">', '<br/>', endent`
39
- <a href="https://gitpod.io/#https://github.com/${this.packageConfig.repository}">
40
- <img
41
- src="https://gitpod.io/button/open-in-gitpod.svg"
42
- alt="Open in Gitpod"
43
- width="114"
44
- >
45
- </a>
46
- `, endent`
27
+ `, endent`
28
+ <a href="https://codecov.io/gh/${this.packageConfig.repository}">
29
+ <img
30
+ src="https://codecov.io/gh/${this.packageConfig.repository}/branch/master/graph/badge.svg${this.config.codecovGraphToken ? `?token=${this.config.codecovGraphToken}` : ''}"
31
+ alt="Coverage status"
32
+ >
33
+ </a>
34
+ `, endent`
35
+ <a href="https://david-dm.org/${this.packageConfig.repository}">
36
+ <img src="https://img.shields.io/david/${this.packageConfig.repository}" alt="Dependency status">
37
+ </a>
38
+ `, '<img src="https://img.shields.io/badge/renovate-enabled-brightgreen" alt="Renovate enabled">', '<br/>', endent`
39
+ <a href="https://gitpod.io/#https://github.com/${this.packageConfig.repository}">
40
+ <img
41
+ src="https://gitpod.io/button/open-in-gitpod.svg"
42
+ alt="Open in Gitpod"
43
+ width="114"
44
+ >
45
+ </a>
46
+ `, endent`
47
+ <a href="https://www.buymeacoffee.com/dword">
48
+ <img
49
+ src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg"
50
+ alt="Buy Me a Coffee"
51
+ width="114"
52
+ >
53
+ </a>
54
+ `, endent`
55
+ <a href="https://paypal.me/SebastianLandwehr">
56
+ <img
57
+ src="https://sebastianlandwehr.com/images/paypal.svg"
58
+ alt="PayPal"
59
+ width="163"
60
+ >
61
+ </a>
62
+ `, endent`
63
+ <a href="https://www.patreon.com/dworddesign">
64
+ <img
65
+ src="https://sebastianlandwehr.com/images/patreon.svg"
66
+ alt="Patreon"
67
+ width="163"
68
+ >
69
+ </a>
70
+ `], join('')(_ref))}
71
+ </p>
72
+ `;
73
+ },
74
+ description() {
75
+ return this.packageConfig.description || '';
76
+ },
77
+ install() {
78
+ return this.config.readmeInstallString;
79
+ },
80
+ license() {
81
+ var _ref2, _ref3, _this$config$seeAlso;
82
+ return _ref2 = [endent`
83
+ ## Contribute
84
+
85
+ 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)! ⚙️
86
+
87
+ ## Support
88
+
89
+ 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:
90
+
91
+ <p>
47
92
  <a href="https://www.buymeacoffee.com/dword">
48
93
  <img
49
94
  src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg"
50
95
  alt="Buy Me a Coffee"
51
96
  width="114"
52
97
  >
53
- </a>
54
- `, endent`
98
+ </a>&nbsp;If you want to send me a one time donation. The coffee is pretty good 😊.<br/>
55
99
  <a href="https://paypal.me/SebastianLandwehr">
56
100
  <img
57
101
  src="https://sebastianlandwehr.com/images/paypal.svg"
58
102
  alt="PayPal"
59
103
  width="163"
60
104
  >
61
- </a>
62
- `, endent`
105
+ </a>&nbsp;Also for one time donations if you like PayPal.<br/>
63
106
  <a href="https://www.patreon.com/dworddesign">
64
107
  <img
65
108
  src="https://sebastianlandwehr.com/images/patreon.svg"
66
109
  alt="Patreon"
67
110
  width="163"
68
111
  >
69
- </a>
70
- `], join('')(_ref))}
71
- </p>
72
- `;
73
- },
74
- description() {
75
- return this.packageConfig.description || '';
76
- },
77
- install() {
78
- return this.config.readmeInstallString;
79
- },
80
- license() {
81
- var _ref2, _ref3, _this$config$seeAlso;
82
- return _ref2 = [endent`
83
- ## Contribute
112
+ </a>&nbsp;Here you can support me regularly, which is great so I can steadily work on projects.
113
+ </p>
84
114
 
85
- 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)! ⚙️
115
+ Thanks a lot for your support! ❤️
116
+ `, ...(this.config.seeAlso.length > 0 ? [endent`
117
+ ## See also
86
118
 
87
- ## Support
88
-
89
- 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:
90
-
91
- <p>
92
- <a href="https://www.buymeacoffee.com/dword">
93
- <img
94
- src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg"
95
- alt="Buy Me a Coffee"
96
- width="114"
97
- >
98
- </a>&nbsp;If you want to send me a one time donation. The coffee is pretty good 😊.<br/>
99
- <a href="https://paypal.me/SebastianLandwehr">
100
- <img
101
- src="https://sebastianlandwehr.com/images/paypal.svg"
102
- alt="PayPal"
103
- width="163"
104
- >
105
- </a>&nbsp;Also for one time donations if you like PayPal.<br/>
106
- <a href="https://www.patreon.com/dworddesign">
107
- <img
108
- src="https://sebastianlandwehr.com/images/patreon.svg"
109
- alt="Patreon"
110
- width="163"
111
- >
112
- </a>&nbsp;Here you can support me regularly, which is great so I can steadily work on projects.
113
- </p>
114
-
115
- Thanks a lot for your support! ❤️
116
- `, ...(this.config.seeAlso.length > 0 ? [endent`
117
- ## See also
118
-
119
- ${(_ref3 = (_this$config$seeAlso = this.config.seeAlso, map(entry => {
119
+ ${(_ref3 = (_this$config$seeAlso = this.config.seeAlso, map(entry => {
120
120
  var _entry$repository, _parts;
121
121
  const parts = (_entry$repository = entry.repository, split('/')(_entry$repository));
122
122
  const owner = parts.length >= 2 ? parts[0] : 'dword-design';
123
123
  const name = (_parts = parts, last(_parts));
124
124
  return `* [${name}](https://github.com/${owner}/${name}): ${entry.description}`;
125
125
  })(_this$config$seeAlso)), join('\n')(_ref3))}
126
- `] : []), this.packageConfig.license ? [(() => {
126
+ `] : []), this.packageConfig.license ? [(() => {
127
127
  const parsed = spdxParse(this.packageConfig.license);
128
128
  const license = spdxList[parsed.license];
129
129
  return endent`
130
- ## License
130
+ ## License
131
131
 
132
- [${license.name}](${license.url}) © [Sebastian Landwehr](https://sebastianlandwehr.com)
133
- `;
132
+ [${license.name}](${license.url}) © [Sebastian Landwehr](https://sebastianlandwehr.com)
133
+ `;
134
134
  })()] : []], join('\n\n')(_ref2);
135
135
  },
136
136
  title() {
@@ -11,5 +11,5 @@ export default endent`
11
11
  {% endfor %}
12
12
 
13
13
  Check out the [build]({{ env.RUN_URL }}) for details.
14
-
14
+
15
15
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "9.4.59",
3
+ "version": "9.4.60",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",