@pplancq/react-template 1.6.0 → 1.7.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
@@ -1,3 +1,15 @@
1
+ ## @pplancq/react-template [1.7.0](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@1.6.0...@pplancq/react-template@1.7.0) (2024-08-16)
2
+
3
+ ### Features
4
+
5
+ * **react-template:** bump vitest from 1.6.0 to 2.0.5 ([4c129d3](https://github.com/pplancq/dev-tools/commit/4c129d303cc27d5b73dbbdb9710f2ad64745c1cf))
6
+
7
+
8
+ ### Dependencies
9
+
10
+ * **@pplancq/postcss-config:** upgraded to 2.0.0
11
+ * **@pplancq/webpack-config:** upgraded to 1.5.0
12
+
1
13
  ## @pplancq/react-template [1.6.0](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@1.5.1...@pplancq/react-template@1.6.0) (2024-06-05)
2
14
 
3
15
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pplancq/react-template",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "license": "MIT",
5
5
  "description": "react template",
6
6
  "author": "pplancq <paul.plancq@outlook.fr>",
@@ -13,8 +13,8 @@
13
13
  "start": "webpack serve",
14
14
  "start:mock": "webpack serve --env FRONT_MOCK_ENABLE=true",
15
15
  "build": "webpack --mode production",
16
- "test": "vitest",
17
- "test:ci": "vitest run --coverage",
16
+ "test": "vitest run",
17
+ "test:watch": "vitest",
18
18
  "lint": "concurrently --prefix-colors auto \"npm:eslint\" \"npm:tsc\" \"npm:stylelint\"",
19
19
  "eslint": "eslint src --ext js,jsx,ts,tsx",
20
20
  "eslint:fix": "eslint src --ext js,jsx,ts,tsx --fix",
@@ -34,17 +34,17 @@
34
34
  "template"
35
35
  ],
36
36
  "dependencies": {
37
- "@hookform/resolvers": "^3.4.2",
38
- "@tanstack/react-query": "^5.40.0",
39
- "@tanstack/react-query-devtools": "^5.40.0",
37
+ "@hookform/resolvers": "^3.9.0",
38
+ "@tanstack/react-query": "^5.51.23",
39
+ "@tanstack/react-query-devtools": "^5.51.23",
40
40
  "react": "^18.2.0",
41
41
  "react-dom": "^18.3.1",
42
- "react-hook-form": "^7.51.5",
43
- "react-router-dom": "^6.23.1",
42
+ "react-hook-form": "^7.52.2",
43
+ "react-router-dom": "^6.26.0",
44
44
  "yup": "^1.4.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@commitlint/cli": "^19.3.0",
47
+ "@commitlint/cli": "^19.4.0",
48
48
  "@pplancq/babel-config": "*",
49
49
  "@pplancq/commitlint-config": "*",
50
50
  "@pplancq/eslint-config": "*",
@@ -52,31 +52,31 @@
52
52
  "@pplancq/prettier-config": "*",
53
53
  "@pplancq/stylelint-config": "*",
54
54
  "@pplancq/webpack-config": "*",
55
- "@testing-library/jest-dom": "^6.4.5",
56
- "@testing-library/react": "^15.0.7",
55
+ "@testing-library/jest-dom": "^6.4.8",
56
+ "@testing-library/react": "^16.0.0",
57
57
  "@testing-library/user-event": "^14.5.1",
58
58
  "@types/react": "^18.3.3",
59
59
  "@types/react-dom": "^18.3.0",
60
- "@vitejs/plugin-react": "^4.3.0",
61
- "@vitest/coverage-v8": "^1.6.0",
60
+ "@vitejs/plugin-react": "^4.3.1",
61
+ "@vitest/coverage-v8": "^2.0.5",
62
62
  "concurrently": "^8.2.2",
63
63
  "eslint": "^8.57.0",
64
- "eslint-plugin-prettier": "^5.1.3",
65
- "husky": "^9.0.11",
66
- "jsdom": "^24.1.0",
67
- "lint-staged": "^15.2.5",
68
- "msw": "^2.3.1",
69
- "prettier": "^3.3.0",
70
- "stylelint": "^16.6.1",
71
- "stylelint-prettier": "^5.0.0",
64
+ "eslint-plugin-prettier": "^5.2.1",
65
+ "husky": "^9.1.4",
66
+ "jsdom": "^24.1.1",
67
+ "lint-staged": "^15.2.8",
68
+ "msw": "^2.3.5",
69
+ "prettier": "^3.3.3",
70
+ "stylelint": "^16.8.1",
71
+ "stylelint-prettier": "^5.0.2",
72
72
  "tsc-files": "^1.1.4",
73
- "typescript": "^5.4.5",
73
+ "typescript": "^5.5.4",
74
74
  "vite-plugin-svgr": "^4.2.0",
75
- "vite-tsconfig-paths": "^4.3.2",
76
- "vitest": "^1.0.4",
75
+ "vite-tsconfig-paths": "^5.0.1",
76
+ "vitest": "^2.0.5",
77
77
  "vitest-axe": "^1.0.0-pre.3",
78
78
  "vitest-sonar-reporter": "^2.0.0",
79
- "webpack": "^5.91.0",
79
+ "webpack": "^5.93.0",
80
80
  "webpack-cli": "^5.1.4",
81
81
  "webpack-dev-server": "^5.0.4"
82
82
  },
package/vitest.config.mts CHANGED
@@ -1,3 +1,4 @@
1
+ /* eslint-disable import/no-extraneous-dependencies */
1
2
  import react from '@vitejs/plugin-react';
2
3
  import { resolve } from 'path';
3
4
  import { loadEnv } from 'vite';
@@ -5,6 +6,7 @@ import svgr from 'vite-plugin-svgr';
5
6
  import viteTsconfigPaths from 'vite-tsconfig-paths';
6
7
  import { defineConfig } from 'vitest/config';
7
8
 
9
+ // eslint-disable-next-line import/no-default-export
8
10
  export default defineConfig(({ mode }) => {
9
11
  const env = loadEnv(mode, process.cwd(), '');
10
12
 
@@ -14,7 +16,7 @@ export default defineConfig(({ mode }) => {
14
16
  viteTsconfigPaths({
15
17
  projects: [resolve(__dirname, './tsconfig.test.json')],
16
18
  }),
17
- svgr()
19
+ svgr(),
18
20
  ],
19
21
  envPrefix: env.ENV_PREFIX ?? 'FRONT_',
20
22
  test: {
@@ -26,7 +28,7 @@ export default defineConfig(({ mode }) => {
26
28
  reporters: ['basic', 'junit', 'vitest-sonar-reporter'],
27
29
  outputFile: {
28
30
  'vitest-sonar-reporter': 'sonar-report.xml',
29
- 'junit': 'junit-report.xml',
31
+ junit: 'junit-report.xml',
30
32
  },
31
33
  include: ['src/**/*.(spec|test|steps).[jt]s?(x)'],
32
34
  poolOptions: {
@@ -36,6 +38,7 @@ export default defineConfig(({ mode }) => {
36
38
  },
37
39
  },
38
40
  coverage: {
41
+ enabled: env.CI,
39
42
  reporter: ['lcov', 'json', 'html', 'text', 'cobertura'],
40
43
  provider: 'v8',
41
44
  lines: 80,