@lipemat/js-boilerplate 10.14.0 → 10.14.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/config/babel.config.js
CHANGED
package/config/babel.config.ts
CHANGED
package/config/webpack.dev.js
CHANGED
|
@@ -14,8 +14,6 @@ const postcssOptions = (0, config_1.getConfig)('postcss.config');
|
|
|
14
14
|
const babelOptions = (0, config_1.getConfig)('babel.config');
|
|
15
15
|
const cssLoaderOptions = (0, config_1.getConfig)('css-loader.config');
|
|
16
16
|
const devServerOptions = (0, config_1.getConfig)('dev-server.config');
|
|
17
|
-
// To allow line numbers to show up in console errors. @see React Error Boundaries.
|
|
18
|
-
babelOptions.plugins?.unshift('@babel/plugin-transform-react-jsx-source');
|
|
19
17
|
// To support React Fast Refresh.
|
|
20
18
|
babelOptions.plugins?.unshift('react-refresh/babel');
|
|
21
19
|
const plugins = [
|
package/config/webpack.dev.ts
CHANGED
|
@@ -13,8 +13,6 @@ const babelOptions: BabelConfig = getConfig( 'babel.config' );
|
|
|
13
13
|
const cssLoaderOptions = getConfig( 'css-loader.config' );
|
|
14
14
|
const devServerOptions = getConfig( 'dev-server.config' );
|
|
15
15
|
|
|
16
|
-
// To allow line numbers to show up in console errors. @see React Error Boundaries.
|
|
17
|
-
babelOptions.plugins?.unshift( '@babel/plugin-transform-react-jsx-source' );
|
|
18
16
|
// To support React Fast Refresh.
|
|
19
17
|
babelOptions.plugins?.unshift( 'react-refresh/babel' );
|
|
20
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {getPackageConfig} from './package-config';
|
|
2
2
|
import type {GetLocalIdent} from '../types/css-loader';
|
|
3
|
-
import {AtLeast} from '../types/utility';
|
|
3
|
+
import type {AtLeast} from '../types/utility';
|
|
4
4
|
|
|
5
5
|
export const SHORT_ALPHABET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
6
6
|
export const ALPHABET = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lipemat/js-boilerplate",
|
|
3
|
-
"version": "10.14.
|
|
3
|
+
"version": "10.14.2",
|
|
4
4
|
"description": "Dependencies and scripts for a no config JavaScript app",
|
|
5
5
|
"author": "Mat Lipe",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,13 +43,11 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@babel/core": "^7.24.7",
|
|
46
|
-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
47
|
-
"@babel/plugin-transform-react-jsx-source": "^7.24.7",
|
|
48
46
|
"@babel/preset-env": "^7.24.7",
|
|
49
47
|
"@babel/preset-react": "^7.24.7",
|
|
50
48
|
"@babel/preset-typescript": "^7.24.7",
|
|
51
49
|
"@csstools/postcss-global-data": "2.0.0",
|
|
52
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.
|
|
50
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.1",
|
|
53
51
|
"@statoscope/webpack-plugin": "^5.29.0",
|
|
54
52
|
"@types/babel__preset-env": "^7.9.6",
|
|
55
53
|
"@types/clean-css": "^4.2.11",
|
|
@@ -84,7 +82,7 @@
|
|
|
84
82
|
"postcss-preset-env": "^7.8.3",
|
|
85
83
|
"postcss-scss": "^4.0.4",
|
|
86
84
|
"postcss-sort-media-queries": "^5.2.0",
|
|
87
|
-
"react-refresh": "^0.
|
|
85
|
+
"react-refresh": "^0.17.0",
|
|
88
86
|
"style-loader": "^3.3.1",
|
|
89
87
|
"ts-node": "^10.9.1",
|
|
90
88
|
"typescript": "^5.9.2",
|
|
@@ -98,10 +96,12 @@
|
|
|
98
96
|
"@lipemat/eslint-config": "^4.0.4",
|
|
99
97
|
"@types/jest": "^29.5.3",
|
|
100
98
|
"@types/minimist": "^1",
|
|
99
|
+
"@types/react": "^18.2.64",
|
|
101
100
|
"chokidar": "^3.5.3",
|
|
102
101
|
"eslint": "^9",
|
|
103
102
|
"glob": "^10.3.3",
|
|
104
103
|
"memfs": "^3.5.3",
|
|
104
|
+
"react": "^18.2.0",
|
|
105
105
|
"setimmediate": "^1.0.5"
|
|
106
106
|
},
|
|
107
107
|
"resolutions": {
|
|
@@ -31,11 +31,7 @@ async function validate() {
|
|
|
31
31
|
if ( rule.test?.toString() === /\.pcss$/.toString() ) {
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
rule.use?.splice( 1, 0, {
|
|
34
|
-
loader: '
|
|
35
|
-
options: {
|
|
36
|
-
disableLocalsExport: true,
|
|
37
|
-
prettierConfigFile: path.resolve( __dirname, '../helpers/.prettierrc.json' ),
|
|
38
|
-
},
|
|
34
|
+
loader: path.resolve( __dirname, '../lib/css-module-types.ts' ),
|
|
39
35
|
} )
|
|
40
36
|
}
|
|
41
37
|
return rule;
|