pob 10.10.0 → 10.12.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 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.12.0](https://github.com/christophehurpeau/pob/compare/pob@10.11.1...pob@10.12.0) (2022-04-30)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **pob:** use pob-root-prettier ([608b618](https://github.com/christophehurpeau/pob/commit/608b618843607681b8686315b0ecb9e0d8b41f2a))
12
+
13
+
14
+ ### Features
15
+
16
+ * add .env.local for nextjs paths ([cd1a4e4](https://github.com/christophehurpeau/pob/commit/cd1a4e40139a75fb3f183bb9dd93fe1877455ec0))
17
+ * **deps:** update @pob/eslint-config ([#1269](https://github.com/christophehurpeau/pob/issues/1269)) ([4f0874f](https://github.com/christophehurpeau/pob/commit/4f0874f0956d2f90a01d5270a482aa62cd02a5e7))
18
+ * **deps:** update dependency eslint to v8.14.0 ([#1262](https://github.com/christophehurpeau/pob/issues/1262)) ([09e27a8](https://github.com/christophehurpeau/pob/commit/09e27a8482b7d11ff47679bbd31f30fd6378b57f))
19
+ * **deps:** update yeoman group ([#1260](https://github.com/christophehurpeau/pob/issues/1260)) ([ecad294](https://github.com/christophehurpeau/pob/commit/ecad2943f63204d537b7de4cba86be260123e69d))
20
+
21
+
22
+
23
+
24
+
25
+ ## [10.11.1](https://github.com/christophehurpeau/pob/compare/pob@10.11.0...pob@10.11.1) (2022-04-18)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * update codecov-action@v3 ([957ddce](https://github.com/christophehurpeau/pob/commit/957ddce5ea0e162739f752a04e96de9b5237a58d))
31
+ * update semver ([11a8763](https://github.com/christophehurpeau/pob/commit/11a8763b942e0e9fb348249b126ed4c15d20f2cb))
32
+
33
+
34
+
35
+
36
+
37
+ # [10.11.0](https://github.com/christophehurpeau/pob/compare/pob@10.10.0...pob@10.11.0) (2022-04-09)
38
+
39
+
40
+ ### Features
41
+
42
+ * update actions/cache to v3 ([f30c138](https://github.com/christophehurpeau/pob/commit/f30c13878d869bdcc9c5f52603d8154f2ba08524))
43
+
44
+
45
+
46
+
47
+
6
48
  # [10.10.0](https://github.com/christophehurpeau/pob/compare/pob@10.9.0...pob@10.10.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) => ['# next.js paths', '/.next', '/out', '/build'],
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, { 'lint:prettier': 'prettier --check .' });
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
  }
@@ -15,7 +15,7 @@ jobs:
15
15
  node-version: 16
16
16
 
17
17
  - name: Cache dependencies
18
- uses: actions/cache@v2
18
+ uses: actions/cache@v3
19
19
  with:
20
20
  path: |
21
21
  .yarn/unplugged
@@ -20,7 +20,7 @@ jobs:
20
20
 
21
21
  <% if (packageManager !== 'npm') { -%>
22
22
  - name: Cache dependencies
23
- uses: actions/cache@v2
23
+ uses: actions/cache@v3
24
24
  with:
25
25
  <% if (packageManager === 'yarn') { -%>
26
26
  path: |
@@ -82,7 +82,7 @@ jobs:
82
82
  CI: true
83
83
 
84
84
  - name: Send results to codecov
85
- uses: codecov/codecov-action@v2
85
+ uses: codecov/codecov-action@v3
86
86
  with:
87
87
  token: ${{ secrets.CODECOV_TOKEN }}
88
88
  if: startsWith(matrix.node-version, '16.')
@@ -1,5 +1,5 @@
1
1
  import fs from 'fs';
2
- import yarnParsers from '@yarnpkg/parsers';
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 = yarnParsers.parseSyml(configString);
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', yarnParsers.stringifySyml(config));
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 &&
@@ -21,7 +21,7 @@ jobs:
21
21
  node-version: 14
22
22
 
23
23
  - name: Cache dependencies
24
- uses: actions/cache@v2
24
+ uses: actions/cache@v3
25
25
  with:
26
26
  path: |
27
27
  .yarn/unplugged
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 argv from 'minimist-argv';
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.10.0",
3
+ "version": "10.12.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.2.1",
46
- "@pob/eslint-config-typescript-react": "49.2.0",
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
- "@yarnpkg/parsers": "2.5.0",
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
54
  "got": "^11.8.1",
56
55
  "inquirer-npm-name": "^4.0.0",
56
+ "js-yaml": "^4.1.0",
57
57
  "json5": "^2.2.0",
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-argv": "^1.1.0",
63
- "parse-author": "^2.0.0",
62
+ "minimist": "1.2.6",
63
+ "parse-author": "2.0.0",
64
64
  "pob-dependencies": "6.17.0",
65
65
  "prettier": "2.6.2",
66
- "semver": "^7.3.4",
67
- "yeoman-environment": "^3.5.1",
68
- "yeoman-generator": "^5.4.0"
66
+ "semver": "7.3.7",
67
+ "yeoman-environment": "3.9.1",
68
+ "yeoman-generator": "5.6.1"
69
69
  },
70
- "gitHead": "ef8bddd03fe7543d9dac575a3450549c874f7f9d"
70
+ "gitHead": "53e6baafe3c09d9c069591af155d93f5f19fbd2e"
71
71
  }