pob 16.0.0 → 16.1.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 +18 -0
- package/lib/generators/app/PobAppGenerator.js +3 -1
- package/lib/generators/common/typescript/CommonTypescriptGenerator.js +1 -1
- package/lib/generators/core/ci/CoreCIGenerator.js +4 -1
- package/lib/generators/core/ci/templates/github-action-push-workflow.yml.ejs +9 -9
- package/lib/generators/core/yarn/CoreYarnGenerator.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
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
|
+
## [16.1.0](https://github.com/christophehurpeau/pob/compare/pob@16.0.0...pob@16.1.0) (2023-12-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **deps:** update dependency eslint to v8.56.0 ([#1883](https://github.com/christophehurpeau/pob/issues/1883)) ([8c81687](https://github.com/christophehurpeau/pob/commit/8c81687ffbc7bb3b0b3bcf277c0d2db853ff637c))
|
|
12
|
+
* update to yarn 4.0.2 ([57bb760](https://github.com/christophehurpeau/pob/commit/57bb7608ed2b18d3a7e125f12590d1df787df2db))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* fix option e2eTesting false ([6411c73](https://github.com/christophehurpeau/pob/commit/6411c73e45c67ddc4bade92b19242c630fa5f972))
|
|
18
|
+
* **pob:** fix browser and jsx detection ([dfa0c81](https://github.com/christophehurpeau/pob/commit/dfa0c8133d36f0144d55c0f44f8a1d321468b26a))
|
|
19
|
+
* **pob:** use 20.x by default ([412eb85](https://github.com/christophehurpeau/pob/commit/412eb85c4670bc5744e34c5f831544a2b6bc7a90))
|
|
20
|
+
|
|
21
|
+
Version bump for dependency: yarn-workspace-utils
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [16.0.0](https://github.com/christophehurpeau/pob/compare/pob@15.4.1...pob@16.0.0) (2023-12-14)
|
|
7
25
|
|
|
8
26
|
|
|
@@ -172,7 +172,9 @@ export default class PobAppGenerator extends Generator {
|
|
|
172
172
|
babelEnvs.length > 0 || appsWithTypescript.includes(this.appConfig.type);
|
|
173
173
|
const typescript = babel || pkg.pob?.typescript;
|
|
174
174
|
const node = true;
|
|
175
|
-
const browser =
|
|
175
|
+
const browser =
|
|
176
|
+
appsWithBrowser.includes(this.appConfig.type) ||
|
|
177
|
+
(babel && babelEnvs.some((env) => env.target === 'browser'));
|
|
176
178
|
const jsx =
|
|
177
179
|
babelEnvs.length > 0 && pkg.pob.jsx !== undefined
|
|
178
180
|
? pkg.pob.jsx
|
|
@@ -119,7 +119,7 @@ export default class CommonTypescriptGenerator extends Generator {
|
|
|
119
119
|
const jsx = (withBabel || withTypescript) && pkg.pob.jsx === true;
|
|
120
120
|
|
|
121
121
|
if (withBabel) {
|
|
122
|
-
return jsx
|
|
122
|
+
return jsx || this.options.dom
|
|
123
123
|
? ['@pob/root/tsconfigs/targets/rollup-babel-with-dom.json']
|
|
124
124
|
: ['@pob/root/tsconfigs/targets/rollup-babel.json'];
|
|
125
125
|
}
|
|
@@ -151,7 +151,10 @@ export default class CoreCIGenerator extends Generator {
|
|
|
151
151
|
packageManager: this.options.packageManager,
|
|
152
152
|
disableYarnGitCache: this.options.disableYarnGitCache,
|
|
153
153
|
testing,
|
|
154
|
-
e2eTesting:
|
|
154
|
+
e2eTesting:
|
|
155
|
+
this.options.e2eTesting && this.options.e2eTesting !== 'false'
|
|
156
|
+
? this.options.e2eTesting
|
|
157
|
+
: false,
|
|
155
158
|
checks,
|
|
156
159
|
documentation: this.options.documentation,
|
|
157
160
|
build,
|
|
@@ -42,27 +42,27 @@ jobs:
|
|
|
42
42
|
<% if (build) { -%>
|
|
43
43
|
- name: Build
|
|
44
44
|
run: yarn run build
|
|
45
|
-
if: startsWith(matrix.node-version, '
|
|
45
|
+
if: startsWith(matrix.node-version, '20.')
|
|
46
46
|
|
|
47
47
|
<% } -%>
|
|
48
48
|
- name: Prettier
|
|
49
49
|
run: <%= packageManager %> run lint:prettier
|
|
50
|
-
if: startsWith(matrix.node-version, '
|
|
50
|
+
if: startsWith(matrix.node-version, '20.')
|
|
51
51
|
<% if (typescript) { -%>
|
|
52
52
|
|
|
53
53
|
- name: Typescript
|
|
54
54
|
run: yarn run tsc
|
|
55
|
-
if: startsWith(matrix.node-version, '
|
|
55
|
+
if: startsWith(matrix.node-version, '20.')
|
|
56
56
|
<% } -%>
|
|
57
57
|
|
|
58
58
|
- name: Eslint
|
|
59
59
|
run: <%= packageManager %> run lint:eslint
|
|
60
|
-
if: startsWith(matrix.node-version, '
|
|
60
|
+
if: startsWith(matrix.node-version, '20.')
|
|
61
61
|
<% if (codecov) { -%>
|
|
62
62
|
|
|
63
63
|
- name: Generate Test Coverage
|
|
64
64
|
run: <%= packageManager %> run test:coverage
|
|
65
|
-
if: startsWith(matrix.node-version, '
|
|
65
|
+
if: startsWith(matrix.node-version, '20.')
|
|
66
66
|
env:
|
|
67
67
|
CI: true
|
|
68
68
|
|
|
@@ -70,7 +70,7 @@ jobs:
|
|
|
70
70
|
uses: codecov/codecov-action@v3
|
|
71
71
|
with:
|
|
72
72
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
73
|
-
if: startsWith(matrix.node-version, '
|
|
73
|
+
if: startsWith(matrix.node-version, '20.')
|
|
74
74
|
<% } else if (testing) { -%>
|
|
75
75
|
|
|
76
76
|
- name: Test
|
|
@@ -86,13 +86,13 @@ jobs:
|
|
|
86
86
|
<% if (true) { -%>
|
|
87
87
|
|
|
88
88
|
- name: Check nothing was forgotten before commit
|
|
89
|
-
if: startsWith(matrix.node-version, '
|
|
89
|
+
if: startsWith(matrix.node-version, '20.')
|
|
90
90
|
run: <%= packageManager === 'npm' ? 'npx' : 'yarn run' %> repository-check-dirty
|
|
91
91
|
<% } -%>
|
|
92
92
|
|
|
93
93
|
<% if (isReleasePleaseEnabled) { -%>
|
|
94
94
|
- uses: GoogleCloudPlatform/release-please-action@v3
|
|
95
|
-
if: ${{ startsWith(matrix.node-version, '
|
|
95
|
+
if: ${{ startsWith(matrix.node-version, '20.') && github.ref == 'refs/heads/main' }}
|
|
96
96
|
id: release
|
|
97
97
|
with:
|
|
98
98
|
token: ${{ secrets.GH_TOKEN }}
|
|
@@ -102,7 +102,7 @@ jobs:
|
|
|
102
102
|
|
|
103
103
|
# publish:
|
|
104
104
|
- run: npm publish
|
|
105
|
-
if: ${{ startsWith(matrix.node-version, '
|
|
105
|
+
if: ${{ startsWith(matrix.node-version, '20.') && github.ref == 'refs/heads/main' && steps.release.outputs.release_created }}
|
|
106
106
|
env:
|
|
107
107
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
108
108
|
<% } -%>
|
|
@@ -131,9 +131,9 @@ export default class CoreYarnGenerator extends Generator {
|
|
|
131
131
|
if (
|
|
132
132
|
!pkg.packageManager ||
|
|
133
133
|
!pkg.packageManager.startsWith('yarn@') ||
|
|
134
|
-
lt(pkg.packageManager.slice('yarn@'.length), '4.0.
|
|
134
|
+
lt(pkg.packageManager.slice('yarn@'.length), '4.0.2')
|
|
135
135
|
) {
|
|
136
|
-
pkg.packageManager = 'yarn@4.0.
|
|
136
|
+
pkg.packageManager = 'yarn@4.0.2';
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
// must be done after plugins installed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pob",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.1.0",
|
|
4
4
|
"description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skeleton"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@yarnpkg/core": "4.0.2",
|
|
51
51
|
"@yarnpkg/fslib": "3.0.1",
|
|
52
52
|
"@yeoman/types": "1.1.2",
|
|
53
|
-
"eslint": "8.
|
|
53
|
+
"eslint": "8.56.0",
|
|
54
54
|
"findup-sync": "^5.0.0",
|
|
55
55
|
"git-remote-url": "^1.0.1",
|
|
56
56
|
"github-username": "^7.0.0",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"mem-fs-editor": "11.0.0",
|
|
63
63
|
"minimist": "1.2.8",
|
|
64
64
|
"parse-author": "2.0.0",
|
|
65
|
-
"pob-dependencies": "9.
|
|
65
|
+
"pob-dependencies": "9.1.0",
|
|
66
66
|
"prettier": "2.8.8",
|
|
67
67
|
"semver": "7.5.4",
|
|
68
68
|
"validate-npm-package-name": "^5.0.0",
|
|
69
|
-
"yarn-workspace-utils": "2.
|
|
69
|
+
"yarn-workspace-utils": "2.1.0",
|
|
70
70
|
"yeoman-environment": "4.1.3",
|
|
71
71
|
"yeoman-generator": "7.1.1"
|
|
72
72
|
},
|