pob 26.6.0 → 26.7.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 +12 -0
- package/lib/generators/core/ci/templates/github-action-push-workflow-split.yml.ejs +3 -3
- package/lib/generators/core/ci/templates/github-action-push-workflow.yml.ejs +1 -1
- 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 +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.7.0](https://github.com/christophehurpeau/pob/compare/pob@26.6.0...pob@26.7.0) (2025-02-17)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **deps:** update dependency eslint to v9.20.1 ([#2453](https://github.com/christophehurpeau/pob/issues/2453)) ([d215189](https://github.com/christophehurpeau/pob/commit/d215189752bb3a1e60410912dcbc4e91946fa609))
|
|
11
|
+
* **deps:** update dependency prettier to v3.5.1 ([#2461](https://github.com/christophehurpeau/pob/issues/2461)) ([38daf8a](https://github.com/christophehurpeau/pob/commit/38daf8a0185d615595d6c233b4c8bb1d0645926d))
|
|
12
|
+
* fix ci for dependabot ([c335a91](https://github.com/christophehurpeau/pob/commit/c335a91eacc4164c64b79d79569a0a6f4ea1029c))
|
|
13
|
+
|
|
14
|
+
Version bump for dependency: yarn-workspace-utils
|
|
15
|
+
Version bump for dependency: @pob/root
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [26.6.0](https://github.com/christophehurpeau/pob/compare/pob@26.5.0...pob@26.6.0) (2025-02-09)
|
|
7
19
|
|
|
8
20
|
### Features
|
|
@@ -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
|
|
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
|
|
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 && github.actor != 'dependabot[bot]'
|
|
145
145
|
with:
|
|
146
146
|
fail_ci_if_error: true
|
|
147
147
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
@@ -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.7.0",
|
|
4
4
|
"description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skeleton"
|
|
@@ -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.5.
|
|
69
|
-
"prettier": "3.5.
|
|
68
|
+
"pob-dependencies": "17.5.1",
|
|
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.2.
|
|
73
|
+
"yarn-workspace-utils": "8.2.1",
|
|
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.5.0",
|
|
79
|
+
"@types/node": "22.13.4"
|
|
80
80
|
}
|
|
81
81
|
}
|