pob 16.0.0 → 17.0.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 CHANGED
@@ -3,6 +3,38 @@
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
+ ## [17.0.0](https://github.com/christophehurpeau/pob/compare/pob@16.1.0...pob@17.0.0) (2023-12-25)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * drop browser modern version
12
+
13
+ ### Features
14
+
15
+ * drop browser modern version ([99ee1d3](https://github.com/christophehurpeau/pob/commit/99ee1d392fa035773a559c6a81515b1731f70e29))
16
+
17
+ Version bump for dependency: yarn-workspace-utils
18
+
19
+
20
+ ## [16.1.0](https://github.com/christophehurpeau/pob/compare/pob@16.0.0...pob@16.1.0) (2023-12-25)
21
+
22
+
23
+ ### Features
24
+
25
+ * **deps:** update dependency eslint to v8.56.0 ([#1883](https://github.com/christophehurpeau/pob/issues/1883)) ([8c81687](https://github.com/christophehurpeau/pob/commit/8c81687ffbc7bb3b0b3bcf277c0d2db853ff637c))
26
+ * update to yarn 4.0.2 ([57bb760](https://github.com/christophehurpeau/pob/commit/57bb7608ed2b18d3a7e125f12590d1df787df2db))
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * fix option e2eTesting false ([6411c73](https://github.com/christophehurpeau/pob/commit/6411c73e45c67ddc4bade92b19242c630fa5f972))
32
+ * **pob:** fix browser and jsx detection ([dfa0c81](https://github.com/christophehurpeau/pob/commit/dfa0c8133d36f0144d55c0f44f8a1d321468b26a))
33
+ * **pob:** use 20.x by default ([412eb85](https://github.com/christophehurpeau/pob/commit/412eb85c4670bc5744e34c5f831544a2b6bc7a90))
34
+
35
+ Version bump for dependency: yarn-workspace-utils
36
+
37
+
6
38
  ## [16.0.0](https://github.com/christophehurpeau/pob/compare/pob@15.4.1...pob@16.0.0) (2023-12-14)
7
39
 
8
40
 
@@ -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 = appsWithBrowser.includes(this.appConfig.type);
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
@@ -178,24 +178,24 @@ export default class CommonBabelGenerator extends Generator {
178
178
  ],
179
179
  },
180
180
 
181
- {
182
- type: 'checkbox',
183
- name: 'browserVersions',
184
- message: 'Babel browser versions',
185
- when: ({ targets = [] }) => targets.includes('browser'),
186
- validate: (versions) => versions.length > 0,
187
- default: browserVersions,
188
- choices: [
189
- {
190
- name: 'Modern',
191
- value: 'modern',
192
- },
193
- {
194
- name: 'Supported',
195
- value: 'supported',
196
- },
197
- ],
198
- },
181
+ // {
182
+ // type: 'checkbox',
183
+ // name: 'browserVersions',
184
+ // message: 'Babel browser versions',
185
+ // when: ({ targets = [] }) => targets.includes('browser'),
186
+ // validate: (versions) => versions.length > 0,
187
+ // default: browserVersions,
188
+ // choices: [
189
+ // {
190
+ // name: 'Modern',
191
+ // value: 'modern',
192
+ // },
193
+ // {
194
+ // name: 'Supported',
195
+ // value: 'supported',
196
+ // },
197
+ // ],
198
+ // },
199
199
 
200
200
  {
201
201
  type: 'confirm',
@@ -207,6 +207,10 @@ export default class CommonBabelGenerator extends Generator {
207
207
  ]);
208
208
  }
209
209
 
210
+ if (babelConfig.targets.includes('browser')) {
211
+ babelConfig.browserVersions = ['supported'];
212
+ }
213
+
210
214
  if (hasInitialPkgPob && pkg.main && !pkg.exports) {
211
215
  const result = await this.prompt({
212
216
  type: 'confirm',
@@ -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: this.options.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, '18.')
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, '18.')
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, '18.')
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, '18.')
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, '18.')
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, '18.')
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, '18.')
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, '18.') && github.ref == 'refs/heads/main' }}
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, '18.') && github.ref == 'refs/heads/main' && steps.release.outputs.release_created }}
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.1')
134
+ lt(pkg.packageManager.slice('yarn@'.length), '4.0.2')
135
135
  ) {
136
- pkg.packageManager = 'yarn@4.0.1';
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.0.0",
3
+ "version": "17.0.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.55.0",
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.0.0",
65
+ "pob-dependencies": "10.0.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.0.0",
69
+ "yarn-workspace-utils": "3.0.0",
70
70
  "yeoman-environment": "4.1.3",
71
71
  "yeoman-generator": "7.1.1"
72
72
  },