@pplancq/react-template 1.1.0 → 1.1.2

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
@@ -1,3 +1,19 @@
1
+ ## @pplancq/react-template [1.1.2](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@1.1.1...@pplancq/react-template@1.1.2) (2024-03-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **react-template:** fix remove demo when create Home page ([b9df040](https://github.com/pplancq/dev-tools/commit/b9df04091f896b362694044ab29869b865e4aac4))
7
+
8
+ ## @pplancq/react-template [1.1.1](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@1.1.0...@pplancq/react-template@1.1.1) (2024-03-14)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **react-template:** fix webpack-dev-server@4 peerDependencies of webpack-config ([24e6db9](https://github.com/pplancq/dev-tools/commit/24e6db9e81dbaf6e874614edee0190a7bf129a6a))
14
+ * **react-template:** fix yarn add on script migrate to vite ([739ee45](https://github.com/pplancq/dev-tools/commit/739ee45f2867d7db1140e03ede235667f5704260))
15
+ * **react-template:** update interpackage dependencies to '*' ([23d766a](https://github.com/pplancq/dev-tools/commit/23d766aa12968d36cbd989c65d92744d926298e6))
16
+
1
17
  ## @pplancq/react-template [1.1.0](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@1.0.0...@pplancq/react-template@1.1.0) (2024-03-12)
2
18
 
3
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pplancq/react-template",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "license": "MIT",
5
5
  "description": "react template",
6
6
  "author": "pplancq <paul.plancq@outlook.fr>",
@@ -23,6 +23,7 @@
23
23
  "package:check": "npm exec --yes package-lock-utd@1.1.3",
24
24
  "remove:demo": "./scripts/removeDemo.js",
25
25
  "migrate:vite": "./scripts/migrateToVite.js",
26
+ "postversion": "git add ../../package-lock.json",
26
27
  "_prepare": "husky"
27
28
  },
28
29
  "bugs": {
@@ -44,13 +45,13 @@
44
45
  },
45
46
  "devDependencies": {
46
47
  "@commitlint/cli": "^19.0.3",
47
- "@pplancq/babel-config": "^1.0.0",
48
+ "@pplancq/babel-config": "*",
48
49
  "@pplancq/commitlint-config": "*",
49
- "@pplancq/eslint-config": "2.0.0",
50
- "@pplancq/postcss-config": "^1.0.0",
51
- "@pplancq/prettier-config": "^1.0.0",
52
- "@pplancq/stylelint-config": "2.0.0",
53
- "@pplancq/webpack-config": "^1.0.0",
50
+ "@pplancq/eslint-config": "*",
51
+ "@pplancq/postcss-config": "*",
52
+ "@pplancq/prettier-config": "*",
53
+ "@pplancq/stylelint-config": "*",
54
+ "@pplancq/webpack-config": "*",
54
55
  "@testing-library/jest-dom": "^6.1.5",
55
56
  "@testing-library/react": "^14.1.2",
56
57
  "@testing-library/user-event": "^14.5.1",
@@ -75,7 +76,7 @@
75
76
  "vitest-sonar-reporter": "^2.0.0",
76
77
  "webpack": "^5.90.3",
77
78
  "webpack-cli": "^5.1.4",
78
- "webpack-dev-server": "^5.0.2"
79
+ "webpack-dev-server": "^4.15.1"
79
80
  },
80
81
  "volta": {
81
82
  "node": "20.10.0",
@@ -34,7 +34,7 @@ runCommand(`${packageManager} remove @pplancq/webpack-config webpack webpack-cli
34
34
  rmSync(resolve(__dirname, '../webpack.config.js'));
35
35
  console.info('\ninstall vite package ...');
36
36
  runCommand(
37
- `${packageManager} ${packageManager === YARN ? 'add' : 'install'} --save-dev vite vite-plugin-eslint2 vite-plugin-stylelint`,
37
+ `${packageManager} ${packageManager === YARN ? 'add --dev' : 'install --save-dev'} vite vite-plugin-eslint2 vite-plugin-stylelint`,
38
38
  );
39
39
 
40
40
  writeFileSync(
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const { rmSync, readFileSync, writeFileSync } = require('fs');
2
+ const { rmSync, readFileSync, writeFileSync, mkdirSync } = require('fs');
3
3
  const { resolve } = require('path');
4
4
 
5
5
  const resolveSrc = path => resolve(__dirname, `../src${path}`);
@@ -30,6 +30,7 @@ writeFileSync(resolveSrc('/hooks/api/queryKey.ts'), queryKey, { encoding: 'utf-8
30
30
  rmSync(resolveSrc('/pages/Demo'), { recursive: true });
31
31
  rmSync(resolveSrc('/pages/Layout'), { recursive: true });
32
32
  rmSync(resolveSrc('/pages/UnexpectedError'), { recursive: true });
33
+ mkdirSync(resolveSrc('/pages/Home'));
33
34
  writeFileSync(resolveSrc('/pages/Home/index.ts'), "export { homeRoutes } from './routes';\n", { encoding: 'utf-8' });
34
35
  writeFileSync(
35
36
  resolveSrc('/pages/Home/routes.tsx'),