@pplancq/react-template 1.1.2 → 1.2.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 +18 -0
- package/package.json +10 -11
- package/scripts/migrateToVite.js +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## @pplancq/react-template [1.2.0](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@1.1.2...@pplancq/react-template@1.2.0) (2024-03-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **react-template:** add sass when migrate to vite ([790a621](https://github.com/pplancq/dev-tools/commit/790a6211df2f94a18631c5adf40edcbfc343ddd8))
|
|
7
|
+
* **react-template:** remove babel-config when use script migrate to vite ([de680b0](https://github.com/pplancq/dev-tools/commit/de680b039ab27c3174ba46d49681ca178e11f6d2))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **react-package:** fix computability of script with npm on Windows ([c6b8d7d](https://github.com/pplancq/dev-tools/commit/c6b8d7db1f2029ae602186ec92b53b362c65dc1c))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Reverts
|
|
16
|
+
|
|
17
|
+
* **dev-tool:** add package-lock when execute npm postversion ([1e83fe7](https://github.com/pplancq/dev-tools/commit/1e83fe7ee8d2529ce3b85e1abb56968171ee01ff))
|
|
18
|
+
|
|
1
19
|
## @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
20
|
|
|
3
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pplancq/react-template",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "react template",
|
|
6
6
|
"author": "pplancq <paul.plancq@outlook.fr>",
|
|
@@ -21,9 +21,8 @@
|
|
|
21
21
|
"stylelint:fix": "stylelint \"src**/*.{scss,css}\" --fix",
|
|
22
22
|
"tsc": "tsc --noEmit",
|
|
23
23
|
"package:check": "npm exec --yes package-lock-utd@1.1.3",
|
|
24
|
-
"remove:demo": "./scripts/removeDemo.js",
|
|
25
|
-
"migrate:vite": "./scripts/migrateToVite.js",
|
|
26
|
-
"postversion": "git add ../../package-lock.json",
|
|
24
|
+
"remove:demo": "node ./scripts/removeDemo.js",
|
|
25
|
+
"migrate:vite": "node ./scripts/migrateToVite.js",
|
|
27
26
|
"_prepare": "husky"
|
|
28
27
|
},
|
|
29
28
|
"bugs": {
|
|
@@ -36,15 +35,15 @@
|
|
|
36
35
|
"dependencies": {
|
|
37
36
|
"@hookform/resolvers": "^3.3.2",
|
|
38
37
|
"@tanstack/react-query": "^5.25.0",
|
|
39
|
-
"@tanstack/react-query-devtools": "^5.
|
|
38
|
+
"@tanstack/react-query-devtools": "^5.28.4",
|
|
40
39
|
"react": "^18.2.0",
|
|
41
40
|
"react-dom": "^18.2.0",
|
|
42
|
-
"react-hook-form": "^7.51.
|
|
41
|
+
"react-hook-form": "^7.51.1",
|
|
43
42
|
"react-router-dom": "^6.22.3",
|
|
44
43
|
"yup": "^1.4.0"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
|
-
"@commitlint/cli": "^19.0
|
|
46
|
+
"@commitlint/cli": "^19.2.0",
|
|
48
47
|
"@pplancq/babel-config": "*",
|
|
49
48
|
"@pplancq/commitlint-config": "*",
|
|
50
49
|
"@pplancq/eslint-config": "*",
|
|
@@ -55,10 +54,10 @@
|
|
|
55
54
|
"@testing-library/jest-dom": "^6.1.5",
|
|
56
55
|
"@testing-library/react": "^14.1.2",
|
|
57
56
|
"@testing-library/user-event": "^14.5.1",
|
|
58
|
-
"@types/react": "^18.2.
|
|
59
|
-
"@types/react-dom": "^18.2.
|
|
57
|
+
"@types/react": "^18.2.67",
|
|
58
|
+
"@types/react-dom": "^18.2.22",
|
|
60
59
|
"@vitejs/plugin-react": "^4.2.1",
|
|
61
|
-
"@vitest/coverage-v8": "^1.
|
|
60
|
+
"@vitest/coverage-v8": "^1.4.0",
|
|
62
61
|
"concurrently": "^8.2.2",
|
|
63
62
|
"eslint": "^8.57.0",
|
|
64
63
|
"eslint-plugin-prettier": "^5.1.3",
|
|
@@ -71,7 +70,7 @@
|
|
|
71
70
|
"tsc-files": "^1.1.4",
|
|
72
71
|
"typescript": "^5.4.2",
|
|
73
72
|
"vite-plugin-svgr": "^4.2.0",
|
|
74
|
-
"vite-tsconfig-paths": "^4.
|
|
73
|
+
"vite-tsconfig-paths": "^4.3.2",
|
|
75
74
|
"vitest": "^1.0.4",
|
|
76
75
|
"vitest-sonar-reporter": "^2.0.0",
|
|
77
76
|
"webpack": "^5.90.3",
|
package/scripts/migrateToVite.js
CHANGED
|
@@ -30,11 +30,14 @@ const getPackageManager = () => {
|
|
|
30
30
|
const packageManager = getPackageManager();
|
|
31
31
|
|
|
32
32
|
console.info('\nremove webpack ...');
|
|
33
|
-
runCommand(
|
|
33
|
+
runCommand(
|
|
34
|
+
`${packageManager} remove @pplancq/webpack-config @pplancq/babel-config webpack webpack-cli webpack-dev-server`,
|
|
35
|
+
);
|
|
34
36
|
rmSync(resolve(__dirname, '../webpack.config.js'));
|
|
37
|
+
rmSync(resolve(__dirname, '../babelrc.js'));
|
|
35
38
|
console.info('\ninstall vite package ...');
|
|
36
39
|
runCommand(
|
|
37
|
-
`${packageManager} ${packageManager === YARN ? 'add --dev' : 'install --save-dev'} vite vite-plugin-eslint2 vite-plugin-stylelint`,
|
|
40
|
+
`${packageManager} ${packageManager === YARN ? 'add --dev' : 'install --save-dev'} vite vite-plugin-eslint2 vite-plugin-stylelint sass`,
|
|
38
41
|
);
|
|
39
42
|
|
|
40
43
|
writeFileSync(
|