pob 8.8.0 → 8.10.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 +53 -0
- package/lib/generators/common/format-lint/CommonLintGenerator.js +5 -2
- package/lib/generators/common/old-dependencies/CommonRemoveOldDependenciesGenerator.js +1 -0
- package/lib/generators/core/package/CorePackageGenerator.js +4 -5
- package/lib/generators/lib/doc/templates/tsconfig.doc.json.lerna.ejs +1 -0
- package/lib/generators/monorepo/lerna/MonorepoLernaGenerator.js +13 -8
- package/lib/utils/package.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,59 @@
|
|
|
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
|
+
# [8.10.0](https://github.com/christophehurpeau/pob/compare/pob@8.9.0...pob@8.10.0) (2021-11-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **pob:** also remove react eslint plugins ([77dc9c5](https://github.com/christophehurpeau/pob/commit/77dc9c564bf8d2622956f23973b5258fa97aed2d))
|
|
12
|
+
* **pob:** monorepo typedoc enable tsc skipLibCheck ([87b8e88](https://github.com/christophehurpeau/pob/commit/87b8e88656308cea49994335f1aafcb3eb49121a))
|
|
13
|
+
* **pob:** node options when lots of packages ([4829f93](https://github.com/christophehurpeau/pob/commit/4829f9386504c5de4ccc488544c10cf194b0f0f0))
|
|
14
|
+
* **pob:** remove deprecated dependency xunit-file ([62d4602](https://github.com/christophehurpeau/pob/commit/62d460276709d6a5630ba3759984910d36a506cc))
|
|
15
|
+
* postinstall script for non lerna private packages ([8a3f3a4](https://github.com/christophehurpeau/pob/commit/8a3f3a4143f2595391503d51c31dd9b8157ccc97))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **deps:** update dependency prettier to v2.5.0 ([#1114](https://github.com/christophehurpeau/pob/issues/1114)) ([50d4b98](https://github.com/christophehurpeau/pob/commit/50d4b98f8ec76ee8a44e3f01eea882089b1a89e5))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# [8.9.0](https://github.com/christophehurpeau/pob/compare/pob@8.8.2...pob@8.9.0) (2021-11-16)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* **pob:** fixes for @pob/eslint-config ([e84152c](https://github.com/christophehurpeau/pob/commit/e84152c8e2b2c8421d51c9883426646afad49134))
|
|
32
|
+
* **pob:** startsWith of undefined ([b0ebc73](https://github.com/christophehurpeau/pob/commit/b0ebc73bb74f4a2c98221b917ec8e159fd5a7c22))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
|
|
37
|
+
* **deps:** update @pob/eslint-config to v47 (major) ([#1101](https://github.com/christophehurpeau/pob/issues/1101)) ([e726bf5](https://github.com/christophehurpeau/pob/commit/e726bf5a5baa8631933a5f69dbd3c48f9bf25ca5))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## [8.8.2](https://github.com/christophehurpeau/pob/compare/pob@8.8.1...pob@8.8.2) (2021-11-14)
|
|
44
|
+
|
|
45
|
+
**Note:** Version bump only for package pob
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## [8.8.1](https://github.com/christophehurpeau/pob/compare/pob@8.8.0...pob@8.8.1) (2021-11-14)
|
|
52
|
+
|
|
53
|
+
**Note:** Version bump only for package pob
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
6
59
|
# [8.8.0](https://github.com/christophehurpeau/pob/compare/pob@8.7.1...pob@8.8.0) (2021-11-14)
|
|
7
60
|
|
|
8
61
|
|
|
@@ -155,14 +155,16 @@ export default class CommonLintGenerator extends Generator {
|
|
|
155
155
|
'eslint-plugin-babel',
|
|
156
156
|
'eslint-plugin-flowtype',
|
|
157
157
|
'eslint-plugin-prefer-class-properties',
|
|
158
|
-
'eslint-plugin-jsx-a11y',
|
|
159
158
|
'eslint-plugin-prettier',
|
|
159
|
+
'eslint-plugin-react',
|
|
160
|
+
'eslint-plugin-react-hooks',
|
|
160
161
|
'typescript-eslint-parser',
|
|
161
162
|
'standard',
|
|
162
163
|
]);
|
|
163
164
|
|
|
164
165
|
if (!pkg.name.startsWith('@pob/eslint-config')) {
|
|
165
166
|
packageUtils.removeDevDependencies(pkg, [
|
|
167
|
+
'eslint-plugin-jsx-a11y',
|
|
166
168
|
'eslint-config-airbnb',
|
|
167
169
|
'eslint-config-airbnb-base',
|
|
168
170
|
]);
|
|
@@ -211,7 +213,8 @@ export default class CommonLintGenerator extends Generator {
|
|
|
211
213
|
!globalEslint ||
|
|
212
214
|
(inLerna && inLerna.root) ||
|
|
213
215
|
lernaProjectType === 'app' ||
|
|
214
|
-
rootPackageManager === 'yarn'
|
|
216
|
+
rootPackageManager === 'yarn' ||
|
|
217
|
+
!!(pkg.peerDependencies && pkg.peerDependencies.eslint),
|
|
215
218
|
['eslint'],
|
|
216
219
|
);
|
|
217
220
|
const shouldHavePluginsDependencies =
|
|
@@ -220,9 +220,9 @@ export default class CorePackageGenerator extends Generator {
|
|
|
220
220
|
if (pkg.scripts[scriptName]) {
|
|
221
221
|
if (pkg.scripts[scriptName] === 'pob-root-postinstall') {
|
|
222
222
|
delete pkg.scripts[scriptName];
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
} else if (
|
|
224
|
+
pkg.scripts[scriptName].startsWith('pob-root-postinstall && ')
|
|
225
|
+
) {
|
|
226
226
|
pkg.scripts[scriptName] = pkg.scripts[scriptName].slice(
|
|
227
227
|
'pob-root-postinstall && '.length - 1,
|
|
228
228
|
);
|
|
@@ -231,10 +231,9 @@ export default class CorePackageGenerator extends Generator {
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
|
-
|
|
235
234
|
if (inLerna || pkg.private) {
|
|
236
235
|
uninstallPostinstallScript('postinstallDev');
|
|
237
|
-
if (inLerna
|
|
236
|
+
if (!inLerna || inLerna.root) {
|
|
238
237
|
installPostinstallScript('postinstall');
|
|
239
238
|
} else {
|
|
240
239
|
uninstallPostinstallScript('postinstall');
|
|
@@ -93,7 +93,7 @@ export default class MonorepoLernaGenerator extends Generator {
|
|
|
93
93
|
|
|
94
94
|
const getPackagePobConfig = (config) => ({
|
|
95
95
|
babelEnvs: [],
|
|
96
|
-
...(
|
|
96
|
+
...(config && config.pob),
|
|
97
97
|
});
|
|
98
98
|
const withBabel = this.packages.some(
|
|
99
99
|
(config) => getPackagePobConfig(config).babelEnvs.length > 0,
|
|
@@ -153,10 +153,9 @@ export default class MonorepoLernaGenerator extends Generator {
|
|
|
153
153
|
packageUtils.removeDevDependencies(pkg, ['standard-version']);
|
|
154
154
|
|
|
155
155
|
const getPobConfig = (config) => ({
|
|
156
|
-
...(
|
|
156
|
+
...(config &&
|
|
157
157
|
config.pob &&
|
|
158
|
-
(config.pob['pob-config'] || config.pob.lib || config.pob.app))
|
|
159
|
-
{}),
|
|
158
|
+
(config.pob['pob-config'] || config.pob.lib || config.pob.app)),
|
|
160
159
|
});
|
|
161
160
|
// ynnub doesnt use babel but still have typescript
|
|
162
161
|
// const withTypescript = this.packagePaths.some((packagePath) =>
|
|
@@ -177,12 +176,18 @@ export default class MonorepoLernaGenerator extends Generator {
|
|
|
177
176
|
'lint:eslint':
|
|
178
177
|
monorepoConfig &&
|
|
179
178
|
monorepoConfig.eslint &&
|
|
180
|
-
this.packagesConfig.length <
|
|
181
|
-
?
|
|
179
|
+
this.packagesConfig.length < 50
|
|
180
|
+
? `${
|
|
181
|
+
this.packagesConfig.length > 20
|
|
182
|
+
? 'NODE_OPTIONS=--max_old_space_size=4096 '
|
|
183
|
+
: ''
|
|
184
|
+
}eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet .`
|
|
182
185
|
: // eslint-disable-next-line unicorn/no-nested-ternary
|
|
183
186
|
this.options.packageManager === 'yarn'
|
|
184
|
-
?
|
|
185
|
-
|
|
187
|
+
? `NODE_OPTIONS=--max_old_space_size=4096 eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet . --ignore-pattern ${pkg.workspaces.join(
|
|
188
|
+
',',
|
|
189
|
+
)} && yarn workspaces foreach --parallel -Av run lint:eslint`
|
|
190
|
+
: 'lerna run --stream lint:eslint',
|
|
186
191
|
});
|
|
187
192
|
|
|
188
193
|
this.fs.copyTpl(
|
package/lib/utils/package.js
CHANGED
|
@@ -4,7 +4,7 @@ import parseAuthor from 'parse-author';
|
|
|
4
4
|
import pobDependencies from 'pob-dependencies';
|
|
5
5
|
import semver from 'semver';
|
|
6
6
|
|
|
7
|
-
export { parseAuthor };
|
|
7
|
+
export { default as parseAuthor } from 'parse-author';
|
|
8
8
|
|
|
9
9
|
export const parsePkgAuthor = (pkg) =>
|
|
10
10
|
typeof pkg.author === 'string' ? parseAuthor(pkg.author) : pkg.author;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pob",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.10.0",
|
|
4
4
|
"description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skeleton"
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
"mem-fs-editor": "8.1.2",
|
|
64
64
|
"minimist-argv": "^1.1.0",
|
|
65
65
|
"parse-author": "^2.0.0",
|
|
66
|
-
"pob-dependencies": "^5.
|
|
67
|
-
"prettier": "2.
|
|
66
|
+
"pob-dependencies": "^5.11.0",
|
|
67
|
+
"prettier": "2.5.0",
|
|
68
68
|
"semver": "^7.3.4",
|
|
69
69
|
"update-notifier": "^5.0.1",
|
|
70
70
|
"yeoman-environment": "^3.5.1",
|
|
71
71
|
"yeoman-generator": "^5.4.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "0e6a3cfc36ebda0daa441a33b96288fbb08d8c21"
|
|
74
74
|
}
|