pob 10.16.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 +55 -0
- package/lib/generators/common/babel/CommonBabelGenerator.js +2 -2
- package/lib/generators/common/babel/templates/app.rollup.config.mjs.ejs +3 -1
- 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/common/release/CommonReleaseGenerator.js +0 -1
- package/lib/generators/common/typescript/templates/tsconfig.build.json.ejs +2 -1
- 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/PobLibGenerator.js +12 -12
- 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 +14 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,61 @@
|
|
|
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
|
+
|
|
19
|
+
# [10.18.0](https://github.com/christophehurpeau/pob/compare/pob@10.17.0...pob@10.18.0) (2022-08-12)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **deps:** update dependency mem-fs-editor to v9.5.0 ([#1363](https://github.com/christophehurpeau/pob/issues/1363)) ([bc1d1bf](https://github.com/christophehurpeau/pob/commit/bc1d1bfcdb093d75b3be4d07ede463f2a37a5491))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [10.17.0](https://github.com/christophehurpeau/pob/compare/pob@10.16.0...pob@10.17.0) (2022-08-01)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* **deps:** update dependency prettier to v2.7.1 ([#1322](https://github.com/christophehurpeau/pob/issues/1322)) ([ba6b521](https://github.com/christophehurpeau/pob/commit/ba6b521ccada49f36eb013a02f5eea13613ed593))
|
|
36
|
+
* move pob/root in devdep of pob to avoid dep cycle ([ce9152a](https://github.com/christophehurpeau/pob/commit/ce9152a83106b330a090f1a4d1bce570ec47c90d))
|
|
37
|
+
* **pob:** better support windows in rollup config ([b8a266b](https://github.com/christophehurpeau/pob/commit/b8a266b0a0b5515fda1bce6be8ddf9158c66a408))
|
|
38
|
+
* update check-package-dependencies ([79a6e7f](https://github.com/christophehurpeau/pob/commit/79a6e7f32240efbaff7e3f3eb831f5d1a0fd8174))
|
|
39
|
+
* update check-packages template ([9e498db](https://github.com/christophehurpeau/pob/commit/9e498db17ffc0078f5a0e04c28a14ff5831bf8a9))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* configure newLine in tsconfig.build.json for windows compat ([e5f9710](https://github.com/christophehurpeau/pob/commit/e5f97101e19c6184cc9a3c95ee8bf565df2900ac))
|
|
45
|
+
* **deps:** update @pob/eslint-config ([#1341](https://github.com/christophehurpeau/pob/issues/1341)) ([55dc6ea](https://github.com/christophehurpeau/pob/commit/55dc6ea6425c3baa977b6c4224ad71f7b5e69ba4))
|
|
46
|
+
* **deps:** update dependency eslint to v8.17.0 ([#1311](https://github.com/christophehurpeau/pob/issues/1311)) ([b050c31](https://github.com/christophehurpeau/pob/commit/b050c318ee4a7518e60cde4d07f6ceb9738e5123))
|
|
47
|
+
* **deps:** update dependency eslint to v8.18.0 ([#1324](https://github.com/christophehurpeau/pob/issues/1324)) ([eed6d70](https://github.com/christophehurpeau/pob/commit/eed6d700a7ef5861a99d568b00216a1d2fea4bf7))
|
|
48
|
+
* **deps:** update dependency eslint to v8.19.0 ([#1336](https://github.com/christophehurpeau/pob/issues/1336)) ([47fe9d6](https://github.com/christophehurpeau/pob/commit/47fe9d6180fb27dd6d1acb00dc412f8b6f7e19b4))
|
|
49
|
+
* **deps:** update dependency eslint to v8.20.0 ([#1349](https://github.com/christophehurpeau/pob/issues/1349)) ([de37cf8](https://github.com/christophehurpeau/pob/commit/de37cf8d7cc90ffcee040e4dac872bade940497b))
|
|
50
|
+
* **deps:** update dependency eslint to v8.21.0 ([#1361](https://github.com/christophehurpeau/pob/issues/1361)) ([04ff2df](https://github.com/christophehurpeau/pob/commit/04ff2dfb7074a31de75015bf22ffd3d0983b9f39))
|
|
51
|
+
* **deps:** update dependency prettier to v2.7.0 ([#1318](https://github.com/christophehurpeau/pob/issues/1318)) ([ee2d9f3](https://github.com/christophehurpeau/pob/commit/ee2d9f313d0be390dd68e83112998960f7517792))
|
|
52
|
+
* **deps:** update yeoman group ([#1358](https://github.com/christophehurpeau/pob/issues/1358)) ([fdc8bfb](https://github.com/christophehurpeau/pob/commit/fdc8bfb88c84312bf9597003f30cbd528359551e))
|
|
53
|
+
* **pob:** add missing stuff in npmignore ([1748198](https://github.com/christophehurpeau/pob/commit/1748198e70ebae2f9825ad5a4e02ade7e1973eb8))
|
|
54
|
+
* remove lerna-light in pob-monorepo-test-repository ([7e5c34c](https://github.com/christophehurpeau/pob/commit/7e5c34c3c865b70c4c9330d2f466231c80a329ac))
|
|
55
|
+
* remove standard-version ([9ced070](https://github.com/christophehurpeau/pob/commit/9ced070767e6b9ab04f61cd80496a76b6de1d594))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
6
61
|
# [10.16.0](https://github.com/christophehurpeau/pob/compare/pob@10.15.0...pob@10.16.0) (2022-05-31)
|
|
7
62
|
|
|
8
63
|
|
|
@@ -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',
|
|
@@ -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) { -%>
|
|
@@ -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;
|
|
@@ -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();
|
|
@@ -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
|
|
|
@@ -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.19.0",
|
|
4
4
|
"description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skeleton"
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@lerna/package-graph": "^5.0.0",
|
|
43
43
|
"@lerna/project": "^5.0.0",
|
|
44
|
-
"@pob/eslint-config": "49.
|
|
45
|
-
"@pob/eslint-config-typescript": "49.3.
|
|
46
|
-
"@pob/eslint-config-typescript-react": "49.3.
|
|
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.23.0",
|
|
51
51
|
"findup-sync": "^5.0.0",
|
|
52
52
|
"git-remote-url": "^1.0.1",
|
|
53
53
|
"github-username": "^6.0.0",
|
|
@@ -58,14 +58,17 @@
|
|
|
58
58
|
"lodash.camelcase": "^4.3.0",
|
|
59
59
|
"lodash.kebabcase": "^4.1.1",
|
|
60
60
|
"mem-fs": "2.2.1",
|
|
61
|
-
"mem-fs-editor": "9.
|
|
61
|
+
"mem-fs-editor": "9.5.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.31.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.22.0"
|
|
72
|
+
},
|
|
73
|
+
"gitHead": "40e2ebfeccd06b9124056bca8bf8f94fefa2fdd1"
|
|
71
74
|
}
|