create-application-template 2.5.2 → 3.0.1

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/.babelrc CHANGED
@@ -14,11 +14,14 @@
14
14
  "@babel/plugin-transform-runtime",
15
15
  {
16
16
  "regenerator": true
17
- },
18
- "react-refresh/babel"
19
- ]
17
+ }
18
+ ],
19
+ "babel-plugin-react-compiler"
20
20
  ],
21
21
  "env": {
22
+ "development": {
23
+ "plugins": ["react-refresh/babel"]
24
+ },
22
25
  "test": {
23
26
  // to mock webpack's require.context in jest
24
27
  "plugins": ["transform-require-context"]
package/.eslintrc.js CHANGED
@@ -212,6 +212,10 @@ module.exports = {
212
212
  },
213
213
  ],
214
214
  'jsx-quotes': ['error', 'prefer-single'],
215
+ 'comma-spacing': ['error', {
216
+ before: false,
217
+ after: true,
218
+ }],
215
219
 
216
220
  // 📜 import
217
221
  'import/first': 'error',
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  # Create Application Template
6
6
  This project aims to provide a configured application template for you to build upon.
7
7
 
8
- All configuration is fully visable and under your control to augment as you see fit.
8
+ All configuration is fully visible and under your control to augment as you see fit.
9
9
 
10
10
  The template is a typescript enabled React application with a test suite and code linting.
11
11
 
@@ -26,12 +26,12 @@ then create your project
26
26
  npx create-application-template --name={my-project}
27
27
  ```
28
28
 
29
- ## new on BETA version 🚀
30
- beta upgrades to React 19 with [React Compiler](https://react.dev/learn/react-compiler/introduction) opt-in
29
+ ## newest features 🚀
30
+ React 19 with [React Compiler](https://react.dev/learn/react-compiler/introduction) opt-in
31
31
 
32
32
  this version takes advantage of the React Compiler's automatic optimization
33
33
 
34
- it also includes the React Compiler's ESLint integretion
34
+ it also includes the React Compiler's ESLint integration
35
35
 
36
36
  ## usage
37
37
  webpack is used for code bundling and the development server
@@ -52,7 +52,7 @@ focused on type checking; babel is used for transpiling
52
52
  ## pre-commit
53
53
  scripts in `.husky/pre-commit` are run on commits for quality control
54
54
 
55
- add or remove scripts you'd like run before code is commited
55
+ add or remove scripts you'd like run before code is committed
56
56
 
57
57
  ## test suite
58
58
  to create a test follow this file naming format: `*.{spec,test}.{ts,tsx}`
@@ -63,12 +63,12 @@ npm run test
63
63
  ```
64
64
 
65
65
  ## code linting
66
- linting rules are in `.eslintrc.js`; install the ESLint pluggin if using vscode
66
+ linting rules are in `.eslintrc.js`; install the ESLint plugin if using vscode
67
67
  ```
68
68
  npm run lint
69
69
  ```
70
70
 
71
- css linting rules are in `.stylelintrc.js`; install the Stylelint pluggin if using vscode
71
+ css linting rules are in `.stylelintrc.js`; install the Stylelint plugin if using vscode
72
72
  ```
73
73
  npm run stylelint
74
74
  ```
@@ -83,7 +83,7 @@ if you proceed with styled-components:
83
83
  - that's it!
84
84
 
85
85
  if you prefer CSS:
86
- - alter `.stylintrc.js` and `.husky/pre-commit` per the files' notes
86
+ - alter `.stylelintrc.js` and `.husky/pre-commit` per the files' notes
87
87
  - remove `.ts` files from `/src/styles/` or "recreate" them in `.css`
88
88
 
89
89
  ## environmental settings
@@ -112,3 +112,18 @@ INLINE_SIZE_LIMIT={default is 10000}
112
112
  # optional
113
113
  INLINE_SIZE_LIMIT={default is 10000}
114
114
  ```
115
+
116
+ ## dependency overrides
117
+
118
+ this version includes minimal npm `overrides` to patch known transitive vulnerabilities in webpack tooling
119
+
120
+ they are intentionally limited to patch-level upgrades within the same major
121
+
122
+ you can remove them in the future by:
123
+
124
+ 1. running `npm update`
125
+ 2. removing the `overrides` section
126
+ 3. reinstalling dependencies
127
+ 4. running `npm audit`
128
+
129
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-application-template",
3
- "version": "2.5.2",
3
+ "version": "3.0.1",
4
4
  "description": "provides a configured application template for you to build upon",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -44,14 +44,20 @@
44
44
  "node": ">=20",
45
45
  "npm": ">=10"
46
46
  },
47
+ "overrides": {
48
+ "serialize-javascript": "7.0.3"
49
+ },
50
+ "templateMeta": {
51
+ "overridesNote": "overrides patch known transitive vulnerabilities in webpack tooling; safe within same major; remove once upstream ranges are updated."
52
+ },
47
53
  "dependencies": {
48
54
  "browserslist": "4.24.4",
49
55
  "concurrently": "9.1.2",
50
56
  "dotenv-flow": "4.1.0",
51
57
  "husky": "9.1.7",
52
58
  "polished": "4.3.1",
53
- "react": "18.3.1",
54
- "react-dom": "18.3.1",
59
+ "react": "19.1.1",
60
+ "react-dom": "19.1.1",
55
61
  "styled-components": "6.1.15",
56
62
  "yargs": "17.7.2"
57
63
  },
@@ -68,21 +74,22 @@
68
74
  "@testing-library/user-event": "14.6.1",
69
75
  "@types/jest": "30.0.0",
70
76
  "@types/node": "20.12.12",
71
- "@types/react": "18.3.2",
72
- "@types/react-dom": "18.3.0",
77
+ "@types/react": "19.1.13",
78
+ "@types/react-dom": "19.1.9",
73
79
  "@types/styled-components": "5.1.34",
74
80
  "@types/webpack-env": "1.18.8",
75
81
  "@typescript-eslint/eslint-plugin": "6.5.0",
76
82
  "@typescript-eslint/parser": "6.5.0",
77
83
  "babel-jest": "30.2.0",
78
84
  "babel-loader": "10.0.0",
85
+ "babel-plugin-react-compiler": "19.1.0-rc.3",
79
86
  "babel-plugin-styled-components": "2.1.4",
80
87
  "babel-plugin-transform-require-context": "0.1.1",
81
88
  "case-sensitive-paths-webpack-plugin": "2.4.0",
82
89
  "confusing-browser-globals": "1.0.11",
83
- "copy-webpack-plugin": "13.0.0",
90
+ "copy-webpack-plugin": "13.0.1",
84
91
  "css-loader": "7.1.2",
85
- "css-minimizer-webpack-plugin": "7.0.0",
92
+ "css-minimizer-webpack-plugin": "7.0.4",
86
93
  "dotenv-webpack": "8.1.0",
87
94
  "eslint": "8.57.1",
88
95
  "eslint-plugin-compat": "6.0.2",
@@ -90,7 +97,7 @@
90
97
  "eslint-plugin-import": "2.31.0",
91
98
  "eslint-plugin-jsx-a11y": "6.10.2",
92
99
  "eslint-plugin-react": "7.37.4",
93
- "eslint-plugin-react-hooks": "5.2.0",
100
+ "eslint-plugin-react-hooks": "6.0.0-rc.2",
94
101
  "html-webpack-plugin": "5.6.3",
95
102
  "identity-obj-proxy": "3.0.0",
96
103
  "jest": "30.2.0",
@@ -106,10 +113,10 @@
106
113
  "stylelint-config-recess-order": "6.0.0",
107
114
  "stylelint-config-standard": "36.0.0",
108
115
  "stylelint-no-unsupported-browser-features": "8.0.4",
109
- "terser-webpack-plugin": "5.3.12",
116
+ "terser-webpack-plugin": "5.3.16",
110
117
  "ts-node": "10.9.2",
111
118
  "typescript": "5.8.2",
112
- "webpack": "5.98.0",
119
+ "webpack": "5.105.3",
113
120
  "webpack-cli": "6.0.1",
114
121
  "webpack-dev-server": "5.2.2",
115
122
  "webpack-manifest-plugin": "5.0.0",