@elliemae/pui-cli 6.0.0-beta.49 → 6.0.0-beta.52
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.
|
@@ -59,6 +59,7 @@ const jestConfig = {
|
|
|
59
59
|
coverageReporters: ['lcov', 'html', 'text-summary'],
|
|
60
60
|
moduleDirectories: ['node_modules', 'app', 'lib'],
|
|
61
61
|
moduleNameMapper: {
|
|
62
|
+
'.*\\webpack-hmr(.[t|j]s)?$': `${getRootDir()}/lib/testing/mocks/webpack-hmr.js`,
|
|
62
63
|
'.*\\.(css|scss)$': `${getRootDir()}/lib/testing/mocks/cssModule.js`,
|
|
63
64
|
'.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': `${getRootDir()}/lib/testing/mocks/image.js`,
|
|
64
65
|
'.*\\.svg$': `${getRootDir()}/lib/testing/mocks/svg.js`,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
exports.enableHotReloading = () => {};
|
|
@@ -7,7 +7,7 @@ const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack
|
|
|
7
7
|
const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
|
|
8
8
|
const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
|
|
9
9
|
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
|
|
10
|
-
const { ProvidePlugin } = require('webpack');
|
|
10
|
+
const { ProvidePlugin, ProgressPlugin } = require('webpack');
|
|
11
11
|
const browserslistToEsbuild = require('browserslist-to-esbuild');
|
|
12
12
|
|
|
13
13
|
const {
|
|
@@ -109,6 +109,7 @@ const plugins = [
|
|
|
109
109
|
},
|
|
110
110
|
},
|
|
111
111
|
}),
|
|
112
|
+
new ProgressPlugin(),
|
|
112
113
|
];
|
|
113
114
|
|
|
114
115
|
module.exports = (options) => ({
|
|
@@ -153,6 +154,9 @@ module.exports = (options) => ({
|
|
|
153
154
|
},
|
|
154
155
|
{
|
|
155
156
|
test: /\.css$/,
|
|
157
|
+
exclude: excludeNodeModulesExcept(
|
|
158
|
+
modulesToTranspile.concat(['sanitize.css']),
|
|
159
|
+
),
|
|
156
160
|
use: [
|
|
157
161
|
finalCSSLoader(options.mode),
|
|
158
162
|
{
|
|
@@ -162,13 +166,6 @@ module.exports = (options) => ({
|
|
|
162
166
|
sourceMap: true,
|
|
163
167
|
},
|
|
164
168
|
},
|
|
165
|
-
{
|
|
166
|
-
loader: 'esbuild-loader',
|
|
167
|
-
options: {
|
|
168
|
-
loader: 'css',
|
|
169
|
-
minify: options.mode === 'production',
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
169
|
{
|
|
173
170
|
loader: 'postcss-loader',
|
|
174
171
|
options: {
|
|
@@ -182,27 +179,30 @@ module.exports = (options) => ({
|
|
|
182
179
|
},
|
|
183
180
|
{
|
|
184
181
|
test: /\.(woff|woff2)$/,
|
|
185
|
-
exclude: excludeNodeModulesExcept(['@elliemae/*']),
|
|
186
182
|
type: 'asset/resource',
|
|
183
|
+
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
187
184
|
},
|
|
188
185
|
{
|
|
189
186
|
test: /\.svg$/i,
|
|
190
187
|
issuer: /\.[jt]sx?$/,
|
|
191
188
|
resourceQuery: /^((?!url).)*$/,
|
|
189
|
+
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
192
190
|
use: ['@svgr/webpack'],
|
|
193
191
|
},
|
|
194
192
|
{
|
|
195
193
|
test: /\.(jpe?g|png|gif|ico|mp4|webm)$/i,
|
|
196
|
-
exclude: excludeNodeModulesExcept(
|
|
194
|
+
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
197
195
|
type: 'asset',
|
|
198
196
|
},
|
|
199
197
|
{
|
|
200
198
|
resourceQuery: /resource/,
|
|
201
199
|
type: 'asset/resource',
|
|
200
|
+
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
202
201
|
},
|
|
203
202
|
{
|
|
204
203
|
type: 'asset',
|
|
205
204
|
resourceQuery: /url/,
|
|
205
|
+
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
206
206
|
},
|
|
207
207
|
],
|
|
208
208
|
},
|
|
@@ -222,6 +222,5 @@ module.exports = (options) => ({
|
|
|
222
222
|
'@elliemae/pui-diagnostics': 'emuiDiagnostics',
|
|
223
223
|
},
|
|
224
224
|
devtool: options.devtool || 'eval-source-map',
|
|
225
|
-
target: 'web',
|
|
226
225
|
performance: options.performance || {},
|
|
227
226
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
|
-
const
|
|
2
|
+
const { HotModuleReplacementPlugin } = require('webpack');
|
|
3
3
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
4
4
|
const CircularDependencyPlugin = require('circular-dependency-plugin');
|
|
5
5
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
@@ -75,13 +75,6 @@ const devConfig = {
|
|
|
75
75
|
|
|
76
76
|
// Add development plugins
|
|
77
77
|
plugins: [
|
|
78
|
-
new webpack.ProgressPlugin(),
|
|
79
|
-
new webpack.HotModuleReplacementPlugin(), // Tell webpack we want hot reloading
|
|
80
|
-
new ReactRefreshWebpackPlugin({
|
|
81
|
-
overlay: {
|
|
82
|
-
sockIntegration: 'whm',
|
|
83
|
-
},
|
|
84
|
-
}),
|
|
85
78
|
new HtmlWebpackPlugin({
|
|
86
79
|
scriptLoading: 'module',
|
|
87
80
|
inject: !isAppLoaderEnabled(), // Inject all files that are generated by webpack, e.g. bundle.js
|
|
@@ -117,4 +110,14 @@ const devConfig = {
|
|
|
117
110
|
},
|
|
118
111
|
};
|
|
119
112
|
|
|
120
|
-
|
|
113
|
+
const config = smp.wrap(baseConfigFactory(devConfig));
|
|
114
|
+
config.plugins = config.plugins.concat([
|
|
115
|
+
new HotModuleReplacementPlugin(),
|
|
116
|
+
new ReactRefreshWebpackPlugin({
|
|
117
|
+
overlay: {
|
|
118
|
+
sockIntegration: 'whm',
|
|
119
|
+
},
|
|
120
|
+
}),
|
|
121
|
+
]);
|
|
122
|
+
|
|
123
|
+
module.exports = config;
|
|
@@ -3,6 +3,7 @@ const path = require('path');
|
|
|
3
3
|
const webpack = require('webpack');
|
|
4
4
|
const {
|
|
5
5
|
optimize: { LimitChunkCountPlugin },
|
|
6
|
+
ProgressPlugin,
|
|
6
7
|
} = require('webpack');
|
|
7
8
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
8
9
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
@@ -56,6 +57,7 @@ const plugins = [
|
|
|
56
57
|
maxChunks: 1,
|
|
57
58
|
}),
|
|
58
59
|
new MomentLocalesPlugin({ localesToKeep: ['es-us'] }),
|
|
60
|
+
new ProgressPlugin(),
|
|
59
61
|
];
|
|
60
62
|
|
|
61
63
|
module.exports = (options) => ({
|
|
@@ -198,6 +200,5 @@ module.exports = (options) => ({
|
|
|
198
200
|
'@elliemae/pui-diagnostics': 'emuiDiagnostics',
|
|
199
201
|
},
|
|
200
202
|
devtool: options.devtool || 'eval-source-map',
|
|
201
|
-
target: 'web', // Make web variables accessible to webpack, e.g. window
|
|
202
203
|
performance: options.performance || {},
|
|
203
204
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.52",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "ICE MT UI Platform CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -83,17 +83,17 @@
|
|
|
83
83
|
"@stylelint/postcss-css-in-js": "~0.37.2",
|
|
84
84
|
"@svgr/webpack": "~6.2.0",
|
|
85
85
|
"@swc/cli": "~0.1.55",
|
|
86
|
-
"@swc/core": "~1.2.
|
|
86
|
+
"@swc/core": "~1.2.130",
|
|
87
87
|
"@swc/jest": "~0.2.17",
|
|
88
88
|
"@testing-library/jest-dom": "~5.16.1",
|
|
89
89
|
"@testing-library/react": "~12.1.2",
|
|
90
90
|
"@testing-library/react-hooks": "~7.0.2",
|
|
91
91
|
"@types/jest": "~27.4.0",
|
|
92
|
-
"@types/node": "~17.0.
|
|
92
|
+
"@types/node": "~17.0.9",
|
|
93
93
|
"@types/rimraf": "~3.0.2",
|
|
94
94
|
"@types/testing-library__jest-dom": "~5.14.2",
|
|
95
|
-
"@typescript-eslint/eslint-plugin": "~5.
|
|
96
|
-
"@typescript-eslint/parser": "~5.
|
|
95
|
+
"@typescript-eslint/eslint-plugin": "~5.10.0",
|
|
96
|
+
"@typescript-eslint/parser": "~5.10.0",
|
|
97
97
|
"autoprefixer": "~10.4.2",
|
|
98
98
|
"axe-core": "~4.3.5",
|
|
99
99
|
"babel-loader": "~8.2.3",
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
"jscodeshift": "~0.13.1",
|
|
182
182
|
"jsdoc": "~3.6.7",
|
|
183
183
|
"lint-staged": "~12.1.7",
|
|
184
|
-
"mini-css-extract-plugin": "~2.
|
|
184
|
+
"mini-css-extract-plugin": "~2.5.2",
|
|
185
185
|
"minimist": "~1.2.5",
|
|
186
186
|
"moment": "~2.29.1",
|
|
187
187
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"react-refresh": "~0.11.0",
|
|
213
213
|
"react-test-renderer": "~17.0.2",
|
|
214
214
|
"resize-observer-polyfill": "~1.5.1",
|
|
215
|
-
"resolve-typescript-plugin": "~1.1.
|
|
215
|
+
"resolve-typescript-plugin": "~1.1.4",
|
|
216
216
|
"rimraf": "~3.0.2",
|
|
217
217
|
"script-loader": "~0.7.2",
|
|
218
218
|
"semantic-release": "~18.0.1",
|
|
@@ -241,8 +241,8 @@
|
|
|
241
241
|
"url-loader": "~4.1.1",
|
|
242
242
|
"uuid": "~8.3.2",
|
|
243
243
|
"vite": "~2.7.12",
|
|
244
|
-
"vitest": "~0.1.
|
|
245
|
-
"webpack": "~5.
|
|
244
|
+
"vitest": "~0.1.19",
|
|
245
|
+
"webpack": "~5.65.0",
|
|
246
246
|
"webpack-bundle-analyzer": "~4.5.0",
|
|
247
247
|
"webpack-cli": "~4.9.1",
|
|
248
248
|
"webpack-dev-middleware": "~5.3.0",
|