pob 10.18.0 → 10.19.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 +13 -0
- package/lib/generators/common/babel/CommonBabelGenerator.js +2 -2
- package/lib/generators/common/babel/templates/lib.rollup.config.mjs.txt +3 -1
- package/lib/generators/common/format-lint/CommonLintGenerator.js +3 -1
- package/lib/generators/common/husky/CommonHuskyGenerator.js +2 -3
- package/lib/generators/lib/PobLibGenerator.js +12 -12
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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
|
+
# [10.19.0](https://github.com/christophehurpeau/pob/compare/pob@10.18.0...pob@10.19.0) (2022-09-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add pob-babel-clean-out for better windows support ([1503de8](https://github.com/christophehurpeau/pob/commit/1503de8d31c7f6a288013860ba87ce047fa85456))
|
|
12
|
+
* **deps:** update dependency eslint to v8.22.0 ([#1367](https://github.com/christophehurpeau/pob/issues/1367)) ([3b540b5](https://github.com/christophehurpeau/pob/commit/3b540b56c5db66d510c6015bbff36fa2ac230357))
|
|
13
|
+
* **deps:** update dependency eslint to v8.23.0 ([#1379](https://github.com/christophehurpeau/pob/issues/1379)) ([839ad12](https://github.com/christophehurpeau/pob/commit/839ad12628057e03af53b0b787768574f781ecc2))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
# [10.18.0](https://github.com/christophehurpeau/pob/compare/pob@10.17.0...pob@10.18.0) (2022-08-12)
|
|
7
20
|
|
|
8
21
|
|
|
@@ -284,7 +284,7 @@ export default class CommonBabelGenerator extends Generator {
|
|
|
284
284
|
if (this.options.isApp) {
|
|
285
285
|
packageUtils.removeScripts(['watch']);
|
|
286
286
|
packageUtils.addOrRemoveScripts(pkg, useBabel, {
|
|
287
|
-
'clean:build': `
|
|
287
|
+
'clean:build': `pob-babel-clean-out ${this.options.buildDirectory}`,
|
|
288
288
|
build: 'yarn clean:build && rollup --config rollup.config.mjs',
|
|
289
289
|
start: 'yarn clean:build && rollup --config rollup.config.mjs --watch',
|
|
290
290
|
clean: 'yarn clean:build',
|
|
@@ -292,7 +292,7 @@ export default class CommonBabelGenerator extends Generator {
|
|
|
292
292
|
} else {
|
|
293
293
|
packageUtils.removeScripts(['start']);
|
|
294
294
|
packageUtils.addOrRemoveScripts(pkg, useBabel, {
|
|
295
|
-
'clean:build': `
|
|
295
|
+
'clean:build': `pob-babel-clean-out ${this.options.buildDirectory}`,
|
|
296
296
|
build: 'yarn clean:build && rollup --config rollup.config.mjs',
|
|
297
297
|
watch: 'yarn clean:build && rollup --config rollup.config.mjs --watch',
|
|
298
298
|
clean: 'yarn clean:build',
|
|
@@ -518,7 +518,9 @@ export default class CommonLintGenerator extends Generator {
|
|
|
518
518
|
|
|
519
519
|
packageUtils.addScripts(pkg, {
|
|
520
520
|
'lint:eslint': globalEslint
|
|
521
|
-
? `cd ../.. && yarn run eslint ${args} ${path
|
|
521
|
+
? `cd ../.. && yarn run eslint ${args} ${path
|
|
522
|
+
.relative('../..', '.')
|
|
523
|
+
.replace('\\', '/')}`
|
|
522
524
|
: `eslint ${args} ${lintPaths.join(' ')}`,
|
|
523
525
|
lint: `${useBabel && !composite ? 'tsc && ' : ''}yarn run lint:eslint`,
|
|
524
526
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { readlinkSync } from 'fs';
|
|
1
|
+
import { readlinkSync, rmSync } from 'fs';
|
|
3
2
|
import Generator from 'yeoman-generator';
|
|
4
3
|
import inLerna from '../../../utils/inLerna.js';
|
|
5
4
|
import * as packageUtils from '../../../utils/package.js';
|
|
@@ -17,7 +16,7 @@ export default class CommonHuskyGenerator extends Generator {
|
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
writing() {
|
|
20
|
-
|
|
19
|
+
rmSync('git-hooks', { recursive: true, force: true });
|
|
21
20
|
|
|
22
21
|
const gitHookDestination = this.destinationPath('.git/hooks/pre-commit');
|
|
23
22
|
let isSymlink;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import fs from 'fs';
|
|
1
|
+
import fs, { rmSync } from 'fs';
|
|
3
2
|
import Generator from 'yeoman-generator';
|
|
4
3
|
import inLerna from '../../utils/inLerna.js';
|
|
5
4
|
import * as packageUtils from '../../utils/package.js';
|
|
@@ -351,16 +350,17 @@ export default class PobLibGenerator extends Generator {
|
|
|
351
350
|
}
|
|
352
351
|
|
|
353
352
|
this.fs.writeJSON(this.destinationPath('package.json'), pkg);
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
353
|
+
[
|
|
354
|
+
'lib-node14',
|
|
355
|
+
'lib-node16',
|
|
356
|
+
'coverage',
|
|
357
|
+
this.pobjson.documentation && 'docs',
|
|
358
|
+
!withBabel && 'dist',
|
|
359
|
+
]
|
|
360
|
+
.filter(Boolean)
|
|
361
|
+
.forEach((path) => {
|
|
362
|
+
rmSync(path, { recursive: true, force: true });
|
|
363
|
+
});
|
|
364
364
|
|
|
365
365
|
const { pobjson } = this;
|
|
366
366
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pob",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.19.0",
|
|
4
4
|
"description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skeleton"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@pob/sort-eslint-config": "^3.0.1",
|
|
48
48
|
"@pob/sort-object": "^4.0.1",
|
|
49
49
|
"@pob/sort-pkg": "^4.0.1",
|
|
50
|
-
"eslint": "8.
|
|
50
|
+
"eslint": "8.23.0",
|
|
51
51
|
"findup-sync": "^5.0.0",
|
|
52
52
|
"git-remote-url": "^1.0.1",
|
|
53
53
|
"github-username": "^6.0.0",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"mem-fs-editor": "9.5.0",
|
|
62
62
|
"minimist": "1.2.6",
|
|
63
63
|
"parse-author": "2.0.0",
|
|
64
|
-
"pob-dependencies": "6.
|
|
64
|
+
"pob-dependencies": "6.31.0",
|
|
65
65
|
"prettier": "2.7.1",
|
|
66
66
|
"semver": "7.3.7",
|
|
67
67
|
"yeoman-environment": "3.10.0",
|
|
68
68
|
"yeoman-generator": "5.7.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@pob/root": "6.
|
|
71
|
+
"@pob/root": "6.22.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "40e2ebfeccd06b9124056bca8bf8f94fefa2fdd1"
|
|
74
74
|
}
|