pob 10.18.0 → 10.20.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 +38 -0
- package/lib/generators/common/babel/CommonBabelGenerator.js +2 -2
- package/lib/generators/common/babel/templates/app.rollup.config.mjs.ejs +3 -3
- package/lib/generators/common/babel/templates/lib.rollup.config.mjs.txt +3 -1
- package/lib/generators/common/format-lint/CommonLintGenerator.js +4 -7
- package/lib/generators/common/husky/CommonHuskyGenerator.js +2 -3
- package/lib/generators/core/ci/templates/github-action-documentation-workflow.yml.ejs +3 -0
- package/lib/generators/lib/PobLibGenerator.js +12 -12
- package/lib/generators/monorepo/lerna/templates/workflow-publish.yml.ejs +1 -0
- package/package.json +14 -18
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
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.20.0](https://github.com/christophehurpeau/pob/compare/pob@10.19.0...pob@10.20.0) (2022-10-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **deps:** update dependency eslint to v8.23.1 ([#1395](https://github.com/christophehurpeau/pob/issues/1395)) ([3a80c50](https://github.com/christophehurpeau/pob/commit/3a80c501ee492bf248304529488e71feb8154ff4))
|
|
12
|
+
* **deps:** update dependency semver to v7.3.8 ([#1417](https://github.com/christophehurpeau/pob/issues/1417)) ([b9d4913](https://github.com/christophehurpeau/pob/commit/b9d4913b70e930d02a59c5ae753688fd08954f12))
|
|
13
|
+
* **deps:** update dependency yeoman-environment to v3.11.1 ([#1405](https://github.com/christophehurpeau/pob/issues/1405)) ([bea37d3](https://github.com/christophehurpeau/pob/commit/bea37d39d2707b4eff73b1bc99b3750d35c35e23))
|
|
14
|
+
* disable husky when commiting release ([8239cea](https://github.com/christophehurpeau/pob/commit/8239cea55adf2b624fe6f957ac8511245d3d9710))
|
|
15
|
+
* typedoc ci fix cache tsc ([5954146](https://github.com/christophehurpeau/pob/commit/5954146ab24942f792ca6deb11f00da58daa1605))
|
|
16
|
+
* use fileURLToPath ([94e5c56](https://github.com/christophehurpeau/pob/commit/94e5c56d91689205a938cb9c35d4a34eb03d3893))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* better prettier config ([329d560](https://github.com/christophehurpeau/pob/commit/329d560594cade521e35a6f3237888db49f67b87))
|
|
22
|
+
* **deps:** update @pob/eslint-config to v49.4.0 ([#1390](https://github.com/christophehurpeau/pob/issues/1390)) ([a7db8f0](https://github.com/christophehurpeau/pob/commit/a7db8f09a0bee265458ce0f0fa2518fd46adcfbb))
|
|
23
|
+
* **deps:** update dependency eslint to v8.24.0 ([#1403](https://github.com/christophehurpeau/pob/issues/1403)) ([1c0d9e4](https://github.com/christophehurpeau/pob/commit/1c0d9e495292610235b9c6fbcb726f5e4cea586f))
|
|
24
|
+
* **deps:** update dependency yeoman-environment to v3.11.0 ([#1404](https://github.com/christophehurpeau/pob/issues/1404)) ([4f78cd4](https://github.com/christophehurpeau/pob/commit/4f78cd4f829aa88252e7f7617e5bfcf866c4842b))
|
|
25
|
+
* **deps:** update dependency yeoman-environment to v3.12.0 ([#1416](https://github.com/christophehurpeau/pob/issues/1416)) ([8256499](https://github.com/christophehurpeau/pob/commit/8256499ce99b7e6b2cb954a12580c6718cef9d10))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# [10.19.0](https://github.com/christophehurpeau/pob/compare/pob@10.18.0...pob@10.19.0) (2022-09-04)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* add pob-babel-clean-out for better windows support ([1503de8](https://github.com/christophehurpeau/pob/commit/1503de8d31c7f6a288013860ba87ce047fa85456))
|
|
37
|
+
* **deps:** update dependency eslint to v8.22.0 ([#1367](https://github.com/christophehurpeau/pob/issues/1367)) ([3b540b5](https://github.com/christophehurpeau/pob/commit/3b540b56c5db66d510c6015bbff36fa2ac230357))
|
|
38
|
+
* **deps:** update dependency eslint to v8.23.0 ([#1379](https://github.com/christophehurpeau/pob/issues/1379)) ([839ad12](https://github.com/christophehurpeau/pob/commit/839ad12628057e03af53b0b787768574f781ecc2))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
# [10.18.0](https://github.com/christophehurpeau/pob/compare/pob@10.17.0...pob@10.18.0) (2022-08-12)
|
|
7
45
|
|
|
8
46
|
|
|
@@ -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',
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<% if (config) { -%>
|
|
2
2
|
import config from 'alp-rollup-plugin-config';
|
|
3
3
|
<% } -%>
|
|
4
|
+
import { dirname } from 'path';
|
|
5
|
+
import { fileURLToPath } from 'url';
|
|
4
6
|
import createRollupConfig from 'pob-babel/createRollupConfig.js';
|
|
5
7
|
import run from 'pob-babel/plugin-run.cjs';
|
|
6
8
|
|
|
7
9
|
const watch = process.env.ROLLUP_WATCH === 'true';
|
|
8
10
|
|
|
9
11
|
export default createRollupConfig({
|
|
10
|
-
cwd:
|
|
11
|
-
process.platform === 'win32' ? 1 : 0,
|
|
12
|
-
),
|
|
12
|
+
cwd: dirname(fileURLToPath(import.meta.url)),
|
|
13
13
|
outDirectory: 'build',
|
|
14
14
|
plugins: [
|
|
15
15
|
<% if (config) { -%>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { dirname } from 'path';
|
|
2
|
+
import { fileURLToPath } from 'url';
|
|
1
3
|
import createRollupConfig from 'pob-babel/createRollupConfig.js';
|
|
2
4
|
|
|
3
5
|
export default createRollupConfig({
|
|
4
|
-
cwd:
|
|
6
|
+
cwd: dirname(fileURLToPath(import.meta.url)),
|
|
5
7
|
});
|
|
@@ -125,12 +125,7 @@ export default class CommonLintGenerator extends Generator {
|
|
|
125
125
|
|
|
126
126
|
delete pkg.standard;
|
|
127
127
|
|
|
128
|
-
pkg.prettier =
|
|
129
|
-
trailingComma: 'all',
|
|
130
|
-
singleQuote: true,
|
|
131
|
-
// https://github.com/airbnb/javascript/pull/1863
|
|
132
|
-
arrowParens: 'always',
|
|
133
|
-
};
|
|
128
|
+
pkg.prettier = '@pob/root/prettier-config';
|
|
134
129
|
|
|
135
130
|
if (!inLerna || inLerna.root || this.options.monorepo) {
|
|
136
131
|
const rootIgnorePatterns = new Set(
|
|
@@ -518,7 +513,9 @@ export default class CommonLintGenerator extends Generator {
|
|
|
518
513
|
|
|
519
514
|
packageUtils.addScripts(pkg, {
|
|
520
515
|
'lint:eslint': globalEslint
|
|
521
|
-
? `cd ../.. && yarn run eslint ${args} ${path
|
|
516
|
+
? `cd ../.. && yarn run eslint ${args} ${path
|
|
517
|
+
.relative('../..', '.')
|
|
518
|
+
.replace('\\', '/')}`
|
|
522
519
|
: `eslint ${args} ${lintPaths.join(' ')}`,
|
|
523
520
|
lint: `${useBabel && !composite ? 'tsc && ' : ''}yarn run lint:eslint`,
|
|
524
521
|
});
|
|
@@ -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
|
|
|
@@ -44,6 +44,7 @@ jobs:
|
|
|
44
44
|
run: |
|
|
45
45
|
yarn lerna version --yes --push --exact --conventional-commits --conventional-graduate --create-release=github -m 'chore: release [skip ci]'
|
|
46
46
|
env:
|
|
47
|
+
HUSKY: 0
|
|
47
48
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
48
49
|
YARN_ENABLE_IMMUTABLE_INSTALLS: false
|
|
49
50
|
<% if (publish) { -%>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pob",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.20.0",
|
|
4
4
|
"description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skeleton"
|
|
@@ -32,22 +32,18 @@
|
|
|
32
32
|
"lint": "yarn run lint:eslint",
|
|
33
33
|
"lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/pob"
|
|
34
34
|
},
|
|
35
|
-
"prettier":
|
|
36
|
-
"trailingComma": "all",
|
|
37
|
-
"singleQuote": true,
|
|
38
|
-
"arrowParens": "always"
|
|
39
|
-
},
|
|
35
|
+
"prettier": "@pob/root/prettier-config",
|
|
40
36
|
"pob": {},
|
|
41
37
|
"dependencies": {
|
|
42
38
|
"@lerna/package-graph": "^5.0.0",
|
|
43
39
|
"@lerna/project": "^5.0.0",
|
|
44
|
-
"@pob/eslint-config": "49.
|
|
45
|
-
"@pob/eslint-config-typescript": "49.
|
|
46
|
-
"@pob/eslint-config-typescript-react": "49.
|
|
47
|
-
"@pob/sort-eslint-config": "
|
|
48
|
-
"@pob/sort-object": "
|
|
49
|
-
"@pob/sort-pkg": "
|
|
50
|
-
"eslint": "8.
|
|
40
|
+
"@pob/eslint-config": "49.4.0",
|
|
41
|
+
"@pob/eslint-config-typescript": "49.4.0",
|
|
42
|
+
"@pob/eslint-config-typescript-react": "49.4.0",
|
|
43
|
+
"@pob/sort-eslint-config": "3.1.0",
|
|
44
|
+
"@pob/sort-object": "4.1.0",
|
|
45
|
+
"@pob/sort-pkg": "4.1.0",
|
|
46
|
+
"eslint": "8.24.0",
|
|
51
47
|
"findup-sync": "^5.0.0",
|
|
52
48
|
"git-remote-url": "^1.0.1",
|
|
53
49
|
"github-username": "^6.0.0",
|
|
@@ -61,14 +57,14 @@
|
|
|
61
57
|
"mem-fs-editor": "9.5.0",
|
|
62
58
|
"minimist": "1.2.6",
|
|
63
59
|
"parse-author": "2.0.0",
|
|
64
|
-
"pob-dependencies": "6.
|
|
60
|
+
"pob-dependencies": "6.32.0",
|
|
65
61
|
"prettier": "2.7.1",
|
|
66
|
-
"semver": "7.3.
|
|
67
|
-
"yeoman-environment": "3.
|
|
62
|
+
"semver": "7.3.8",
|
|
63
|
+
"yeoman-environment": "3.12.0",
|
|
68
64
|
"yeoman-generator": "5.7.0"
|
|
69
65
|
},
|
|
70
66
|
"devDependencies": {
|
|
71
|
-
"@pob/root": "6.
|
|
67
|
+
"@pob/root": "6.23.0"
|
|
72
68
|
},
|
|
73
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "eeba016a9877a33eac8fde9ef79c49957308c394"
|
|
74
70
|
}
|