pob 10.14.0 → 10.17.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 +60 -0
- package/lib/generators/common/babel/templates/app.rollup.config.mjs.ejs +3 -1
- package/lib/generators/common/release/CommonReleaseGenerator.js +0 -1
- package/lib/generators/common/typescript/templates/tsconfig.build.json.ejs +2 -1
- package/lib/generators/core/ci/templates/github-action-node-workflow.yml.ejs +1 -0
- package/lib/generators/core/npm/templates/npmignore.ejs +7 -0
- package/lib/generators/core/package/templates/check-packages.js.ejs +5 -3
- package/lib/generators/lib/readme/LibReadmeGenerator.js +4 -0
- package/lib/generators/lib/readme/templates/README.md.ejs +6 -0
- package/lib/generators/monorepo/lerna/MonorepoLernaGenerator.js +1 -1
- package/lib/utils/package.js +7 -0
- package/lib/utils/packagejson.cjs +3 -0
- package/package.json +15 -12
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,66 @@
|
|
|
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.17.0](https://github.com/christophehurpeau/pob/compare/pob@10.16.0...pob@10.17.0) (2022-08-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **deps:** update dependency prettier to v2.7.1 ([#1322](https://github.com/christophehurpeau/pob/issues/1322)) ([ba6b521](https://github.com/christophehurpeau/pob/commit/ba6b521ccada49f36eb013a02f5eea13613ed593))
|
|
12
|
+
* move pob/root in devdep of pob to avoid dep cycle ([ce9152a](https://github.com/christophehurpeau/pob/commit/ce9152a83106b330a090f1a4d1bce570ec47c90d))
|
|
13
|
+
* **pob:** better support windows in rollup config ([b8a266b](https://github.com/christophehurpeau/pob/commit/b8a266b0a0b5515fda1bce6be8ddf9158c66a408))
|
|
14
|
+
* update check-package-dependencies ([79a6e7f](https://github.com/christophehurpeau/pob/commit/79a6e7f32240efbaff7e3f3eb831f5d1a0fd8174))
|
|
15
|
+
* update check-packages template ([9e498db](https://github.com/christophehurpeau/pob/commit/9e498db17ffc0078f5a0e04c28a14ff5831bf8a9))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* configure newLine in tsconfig.build.json for windows compat ([e5f9710](https://github.com/christophehurpeau/pob/commit/e5f97101e19c6184cc9a3c95ee8bf565df2900ac))
|
|
21
|
+
* **deps:** update @pob/eslint-config ([#1341](https://github.com/christophehurpeau/pob/issues/1341)) ([55dc6ea](https://github.com/christophehurpeau/pob/commit/55dc6ea6425c3baa977b6c4224ad71f7b5e69ba4))
|
|
22
|
+
* **deps:** update dependency eslint to v8.17.0 ([#1311](https://github.com/christophehurpeau/pob/issues/1311)) ([b050c31](https://github.com/christophehurpeau/pob/commit/b050c318ee4a7518e60cde4d07f6ceb9738e5123))
|
|
23
|
+
* **deps:** update dependency eslint to v8.18.0 ([#1324](https://github.com/christophehurpeau/pob/issues/1324)) ([eed6d70](https://github.com/christophehurpeau/pob/commit/eed6d700a7ef5861a99d568b00216a1d2fea4bf7))
|
|
24
|
+
* **deps:** update dependency eslint to v8.19.0 ([#1336](https://github.com/christophehurpeau/pob/issues/1336)) ([47fe9d6](https://github.com/christophehurpeau/pob/commit/47fe9d6180fb27dd6d1acb00dc412f8b6f7e19b4))
|
|
25
|
+
* **deps:** update dependency eslint to v8.20.0 ([#1349](https://github.com/christophehurpeau/pob/issues/1349)) ([de37cf8](https://github.com/christophehurpeau/pob/commit/de37cf8d7cc90ffcee040e4dac872bade940497b))
|
|
26
|
+
* **deps:** update dependency eslint to v8.21.0 ([#1361](https://github.com/christophehurpeau/pob/issues/1361)) ([04ff2df](https://github.com/christophehurpeau/pob/commit/04ff2dfb7074a31de75015bf22ffd3d0983b9f39))
|
|
27
|
+
* **deps:** update dependency prettier to v2.7.0 ([#1318](https://github.com/christophehurpeau/pob/issues/1318)) ([ee2d9f3](https://github.com/christophehurpeau/pob/commit/ee2d9f313d0be390dd68e83112998960f7517792))
|
|
28
|
+
* **deps:** update yeoman group ([#1358](https://github.com/christophehurpeau/pob/issues/1358)) ([fdc8bfb](https://github.com/christophehurpeau/pob/commit/fdc8bfb88c84312bf9597003f30cbd528359551e))
|
|
29
|
+
* **pob:** add missing stuff in npmignore ([1748198](https://github.com/christophehurpeau/pob/commit/1748198e70ebae2f9825ad5a4e02ade7e1973eb8))
|
|
30
|
+
* remove lerna-light in pob-monorepo-test-repository ([7e5c34c](https://github.com/christophehurpeau/pob/commit/7e5c34c3c865b70c4c9330d2f466231c80a329ac))
|
|
31
|
+
* remove standard-version ([9ced070](https://github.com/christophehurpeau/pob/commit/9ced070767e6b9ab04f61cd80496a76b6de1d594))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# [10.16.0](https://github.com/christophehurpeau/pob/compare/pob@10.15.0...pob@10.16.0) (2022-05-31)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
* **deps:** update dependency eslint to v8.15.0 ([#1277](https://github.com/christophehurpeau/pob/issues/1277)) ([245b369](https://github.com/christophehurpeau/pob/commit/245b36992ca45f7f10ebcdb039badafc2740a6fe))
|
|
43
|
+
* **deps:** update dependency eslint to v8.16.0 ([#1290](https://github.com/christophehurpeau/pob/issues/1290)) ([e62d102](https://github.com/christophehurpeau/pob/commit/e62d102178e494d2009d225a365f4e62c692da4c))
|
|
44
|
+
* **deps:** update lerna monorepo to v5 (major) ([#1292](https://github.com/christophehurpeau/pob/issues/1292)) ([049f8c9](https://github.com/christophehurpeau/pob/commit/049f8c936d6b621077f7da932cf6b271bf93026b))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
# [10.15.0](https://github.com/christophehurpeau/pob/compare/pob@10.14.0...pob@10.15.0) (2022-04-30)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Bug Fixes
|
|
54
|
+
|
|
55
|
+
* **pob:** fix ejs workflow for npm publish ([42ddb67](https://github.com/christophehurpeau/pob/commit/42ddb6791e97cfa06d9b6651c165fa717bfac9b2))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Features
|
|
59
|
+
|
|
60
|
+
* **pob:** improve readme with more badges ([b766c11](https://github.com/christophehurpeau/pob/commit/b766c11709bb0349beb1492b8f1860b65d87e73f))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
6
66
|
# [10.14.0](https://github.com/christophehurpeau/pob/compare/pob@10.13.1...pob@10.14.0) (2022-04-30)
|
|
7
67
|
|
|
8
68
|
|
|
@@ -7,7 +7,9 @@ import run from 'pob-babel/plugin-run.cjs';
|
|
|
7
7
|
const watch = process.env.ROLLUP_WATCH === 'true';
|
|
8
8
|
|
|
9
9
|
export default createRollupConfig({
|
|
10
|
-
cwd: new URL('.', import.meta.url).pathname
|
|
10
|
+
cwd: new URL('.', import.meta.url).pathname.slice(
|
|
11
|
+
process.platform === 'win32' ? 1 : 0,
|
|
12
|
+
),
|
|
11
13
|
outDirectory: 'build',
|
|
12
14
|
plugins: [
|
|
13
15
|
<% if (config) { -%>
|
|
@@ -45,7 +45,6 @@ export default class CommonReleaseGenerator extends Generator {
|
|
|
45
45
|
pkg.name === 'pob-dependencies' ? null : 'preversion',
|
|
46
46
|
]);
|
|
47
47
|
} else {
|
|
48
|
-
packageUtils.addDevDependencies(pkg, ['standard-version']);
|
|
49
48
|
packageUtils.addScripts(pkg, {
|
|
50
49
|
release:
|
|
51
50
|
"repository-check-dirty && yarn preversion && standard-version -a -m 'chore(release): %s [skip ci]' && git push --follow-tags origin master && npm publish",
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
<% if (!inLerna && ci) { -%>
|
|
2
|
+
/.husky
|
|
3
|
+
<% } -%>
|
|
4
|
+
<% if (!inLerna) { -%>
|
|
2
5
|
/.github
|
|
3
6
|
<% } -%>
|
|
4
7
|
<% if (!inLerna && codeclimate) { -%>
|
|
@@ -10,9 +13,12 @@
|
|
|
10
13
|
/samples
|
|
11
14
|
/test
|
|
12
15
|
/*.config.js
|
|
16
|
+
/*.config.cjs
|
|
17
|
+
/*.config.mjs
|
|
13
18
|
<% if (babel) { -%>
|
|
14
19
|
/tsconfig.json
|
|
15
20
|
/tsconfig.build.json
|
|
21
|
+
/tsconfig.eslint.json
|
|
16
22
|
/dist/tsbuildinfo
|
|
17
23
|
<% if (typedoc) { -%>
|
|
18
24
|
/tsconfig.doc.json
|
|
@@ -21,6 +27,7 @@ babel.config.json
|
|
|
21
27
|
<% } -%>
|
|
22
28
|
<% if (testing) { -%>
|
|
23
29
|
__snapshots__
|
|
30
|
+
/coverage
|
|
24
31
|
<% } -%>
|
|
25
32
|
.yo-rc.json
|
|
26
33
|
<% if (!inLerna) { -%>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { createCheckPackageWithWorkspaces } from 'check-package-dependencies';
|
|
2
2
|
|
|
3
|
-
createCheckPackageWithWorkspaces()
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
await createCheckPackageWithWorkspaces()
|
|
4
|
+
.checkRecommended({
|
|
5
|
+
isLibrary: () => true,
|
|
6
|
+
})
|
|
7
|
+
.run();
|
|
@@ -94,6 +94,10 @@ export default class LibReadmeGenerator extends Generator {
|
|
|
94
94
|
license: pkg.license,
|
|
95
95
|
codecov: this.options.codecov,
|
|
96
96
|
documentation: this.options.documentation,
|
|
97
|
+
documentationUrl:
|
|
98
|
+
this.options.documentation && gitHost === 'github'
|
|
99
|
+
? `https://${gitAccount}.github.io/${gitName}/`
|
|
100
|
+
: undefined,
|
|
97
101
|
testing: this.options.testing,
|
|
98
102
|
content,
|
|
99
103
|
},
|
|
@@ -11,10 +11,16 @@
|
|
|
11
11
|
<p align="center">
|
|
12
12
|
<% if (!privatePackage) { -%>
|
|
13
13
|
<a href="https://npmjs.org/package/<%= packageName %>"><img src="https://img.shields.io/npm/v/<%= packageName %>.svg?style=flat-square"></a>
|
|
14
|
+
<a href="https://npmjs.org/package/<%= packageName %>"><img src="https://img.shields.io/npm/dw/<%= packageName %>.svg?style=flat-square"></a>
|
|
15
|
+
<a href="https://npmjs.org/package/<%= packageName %>"><img src="https://img.shields.io/node/v/<%= packageName %>.svg?style=flat-square"></a>
|
|
16
|
+
<a href="https://npmjs.org/package/<%= packageName %>"><img src="https://img.shields.io/npm/types/<%= packageName %>.svg?style=flat-square"></a>
|
|
14
17
|
<% } if (gitHost === 'github') { -%>
|
|
15
18
|
<% if (testing && codecov) { -%>
|
|
16
19
|
<a href="https://codecov.io/gh/<%= gitAccount %>/<%= gitName %>"><img src="https://img.shields.io/codecov/c/github/<%= gitAccount %>/<%= gitName %>/master.svg?style=flat-square"></a>
|
|
17
20
|
<% } -%>
|
|
21
|
+
<% if (documentationUrl) { -%>
|
|
22
|
+
<a href="<%= documentationUrl %>"><img src="https://img.shields.io/website.svg?down_color=lightgrey&down_message=offline&up_color=blue&up_message=online&url=<%= encodeURIComponent(documentationUrl) %>?style=flat-square"></a>
|
|
23
|
+
<% } -%>
|
|
18
24
|
<% } -%>
|
|
19
25
|
</p>
|
|
20
26
|
|
|
@@ -140,7 +140,7 @@ export default class MonorepoLernaGenerator extends Generator {
|
|
|
140
140
|
|
|
141
141
|
if (pkg.name === 'pob-monorepo') {
|
|
142
142
|
pkg.devDependencies['@pob/lerna-light'] = 'workspace:*';
|
|
143
|
-
} else {
|
|
143
|
+
} else if (pkg.name !== 'pob-monorepo-test-repository') {
|
|
144
144
|
packageUtils.addDevDependencies(pkg, ['@pob/lerna-light']);
|
|
145
145
|
}
|
|
146
146
|
|
package/lib/utils/package.js
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
pobEslintConfigTypescript,
|
|
9
9
|
pobEslintConfigTypescriptReact,
|
|
10
10
|
} from './dependenciesPackages.cjs';
|
|
11
|
+
import pobPkg from './packagejson.cjs';
|
|
11
12
|
|
|
12
13
|
export { default as parseAuthor } from 'parse-author';
|
|
13
14
|
|
|
@@ -103,6 +104,12 @@ const getVersionFromDependencyName = (dependency) => {
|
|
|
103
104
|
) {
|
|
104
105
|
return pobEslintConfigTypescript.dependencies[dependency];
|
|
105
106
|
}
|
|
107
|
+
|
|
108
|
+
// prevents cycle that lerna doesnt like
|
|
109
|
+
if (dependency === '@pob/root') {
|
|
110
|
+
return pobPkg.devDependencies[dependency];
|
|
111
|
+
}
|
|
112
|
+
|
|
106
113
|
return pobDependencies[dependency];
|
|
107
114
|
};
|
|
108
115
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pob",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.17.0",
|
|
4
4
|
"description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skeleton"
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
},
|
|
40
40
|
"pob": {},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@lerna/package-graph": "^
|
|
43
|
-
"@lerna/project": "^
|
|
44
|
-
"@pob/eslint-config": "49.
|
|
45
|
-
"@pob/eslint-config-typescript": "49.3.
|
|
46
|
-
"@pob/eslint-config-typescript-react": "49.3.
|
|
42
|
+
"@lerna/package-graph": "^5.0.0",
|
|
43
|
+
"@lerna/project": "^5.0.0",
|
|
44
|
+
"@pob/eslint-config": "49.3.2",
|
|
45
|
+
"@pob/eslint-config-typescript": "49.3.3",
|
|
46
|
+
"@pob/eslint-config-typescript-react": "49.3.2",
|
|
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.21.0",
|
|
51
51
|
"findup-sync": "^5.0.0",
|
|
52
52
|
"git-remote-url": "^1.0.1",
|
|
53
53
|
"github-username": "^6.0.0",
|
|
@@ -61,11 +61,14 @@
|
|
|
61
61
|
"mem-fs-editor": "9.4.0",
|
|
62
62
|
"minimist": "1.2.6",
|
|
63
63
|
"parse-author": "2.0.0",
|
|
64
|
-
"pob-dependencies": "6.
|
|
65
|
-
"prettier": "2.
|
|
64
|
+
"pob-dependencies": "6.29.0",
|
|
65
|
+
"prettier": "2.7.1",
|
|
66
66
|
"semver": "7.3.7",
|
|
67
|
-
"yeoman-environment": "3.
|
|
68
|
-
"yeoman-generator": "5.
|
|
67
|
+
"yeoman-environment": "3.10.0",
|
|
68
|
+
"yeoman-generator": "5.7.0"
|
|
69
69
|
},
|
|
70
|
-
"
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@pob/root": "6.21.0"
|
|
72
|
+
},
|
|
73
|
+
"gitHead": "0811da6a1ea580a7ec970cd15b678d450615f989"
|
|
71
74
|
}
|