pob 25.1.0 → 25.3.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,41 @@
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
+ ## [25.3.0](https://github.com/christophehurpeau/pob/compare/pob@25.2.0...pob@25.3.0) (2025-01-18)
7
+
8
+ ### Features
9
+
10
+ * **deps:** update @pob/eslint-config to v59.3.2 ([#2391](https://github.com/christophehurpeau/pob/issues/2391)) ([7c0b03c](https://github.com/christophehurpeau/pob/commit/7c0b03c56c2da1a27993c4488a2e661de51732fe))
11
+ * **deps:** update @pob/eslint-config to v59.4.0 ([#2415](https://github.com/christophehurpeau/pob/issues/2415)) ([7fe3423](https://github.com/christophehurpeau/pob/commit/7fe34235a3ed6500b43e75d6159b23523ebf708e))
12
+ * **deps:** update dependency eslint to v9.18.0 ([#2409](https://github.com/christophehurpeau/pob/issues/2409)) ([4e73796](https://github.com/christophehurpeau/pob/commit/4e737964a27f660413e98972c7943f70bb2165f0))
13
+ * **deps:** update yarn monorepo ([#2393](https://github.com/christophehurpeau/pob/issues/2393)) ([8340af5](https://github.com/christophehurpeau/pob/commit/8340af55093e7a3150d2df0dc01022782294349b))
14
+ * has tamagui ([f88d976](https://github.com/christophehurpeau/pob/commit/f88d976ae8422c97cb864800521839a8dd5ac880))
15
+
16
+ ### Bug Fixes
17
+
18
+ * **deps:** update dependency typescript to v5.7.3 ([#2403](https://github.com/christophehurpeau/pob/issues/2403)) ([958d3c6](https://github.com/christophehurpeau/pob/commit/958d3c6f03d2d49b9f9f5b1c857ddf04a4ae7e4f))
19
+ * **pob:** fix eslint config react-native-web ([7c5a489](https://github.com/christophehurpeau/pob/commit/7c5a489dd5904a7ce5a52bdd220d833323f5ce17))
20
+ * stop creating babel config if testing is disabled ([d04794b](https://github.com/christophehurpeau/pob/commit/d04794bf682e6dffc0f4ef075d89458092a685b3))
21
+ * vscode config compatible with eslint linting json files ([d83e473](https://github.com/christophehurpeau/pob/commit/d83e4737a365446ce9b8fbe56618a281de6e4b56))
22
+
23
+ Version bump for dependency: yarn-workspace-utils
24
+ Version bump for dependency: @pob/root
25
+
26
+
27
+ ## [25.2.0](https://github.com/christophehurpeau/pob/compare/pob@25.1.0...pob@25.2.0) (2024-12-19)
28
+
29
+ ### Features
30
+
31
+ * **deps:** update dependency yeoman-generator to v7.4.0 ([#2366](https://github.com/christophehurpeau/pob/issues/2366)) ([1311555](https://github.com/christophehurpeau/pob/commit/1311555caecacf9a85f006ccf0e69680749070b4))
32
+
33
+ ### Bug Fixes
34
+
35
+ * fixes for bun packageManager ([0f3cd37](https://github.com/christophehurpeau/pob/commit/0f3cd37c1f72f04cb2e84093a4b6b04996038e01))
36
+ * if yarn is deleted remove yarn.lock ([e05b8f3](https://github.com/christophehurpeau/pob/commit/e05b8f3f8eb8840ecd282044e1a97efff59819cc))
37
+
38
+ Version bump for dependency: @pob/root
39
+
40
+
6
41
  ## [25.1.0](https://github.com/christophehurpeau/pob/compare/pob@25.0.0...pob@25.1.0) (2024-12-19)
7
42
 
8
43
  ### Features
@@ -313,6 +313,7 @@ export default class PobAppGenerator extends Generator {
313
313
  ci: this.appConfig.ci,
314
314
  disableYarnGitCache: this.options.disableYarnGitCache,
315
315
  updateOnly: this.options.updateOnly,
316
+ packageManager: this.options.packageManager,
316
317
  });
317
318
  }
318
319
 
@@ -398,11 +398,10 @@ export default class CommonLintGenerator extends Generator {
398
398
  useNode
399
399
  ? "...pobTypescriptConfig(import.meta.url).configs.node"
400
400
  : "...pobTypescriptConfig(import.meta.url).configs.base",
401
- `...pobTypescriptReactConfig(import.meta.url).configs.${
402
- pkg.dependencies?.["react-native-web"] ? "/react-native-web" : ""
403
- }`,
404
401
  this.options.isApp &&
405
402
  "...pobTypescriptConfig(import.meta.url).configs.app",
403
+ pkg.dependencies?.["react-native-web"] &&
404
+ '...pobTypescriptConfigReact(import.meta.url).configs["react-native-web"]',
406
405
  ];
407
406
  })().filter(Boolean),
408
407
  };
@@ -62,6 +62,12 @@ export default class CommonReleaseGenerator extends Generator {
62
62
  default: false,
63
63
  description: "Avoid asking questions",
64
64
  });
65
+
66
+ this.option("packageManager", {
67
+ type: String,
68
+ required: true,
69
+ description: "Package manager",
70
+ });
65
71
  }
66
72
 
67
73
  writing() {
@@ -79,6 +85,7 @@ export default class CommonReleaseGenerator extends Generator {
79
85
  this.templatePath("workflow-release.yml.ejs"),
80
86
  this.destinationPath(`.github/workflows/${name}`),
81
87
  {
88
+ packageManager: this.options.packageManager,
82
89
  enablePublish: this.options.enablePublish,
83
90
  enableYarnVersion: this.options.enableYarnVersion,
84
91
  disableYarnGitCache: this.options.disableYarnGitCache,
@@ -47,6 +47,7 @@ jobs:
47
47
  - name: Install bun
48
48
  uses: oven-sh/setup-bun@v1
49
49
 
50
+ - name: Install Dependencies
50
51
  run: bun install --frozen-lockfile
51
52
  <% } -%>
52
53
 
@@ -658,6 +658,7 @@ export default class CommonTestingGenerator extends Generator {
658
658
  }
659
659
 
660
660
  if (
661
+ this.options.enable &&
661
662
  transpileWithBabel &&
662
663
  ((this.options.monorepo && globalTesting) || !globalTesting) &&
663
664
  testRunner === "jest"
@@ -24,7 +24,7 @@
24
24
  <% if (yarn) { -%>
25
25
  // set yarn as package manager to run scripts and tasks
26
26
  "npm.packageManager": "yarn",
27
- <% else if (bun) { -%>
27
+ <% } else if (bun) { -%>
28
28
  // set bun as package manager to run scripts and tasks
29
29
  "npm.packageManager": "bun",
30
30
  <% } -%>
@@ -43,7 +43,7 @@
43
43
  "jest.jestCommandLine": "NODE_OPTIONS=--experimental-vm-modules node_modules/.bin/jest",
44
44
  <% } -%>
45
45
 
46
- // eslint config
46
+ // extension eslint config
47
47
  "eslint.workingDirectories": ["."],
48
48
  "eslint.useFlatConfig": true,
49
49
  "eslint.lintTask.enable": true,
@@ -54,7 +54,7 @@
54
54
  "typescriptreact"
55
55
  ],
56
56
 
57
- // eslint & prettier formatter
57
+ // format config
58
58
  "eslint.format.enable": false,
59
59
  "editor.defaultFormatter": "esbenp.prettier-vscode"
60
60
  }
@@ -189,7 +189,7 @@ export default class CoreYarnGenerator extends Generator {
189
189
  }
190
190
  this.fs.delete(".yarn");
191
191
  this.fs.delete(".yarnrc.yml");
192
- this.fs.delete(".yarn.lock");
192
+ this.fs.delete("yarn.lock");
193
193
  }
194
194
 
195
195
  packageUtils.removeDevDependencies(pkg, ["@yarnpkg/pnpify"]);
@@ -359,6 +359,7 @@ export default class PobLibGenerator extends Generator {
359
359
 
360
360
  this.composeWith("pob:common:release", {
361
361
  enable: !inMonorepo && this.pobjson.testing,
362
+ packageManager: this.options.packageManager,
362
363
  enablePublish: true,
363
364
  withBabel,
364
365
  withTypescript,
@@ -60,6 +60,17 @@ const hasBuild = (packages, configs) =>
60
60
  ),
61
61
  );
62
62
 
63
+ const hasTamagui = (packages, configs) =>
64
+ configs.some(
65
+ (config, index) =>
66
+ !!(
67
+ config &&
68
+ config.project &&
69
+ config.project.type === "app" &&
70
+ ["storybook"].includes(config.app.type)
71
+ ),
72
+ );
73
+
63
74
  export default class PobMonorepoGenerator extends Generator {
64
75
  constructor(args, opts) {
65
76
  super(args, opts);
@@ -256,6 +267,7 @@ export default class PobMonorepoGenerator extends Generator {
256
267
  ignorePaths: [
257
268
  hasDist(this.packages, this.packageConfigs) && "/dist",
258
269
  hasBuild(this.packages, this.packageConfigs) && "/build",
270
+ hasTamagui(this.packages, this.packageConfigs) && "/.tamagui",
259
271
  ]
260
272
  .filter(Boolean)
261
273
  .join("\n"),
@@ -296,6 +308,7 @@ export default class PobMonorepoGenerator extends Generator {
296
308
 
297
309
  this.composeWith("pob:common:release", {
298
310
  enable: true,
311
+ packageManager: this.options.packageManager,
299
312
  enablePublish: !this.options.isAppProject,
300
313
  withBabel: this.pobLernaConfig.typescript,
301
314
  isMonorepo: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pob",
3
- "version": "25.1.0",
3
+ "version": "25.3.0",
4
4
  "description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
5
5
  "keywords": [
6
6
  "skeleton"
@@ -41,22 +41,22 @@
41
41
  },
42
42
  "prettier": "@pob/root/prettier-config",
43
43
  "dependencies": {
44
- "@pob/eslint-config": "59.2.0",
45
- "@pob/eslint-config-typescript": "59.2.0",
46
- "@pob/eslint-config-typescript-react": "59.2.0",
44
+ "@pob/eslint-config": "59.4.0",
45
+ "@pob/eslint-config-typescript": "59.4.0",
46
+ "@pob/eslint-config-typescript-react": "59.4.0",
47
47
  "@pob/sort-eslint-config": "7.0.0",
48
48
  "@pob/sort-object": "8.0.0",
49
49
  "@pob/sort-pkg": "10.0.0",
50
50
  "@prettier/sync": "0.5.2",
51
51
  "@types/inquirer": "9.0.7",
52
- "@yarnpkg/cli": "4.5.3",
53
- "@yarnpkg/core": "4.1.6",
52
+ "@yarnpkg/cli": "4.6.0",
53
+ "@yarnpkg/core": "4.2.0",
54
54
  "@yarnpkg/fslib": "3.1.1",
55
55
  "@yeoman/types": "1.5.0",
56
- "eslint": "9.17.0",
56
+ "eslint": "9.18.0",
57
57
  "findup-sync": "^5.0.0",
58
58
  "git-remote-url": "^1.0.1",
59
- "github-username": "^7.0.0",
59
+ "github-username": "^8.0.0",
60
60
  "js-yaml": "^4.1.0",
61
61
  "json5": "^2.2.3",
62
62
  "lodash.camelcase": "^4.3.0",
@@ -65,17 +65,17 @@
65
65
  "mem-fs-editor": "11.1.4",
66
66
  "minimist": "1.2.8",
67
67
  "parse-author": "2.0.0",
68
- "pob-dependencies": "16.1.0",
68
+ "pob-dependencies": "16.2.0",
69
69
  "prettier": "3.4.2",
70
70
  "semver": "7.6.3",
71
- "typescript": "5.7.2",
71
+ "typescript": "5.7.3",
72
72
  "validate-npm-package-name": "^6.0.0",
73
- "yarn-workspace-utils": "7.2.0",
73
+ "yarn-workspace-utils": "7.3.0",
74
74
  "yeoman-environment": "4.4.3",
75
- "yeoman-generator": "7.3.3"
75
+ "yeoman-generator": "7.4.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@pob/root": "15.1.0",
79
- "@types/node": "22.10.2"
78
+ "@pob/root": "15.2.0",
79
+ "@types/node": "22.10.7"
80
80
  }
81
81
  }