pob 26.6.0 → 26.8.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/CHANGELOG.md +24 -0
- package/lib/generators/common/release/templates/workflow-release.yml.ejs +1 -1
- package/lib/generators/common/transpiler/CommonTranspilerGenerator.js +2 -2
- package/lib/generators/core/ci/templates/github-action-documentation-workflow.yml.ejs +1 -1
- package/lib/generators/core/ci/templates/github-action-push-workflow-split.yml.ejs +9 -9
- package/lib/generators/core/ci/templates/github-action-push-workflow.yml.ejs +2 -2
- package/lib/generators/core/gitignore/CoreGitignoreGenerator.js +0 -1
- package/lib/generators/lib/readme/LibReadmeGenerator.js +24 -3
- package/lib/generators/lib/readme/templates/README.md.ejs +7 -7
- package/lib/generators/monorepo/workspaces/MonorepoWorkspacesGenerator.js +11 -3
- package/lib/generators/monorepo/workspaces/templates/README.md.ejs +4 -4
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [26.8.0](https://github.com/christophehurpeau/pob/compare/pob@26.7.0...pob@26.8.0) (2025-02-17)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **deps:** update @pob/eslint-config to v59.7.0 ([#2468](https://github.com/christophehurpeau/pob/issues/2468)) ([dbb4715](https://github.com/christophehurpeau/pob/commit/dbb47156a20d69047fe56f1476bd734849dd1891))
|
|
11
|
+
* update node ci usage to 22.14 ([fc4186e](https://github.com/christophehurpeau/pob/commit/fc4186ecabbba5fb162be99ece77e0389d66380b))
|
|
12
|
+
* update to node 22.14 ([9f5e485](https://github.com/christophehurpeau/pob/commit/9f5e485f5044fd402de2c6b178990a6ba49e935c))
|
|
13
|
+
|
|
14
|
+
Version bump for dependency: yarn-workspace-utils
|
|
15
|
+
Version bump for dependency: @pob/root
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [26.7.0](https://github.com/christophehurpeau/pob/compare/pob@26.6.0...pob@26.7.0) (2025-02-17)
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **deps:** update dependency eslint to v9.20.1 ([#2453](https://github.com/christophehurpeau/pob/issues/2453)) ([d215189](https://github.com/christophehurpeau/pob/commit/d215189752bb3a1e60410912dcbc4e91946fa609))
|
|
23
|
+
* **deps:** update dependency prettier to v3.5.1 ([#2461](https://github.com/christophehurpeau/pob/issues/2461)) ([38daf8a](https://github.com/christophehurpeau/pob/commit/38daf8a0185d615595d6c233b4c8bb1d0645926d))
|
|
24
|
+
* fix ci for dependabot ([c335a91](https://github.com/christophehurpeau/pob/commit/c335a91eacc4164c64b79d79569a0a6f4ea1029c))
|
|
25
|
+
|
|
26
|
+
Version bump for dependency: yarn-workspace-utils
|
|
27
|
+
Version bump for dependency: @pob/root
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [26.6.0](https://github.com/christophehurpeau/pob/compare/pob@26.5.0...pob@26.6.0) (2025-02-09)
|
|
7
31
|
|
|
8
32
|
### Features
|
|
@@ -643,7 +643,7 @@ export default class CommonTranspilerGenerator extends Generator {
|
|
|
643
643
|
}
|
|
644
644
|
break;
|
|
645
645
|
case "22":
|
|
646
|
-
pkg.engines.node = ">=22.
|
|
646
|
+
pkg.engines.node = ">=22.14.0";
|
|
647
647
|
break;
|
|
648
648
|
default:
|
|
649
649
|
throw new Error(`Invalid min node version: ${minNodeVersion}`);
|
|
@@ -667,7 +667,7 @@ export default class CommonTranspilerGenerator extends Generator {
|
|
|
667
667
|
packageUtils.removeDevDependencies(pkg, ["@types/node"]);
|
|
668
668
|
|
|
669
669
|
// Supports oldest current or active LTS version of node
|
|
670
|
-
const minVersion = this.options.onlyLatestLTS ? "22.
|
|
670
|
+
const minVersion = this.options.onlyLatestLTS ? "22.14.0" : "20.9.0";
|
|
671
671
|
|
|
672
672
|
if (
|
|
673
673
|
!pkg.engines.node ||
|
|
@@ -12,7 +12,7 @@ jobs:
|
|
|
12
12
|
|
|
13
13
|
- uses: actions/setup-node@v4
|
|
14
14
|
with:
|
|
15
|
-
node-version: 22
|
|
15
|
+
node-version: 22.14
|
|
16
16
|
|
|
17
17
|
- name: Enable Corepack
|
|
18
18
|
run: corepack enable
|
|
@@ -41,7 +41,7 @@ jobs:
|
|
|
41
41
|
|
|
42
42
|
- uses: actions/setup-node@v4
|
|
43
43
|
with:
|
|
44
|
-
node-version: 22
|
|
44
|
+
node-version: 22.14
|
|
45
45
|
|
|
46
46
|
- name: Enable Corepack
|
|
47
47
|
run: corepack enable
|
|
@@ -72,7 +72,7 @@ jobs:
|
|
|
72
72
|
|
|
73
73
|
- uses: actions/setup-node@v4
|
|
74
74
|
with:
|
|
75
|
-
node-version: 22
|
|
75
|
+
node-version: 22.14
|
|
76
76
|
|
|
77
77
|
- name: Enable Corepack
|
|
78
78
|
run: corepack enable
|
|
@@ -101,7 +101,7 @@ jobs:
|
|
|
101
101
|
|
|
102
102
|
strategy:
|
|
103
103
|
matrix:
|
|
104
|
-
node-version: [20, 22]
|
|
104
|
+
node-version: [20, 22.14]
|
|
105
105
|
|
|
106
106
|
steps:
|
|
107
107
|
- uses: actions/checkout@v4
|
|
@@ -131,17 +131,17 @@ jobs:
|
|
|
131
131
|
<% if (codecov) { -%>
|
|
132
132
|
- name: Test
|
|
133
133
|
run: <%= packageManager %> run test
|
|
134
|
-
if: matrix.node-version !=
|
|
134
|
+
if: matrix.node-version != '22.14'
|
|
135
135
|
|
|
136
136
|
- name: Generate Test Coverage
|
|
137
137
|
run: <%= packageManager %> run test:coverage:json
|
|
138
|
-
if: matrix.node-version ==
|
|
138
|
+
if: matrix.node-version == '22.14'
|
|
139
139
|
env:
|
|
140
140
|
CI: true
|
|
141
141
|
|
|
142
142
|
- name: Send results to codecov
|
|
143
143
|
uses: codecov/codecov-action@v5
|
|
144
|
-
if: matrix.node-version ==
|
|
144
|
+
if: matrix.node-version == '22.14' && github.actor != 'dependabot[bot]'
|
|
145
145
|
with:
|
|
146
146
|
fail_ci_if_error: true
|
|
147
147
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
@@ -158,7 +158,7 @@ jobs:
|
|
|
158
158
|
|
|
159
159
|
strategy:
|
|
160
160
|
matrix:
|
|
161
|
-
node-version: [22]
|
|
161
|
+
node-version: [22.14]
|
|
162
162
|
|
|
163
163
|
steps:
|
|
164
164
|
- uses: actions/checkout@v4
|
|
@@ -191,7 +191,7 @@ jobs:
|
|
|
191
191
|
|
|
192
192
|
- uses: actions/setup-node@v4
|
|
193
193
|
with:
|
|
194
|
-
node-version: 22
|
|
194
|
+
node-version: 22.14
|
|
195
195
|
|
|
196
196
|
- uses: GoogleCloudPlatform/release-please-action@v3
|
|
197
197
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
@@ -8,7 +8,7 @@ jobs:
|
|
|
8
8
|
|
|
9
9
|
strategy:
|
|
10
10
|
matrix:
|
|
11
|
-
node-version: [<% if (!onlyLatestLTS) { -%>20.x, <% } -%>22.
|
|
11
|
+
node-version: [<% if (!onlyLatestLTS) { -%>20.x, <% } -%>22.14]
|
|
12
12
|
|
|
13
13
|
steps:
|
|
14
14
|
- uses: actions/checkout@v4
|
|
@@ -84,7 +84,7 @@ jobs:
|
|
|
84
84
|
with:
|
|
85
85
|
fail_ci_if_error: true
|
|
86
86
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
87
|
-
if: startsWith(matrix.node-version, '22.')
|
|
87
|
+
if: startsWith(matrix.node-version, '22.') && github.actor != 'dependabot[bot]'
|
|
88
88
|
<% } else if (testing) { -%>
|
|
89
89
|
|
|
90
90
|
- name: Test
|
|
@@ -79,7 +79,6 @@ export default class CoreGitignoreGenerator extends Generator {
|
|
|
79
79
|
documentation: this.options.documentation,
|
|
80
80
|
testing: this.options.testing,
|
|
81
81
|
withBabel,
|
|
82
|
-
tsTestUtil: "ts-node",
|
|
83
82
|
typescript: withBabel || this.options.typescript,
|
|
84
83
|
paths: this.options.paths,
|
|
85
84
|
buildInGit: this.options.buildInGit,
|
|
@@ -49,9 +49,29 @@ export default class LibReadmeGenerator extends Generator {
|
|
|
49
49
|
|
|
50
50
|
if (this.fs.exists(readmePath)) {
|
|
51
51
|
const readmeFullContent = this.fs.read(readmePath);
|
|
52
|
-
content = readmeFullContent.match(
|
|
52
|
+
content = readmeFullContent.match(
|
|
53
|
+
/^<h1 align="center"[^#*]+([^]+)\[npm-image\]:/,
|
|
54
|
+
);
|
|
55
|
+
if (!content) {
|
|
56
|
+
content = readmeFullContent.match(
|
|
57
|
+
/^<h1 align="center"[^#*]+([^]+)\[daviddm-image\]:/,
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
if (!content) {
|
|
61
|
+
content = readmeFullContent.match(
|
|
62
|
+
/^<h3 align="center"[^#*]+([^]+)\[npm-image\]:/,
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
if (!content) {
|
|
66
|
+
content = readmeFullContent.match(
|
|
67
|
+
/^<h3 align="center"[^#*]+([^]+)\[daviddm-image\]:/,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
if (!content) {
|
|
71
|
+
content = readmeFullContent.match(/^<h1 align="center"[^#*]+([^]+)$/);
|
|
72
|
+
}
|
|
53
73
|
if (!content) {
|
|
54
|
-
content = readmeFullContent.match(/^<h3[^#*]+([^]+)
|
|
74
|
+
content = readmeFullContent.match(/^<h3 align="center"[^#*]+([^]+)$/);
|
|
55
75
|
}
|
|
56
76
|
if (!content) content = readmeFullContent.match(/^<h3[^#*]+([^]+)$/);
|
|
57
77
|
if (!content) {
|
|
@@ -79,10 +99,11 @@ export default class LibReadmeGenerator extends Generator {
|
|
|
79
99
|
this.templatePath("README.md.ejs"),
|
|
80
100
|
readmePath,
|
|
81
101
|
{
|
|
102
|
+
title: pkg.name.replace(/-monorepo$/, ""),
|
|
82
103
|
privatePackage: pkg.private,
|
|
83
104
|
packageName: pkg.name,
|
|
84
105
|
camelCaseProjectName: camelCase(pkg.name),
|
|
85
|
-
description: pkg.description,
|
|
106
|
+
description: pkg.description || undefined,
|
|
86
107
|
inMonorepo,
|
|
87
108
|
gitHost,
|
|
88
109
|
gitAccount,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<
|
|
2
|
-
<%=
|
|
3
|
-
</
|
|
1
|
+
<h1 align="center">
|
|
2
|
+
<%= title %>
|
|
3
|
+
</h1>
|
|
4
4
|
<% if (description) { -%>
|
|
5
5
|
|
|
6
6
|
<p align="center">
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
12
|
<% if (!privatePackage) { -%>
|
|
13
|
-
<a href="https://npmjs.org/package/<%= packageName %>"><img src="https://img.shields.io/npm/v/<%= packageName %>.svg?style=flat-square"></a>
|
|
14
|
-
<a href="https://npmjs.org/package/<%= packageName %>"><img src="https://img.shields.io/npm/dw/<%= packageName %>.svg?style=flat-square"></a>
|
|
15
|
-
<a href="https://npmjs.org/package/<%= packageName %>"><img src="https://img.shields.io/node/v/<%= packageName %>.svg?style=flat-square"></a>
|
|
16
|
-
<a href="https://npmjs.org/package/<%= packageName %>"><img src="https://img.shields.io/npm/types/<%= packageName %>.svg?style=flat-square"></a>
|
|
13
|
+
<a href="https://npmjs.org/package/<%= packageName %>"><img src="https://img.shields.io/npm/v/<%= packageName %>.svg?style=flat-square" alt="npm version"></a>
|
|
14
|
+
<a href="https://npmjs.org/package/<%= packageName %>"><img src="https://img.shields.io/npm/dw/<%= packageName %>.svg?style=flat-square" alt="npm downloads"></a>
|
|
15
|
+
<a href="https://npmjs.org/package/<%= packageName %>"><img src="https://img.shields.io/node/v/<%= packageName %>.svg?style=flat-square" alt="node version"></a>
|
|
16
|
+
<a href="https://npmjs.org/package/<%= packageName %>"><img src="https://img.shields.io/npm/types/<%= packageName %>.svg?style=flat-square" alt="types"></a>
|
|
17
17
|
<% } if (gitHost === 'github') { -%>
|
|
18
18
|
<% if (testing && codecov) { -%>
|
|
19
19
|
<a href="https://codecov.io/gh/<%= gitAccount %>/<%= gitName %>"><img src="https://img.shields.io/codecov/c/github/<%= gitAccount %>/<%= gitName %>/master.svg?style=flat-square"></a>
|
|
@@ -160,15 +160,23 @@ export default class MonorepoWorkspacesGenerator extends Generator {
|
|
|
160
160
|
if (this.fs.exists(readmePath)) {
|
|
161
161
|
const readmeFullContent = this.fs.read(readmePath);
|
|
162
162
|
// eslint-disable-next-line regexp/no-super-linear-backtracking, regexp/match-any
|
|
163
|
-
content = readmeFullContent.match(/^<
|
|
163
|
+
content = readmeFullContent.match(/^<h1 align="center"[^#*]+([^]+)$/);
|
|
164
|
+
if (!content) {
|
|
165
|
+
// eslint-disable-next-line regexp/no-super-linear-backtracking, regexp/match-any
|
|
166
|
+
content = readmeFullContent.match(/^<h3 align="center"[^#*]+([^]+)$/);
|
|
167
|
+
}
|
|
168
|
+
if (!content) {
|
|
169
|
+
// eslint-disable-next-line regexp/no-super-linear-backtracking, regexp/match-any
|
|
170
|
+
content = readmeFullContent.match(/^<h3[^#*]+([^]+)$/);
|
|
171
|
+
}
|
|
164
172
|
// eslint-disable-next-line regexp/no-super-linear-backtracking, regexp/match-any
|
|
165
173
|
if (!content) content = readmeFullContent.match(/^#[^#*]+([^]+)$/);
|
|
166
174
|
content = content ? content[1].trim() : readmeFullContent;
|
|
167
175
|
}
|
|
168
176
|
|
|
169
177
|
copyAndFormatTpl(this.fs, this.templatePath("README.md.ejs"), readmePath, {
|
|
170
|
-
|
|
171
|
-
description:
|
|
178
|
+
title: pkg.description,
|
|
179
|
+
description: "",
|
|
172
180
|
packages: this.packages,
|
|
173
181
|
ci: this.fs.exists(this.destinationPath(".github/workflows/push.yml")),
|
|
174
182
|
content,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<
|
|
2
|
-
<%=
|
|
3
|
-
</
|
|
1
|
+
<h1 align="center">
|
|
2
|
+
<%= title %>
|
|
3
|
+
</h1>
|
|
4
4
|
<% if (description) { -%>
|
|
5
5
|
|
|
6
6
|
<p align="center">
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</p>
|
|
9
9
|
<% } -%>
|
|
10
10
|
|
|
11
|
-
<
|
|
11
|
+
<h3>📦 Packages</h3>
|
|
12
12
|
|
|
13
13
|
This repository is a monorepo that we manage using [Yarn Workspaces](https://yarnpkg.com/features/workspaces).
|
|
14
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pob",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.8.0",
|
|
4
4
|
"description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skeleton"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"type": "module",
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": ">=22.
|
|
21
|
+
"node": ">=22.14.0"
|
|
22
22
|
},
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"bin": "./lib/pob.js",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
},
|
|
42
42
|
"prettier": "@pob/root/prettier-config",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@pob/eslint-config": "59.
|
|
45
|
-
"@pob/eslint-config-typescript": "59.
|
|
46
|
-
"@pob/eslint-config-typescript-react": "59.
|
|
44
|
+
"@pob/eslint-config": "59.7.0",
|
|
45
|
+
"@pob/eslint-config-typescript": "59.7.0",
|
|
46
|
+
"@pob/eslint-config-typescript-react": "59.7.0",
|
|
47
47
|
"@pob/sort-eslint-config": "8.0.0",
|
|
48
48
|
"@pob/sort-object": "9.0.0",
|
|
49
49
|
"@pob/sort-pkg": "11.0.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@yarnpkg/core": "4.2.0",
|
|
54
54
|
"@yarnpkg/fslib": "3.1.1",
|
|
55
55
|
"@yeoman/types": "1.5.0",
|
|
56
|
-
"eslint": "9.20.
|
|
56
|
+
"eslint": "9.20.1",
|
|
57
57
|
"findup-sync": "^5.0.0",
|
|
58
58
|
"git-remote-url": "^1.0.1",
|
|
59
59
|
"github-username": "^8.0.0",
|
|
@@ -65,17 +65,17 @@
|
|
|
65
65
|
"mem-fs-editor": "11.1.4",
|
|
66
66
|
"minimist": "1.2.8",
|
|
67
67
|
"parse-author": "2.0.0",
|
|
68
|
-
"pob-dependencies": "17.
|
|
69
|
-
"prettier": "3.5.
|
|
68
|
+
"pob-dependencies": "17.6.0",
|
|
69
|
+
"prettier": "3.5.1",
|
|
70
70
|
"semver": "7.7.1",
|
|
71
71
|
"typescript": "5.7.3",
|
|
72
72
|
"validate-npm-package-name": "^6.0.0",
|
|
73
|
-
"yarn-workspace-utils": "8.
|
|
73
|
+
"yarn-workspace-utils": "8.3.0",
|
|
74
74
|
"yeoman-environment": "4.4.3",
|
|
75
75
|
"yeoman-generator": "7.4.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@pob/root": "16.
|
|
79
|
-
"@types/node": "22.13.
|
|
78
|
+
"@pob/root": "16.6.0",
|
|
79
|
+
"@types/node": "22.13.4"
|
|
80
80
|
}
|
|
81
81
|
}
|