pob 10.11.0 → 10.13.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 +42 -0
- package/lib/generators/app/ignorePaths.js +7 -1
- package/lib/generators/common/format-lint/CommonLintGenerator.js +4 -1
- package/lib/generators/core/ci/templates/github-action-node-workflow.yml.ejs +1 -1
- package/lib/generators/core/yarn/CoreYarnGenerator.js +6 -3
- package/lib/generators/monorepo/lerna/MonorepoLernaGenerator.js +2 -1
- package/lib/pob.js +3 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,48 @@
|
|
|
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.13.0](https://github.com/christophehurpeau/pob/compare/pob@10.12.0...pob@10.13.0) (2022-04-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* update dependencies ([38b561f](https://github.com/christophehurpeau/pob/commit/38b561f674dc54f51359c08daa22a64609f70b66))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [10.12.0](https://github.com/christophehurpeau/pob/compare/pob@10.11.1...pob@10.12.0) (2022-04-30)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **pob:** use pob-root-prettier ([608b618](https://github.com/christophehurpeau/pob/commit/608b618843607681b8686315b0ecb9e0d8b41f2a))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* add .env.local for nextjs paths ([cd1a4e4](https://github.com/christophehurpeau/pob/commit/cd1a4e40139a75fb3f183bb9dd93fe1877455ec0))
|
|
28
|
+
* **deps:** update @pob/eslint-config ([#1269](https://github.com/christophehurpeau/pob/issues/1269)) ([4f0874f](https://github.com/christophehurpeau/pob/commit/4f0874f0956d2f90a01d5270a482aa62cd02a5e7))
|
|
29
|
+
* **deps:** update dependency eslint to v8.14.0 ([#1262](https://github.com/christophehurpeau/pob/issues/1262)) ([09e27a8](https://github.com/christophehurpeau/pob/commit/09e27a8482b7d11ff47679bbd31f30fd6378b57f))
|
|
30
|
+
* **deps:** update yeoman group ([#1260](https://github.com/christophehurpeau/pob/issues/1260)) ([ecad294](https://github.com/christophehurpeau/pob/commit/ecad2943f63204d537b7de4cba86be260123e69d))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [10.11.1](https://github.com/christophehurpeau/pob/compare/pob@10.11.0...pob@10.11.1) (2022-04-18)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* update codecov-action@v3 ([957ddce](https://github.com/christophehurpeau/pob/commit/957ddce5ea0e162739f752a04e96de9b5237a58d))
|
|
42
|
+
* update semver ([11a8763](https://github.com/christophehurpeau/pob/commit/11a8763b942e0e9fb348249b126ed4c15d20f2cb))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
6
48
|
# [10.11.0](https://github.com/christophehurpeau/pob/compare/pob@10.10.0...pob@10.11.0) (2022-04-09)
|
|
7
49
|
|
|
8
50
|
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export const appIgnorePaths = {
|
|
2
2
|
alp: (config) => ['# alp paths', '/build', '/public', '/data'],
|
|
3
|
-
'next.js': (config) => [
|
|
3
|
+
'next.js': (config) => [
|
|
4
|
+
'# next.js paths',
|
|
5
|
+
'/.next',
|
|
6
|
+
'/out',
|
|
7
|
+
'/build',
|
|
8
|
+
'/.env.local',
|
|
9
|
+
],
|
|
4
10
|
remix: (config) => ['# remix paths', '/.cache', '/build', '/public/build'],
|
|
5
11
|
pobpack: (config) => ['/build', '/public'],
|
|
6
12
|
node: (config) => ['/build'],
|
|
@@ -513,7 +513,10 @@ export default class CommonLintGenerator extends Generator {
|
|
|
513
513
|
|
|
514
514
|
if (!inLerna) {
|
|
515
515
|
pkg.scripts.lint = `yarn run lint:prettier && ${pkg.scripts.lint}`;
|
|
516
|
-
packageUtils.addScripts(pkg, {
|
|
516
|
+
packageUtils.addScripts(pkg, {
|
|
517
|
+
'lint:prettier': 'pob-root-prettier --check .',
|
|
518
|
+
'lint:prettier:fix': 'pob-root-prettier --write .',
|
|
519
|
+
});
|
|
517
520
|
} else {
|
|
518
521
|
delete pkg.scripts['lint:prettier'];
|
|
519
522
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
|
-
import
|
|
2
|
+
import yml from 'js-yaml';
|
|
3
3
|
import Generator from 'yeoman-generator';
|
|
4
4
|
import ensureJsonFileFormatted from '../../../utils/ensureJsonFileFormatted.js';
|
|
5
5
|
import inLerna from '../../../utils/inLerna.js';
|
|
@@ -95,11 +95,14 @@ export default class CoreYarnGenerator extends Generator {
|
|
|
95
95
|
|
|
96
96
|
// must be done after plugins installed
|
|
97
97
|
const configString = this.fs.read('.yarnrc.yml');
|
|
98
|
-
const config =
|
|
98
|
+
const config = yml.load(configString, {
|
|
99
|
+
schema: yml.FAILSAFE_SCHEMA,
|
|
100
|
+
json: true,
|
|
101
|
+
});
|
|
99
102
|
config.defaultSemverRangePrefix = this.options.type === 'app' ? '' : '^';
|
|
100
103
|
config.enableMessageNames = false;
|
|
101
104
|
config.nodeLinker = this.options.yarnNodeLinker;
|
|
102
|
-
writeAndFormat(this.fs, '.yarnrc.yml',
|
|
105
|
+
writeAndFormat(this.fs, '.yarnrc.yml', yml.dump(config, {}));
|
|
103
106
|
} else {
|
|
104
107
|
this.fs.delete('.yarn');
|
|
105
108
|
this.fs.delete('.yarnrc.yml');
|
|
@@ -155,7 +155,8 @@ export default class MonorepoLernaGenerator extends Generator {
|
|
|
155
155
|
|
|
156
156
|
packageUtils.addScripts(pkg, {
|
|
157
157
|
lint: `${packageManager} run lint:prettier && ${packageManager} run lint:eslint`,
|
|
158
|
-
'lint:prettier': 'prettier --check .',
|
|
158
|
+
'lint:prettier': 'pob-root-prettier --check .',
|
|
159
|
+
'lint:prettier:fix': 'pob-root-prettier --write .',
|
|
159
160
|
'lint:eslint':
|
|
160
161
|
monorepoConfig &&
|
|
161
162
|
monorepoConfig.eslint &&
|
package/lib/pob.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { spawnSync } from 'child_process';
|
|
4
4
|
import fs, { existsSync, writeFileSync, readFileSync } from 'fs';
|
|
5
5
|
import path from 'path';
|
|
6
|
-
import
|
|
6
|
+
import minimist from 'minimist';
|
|
7
7
|
import yeoman from 'yeoman-environment';
|
|
8
8
|
import PobAppGenerator from './generators/app/PobAppGenerator.js';
|
|
9
9
|
import AppNextjsGenerator from './generators/app/nextjs/AppNextjsGenerator.js';
|
|
@@ -54,6 +54,8 @@ const readJson = (filepath) => {
|
|
|
54
54
|
// console.log(pkg.version);
|
|
55
55
|
// };
|
|
56
56
|
|
|
57
|
+
const argv = minimist(process.argv.slice(2));
|
|
58
|
+
|
|
57
59
|
if (argv.version) {
|
|
58
60
|
// printVersion();
|
|
59
61
|
process.exit(0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pob",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.13.0",
|
|
4
4
|
"description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skeleton"
|
|
@@ -42,30 +42,30 @@
|
|
|
42
42
|
"@lerna/package-graph": "^4.0.0",
|
|
43
43
|
"@lerna/project": "^4.0.0",
|
|
44
44
|
"@pob/eslint-config": "49.1.0",
|
|
45
|
-
"@pob/eslint-config-typescript": "49.
|
|
46
|
-
"@pob/eslint-config-typescript-react": "49.
|
|
45
|
+
"@pob/eslint-config-typescript": "49.3.0",
|
|
46
|
+
"@pob/eslint-config-typescript-react": "49.3.1",
|
|
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
|
-
"
|
|
51
|
-
"eslint": "8.13.0",
|
|
50
|
+
"eslint": "8.14.0",
|
|
52
51
|
"findup-sync": "^5.0.0",
|
|
53
52
|
"git-remote-url": "^1.0.1",
|
|
54
53
|
"github-username": "^6.0.0",
|
|
55
|
-
"got": "^11.8.
|
|
54
|
+
"got": "^11.8.3",
|
|
56
55
|
"inquirer-npm-name": "^4.0.0",
|
|
57
|
-
"
|
|
56
|
+
"js-yaml": "^4.1.0",
|
|
57
|
+
"json5": "^2.2.1",
|
|
58
58
|
"lodash.camelcase": "^4.3.0",
|
|
59
59
|
"lodash.kebabcase": "^4.1.1",
|
|
60
60
|
"mem-fs": "2.2.1",
|
|
61
61
|
"mem-fs-editor": "9.4.0",
|
|
62
|
-
"minimist
|
|
63
|
-
"parse-author": "
|
|
64
|
-
"pob-dependencies": "6.
|
|
62
|
+
"minimist": "1.2.6",
|
|
63
|
+
"parse-author": "2.0.0",
|
|
64
|
+
"pob-dependencies": "6.25.1",
|
|
65
65
|
"prettier": "2.6.2",
|
|
66
|
-
"semver": "
|
|
67
|
-
"yeoman-environment": "
|
|
68
|
-
"yeoman-generator": "
|
|
66
|
+
"semver": "7.3.7",
|
|
67
|
+
"yeoman-environment": "3.9.1",
|
|
68
|
+
"yeoman-generator": "5.6.1"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "5cc108af3ddb8c59bbd865f377a906a201c0736d"
|
|
71
71
|
}
|