@elliemae/pui-cli 5.25.3 → 5.27.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.
@@ -58,6 +58,7 @@ const jestConfig = {
58
58
  coverageReporters: ['lcov', 'html', 'text-summary'],
59
59
  moduleDirectories: ['node_modules', 'app', 'lib'],
60
60
  moduleNameMapper: {
61
+ '.*\\webpack-hmr(.[t|j]s)?$': `${getRootDir()}/lib/testing/mocks/webpack-hmr.js`,
61
62
  '.*\\.(css|scss)$': `${getRootDir()}/lib/testing/mocks/cssModule.js`,
62
63
  '.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$': `${getRootDir()}/lib/testing/mocks/image.js`,
63
64
  '.*\\.svg$': `${getRootDir()}/lib/testing/mocks/svg.js`,
@@ -0,0 +1 @@
1
+ exports.enableHotReloading = () => {};
@@ -193,7 +193,7 @@ const getCompressionPlugins = (isLibrary = false) => {
193
193
  /\/emuiUserMonitoring/,
194
194
  /\/emuiDiagnostics/,
195
195
  /\/emuiAppLoader/,
196
- /\/encwLoader/,
196
+ /\/emuiEncwLoader/,
197
197
  ];
198
198
  const commonConfig = {
199
199
  test: /\.(js|css)$/,
@@ -6,6 +6,7 @@ const TerserPlugin = require('terser-webpack-plugin');
6
6
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
7
7
  const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
8
8
  const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
9
+ const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');
9
10
 
10
11
  const baseConfigFactory = require('./webpack.base.babel');
11
12
  const {
@@ -70,10 +71,10 @@ const getProdConfig = ({ latestVersion = true } = {}) => {
70
71
  },
71
72
 
72
73
  plugins: [
73
- new MiniCssExtractPlugin({
74
- filename: 'css/[name].[contenthash].css',
75
- chunkFilename: 'css/[name].[contenthash].chunk.css',
76
- }),
74
+ // new MiniCssExtractPlugin({
75
+ // filename: 'css/[name].[contenthash].css',
76
+ // chunkFilename: 'css/[name].[contenthash].chunk.css',
77
+ // }),
77
78
 
78
79
  ...getCompressionPlugins(),
79
80
 
@@ -149,6 +150,22 @@ const appVersionConfig = baseConfigFactory(
149
150
  getProdConfig({ latestVersion: false }),
150
151
  );
151
152
 
152
- module.exports = isVersionedApp
153
- ? [latestVersionConfig, appVersionConfig]
154
- : latestVersionConfig;
153
+ const addSMPPlugin = (config) => {
154
+ const smpConfig = new SpeedMeasurePlugin({
155
+ disable: !process.env.MEASURE,
156
+ }).wrap(config);
157
+ // mini css extract plugin is not working fine with smp
158
+ smpConfig.plugins.push(
159
+ new MiniCssExtractPlugin({
160
+ filename: 'css/[name].[contenthash].css',
161
+ chunkFilename: 'css/[name].[contenthash].chunk.css',
162
+ }),
163
+ );
164
+ return smpConfig;
165
+ };
166
+
167
+ const config = isVersionedApp
168
+ ? [latestVersionConfig, appVersionConfig].map(addSMPPlugin)
169
+ : addSMPPlugin(latestVersionConfig);
170
+
171
+ module.exports = config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "5.25.3",
3
+ "version": "5.27.0",
4
4
  "private": false,
5
5
  "description": "EllieMae Platform UI CLI",
6
6
  "sideEffects": false,
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@babel/cli": "~7.16.8",
51
- "@babel/core": "~7.16.7",
51
+ "@babel/core": "~7.16.12",
52
52
  "@babel/eslint-parser": "~7.16.5",
53
53
  "@babel/node": "~7.16.8",
54
54
  "@babel/plugin-proposal-class-properties": "~7.16.7",
@@ -58,12 +58,12 @@
58
58
  "@babel/plugin-transform-react-constant-elements": "~7.16.7",
59
59
  "@babel/plugin-transform-react-inline-elements": "~7.16.7",
60
60
  "@babel/plugin-transform-react-jsx-source": "~7.16.7",
61
- "@babel/plugin-transform-runtime": "~7.16.8",
62
- "@babel/preset-env": "~7.16.8",
61
+ "@babel/plugin-transform-runtime": "~7.16.10",
62
+ "@babel/preset-env": "~7.16.11",
63
63
  "@babel/preset-react": "~7.16.7",
64
64
  "@babel/preset-typescript": "~7.16.7",
65
65
  "@babel/runtime": "~7.16.7",
66
- "@commitlint/cli": "~16.0.2",
66
+ "@commitlint/cli": "~16.1.0",
67
67
  "@commitlint/config-conventional": "~16.0.0",
68
68
  "@elliemae/browserslist-config-elliemae": "~1.2.1",
69
69
  "@pmmmwh/react-refresh-webpack-plugin": "~0.5.4",
@@ -88,18 +88,18 @@
88
88
  "@storybook/react": "~6.3.13",
89
89
  "@storybook/theming": "~6.3.13",
90
90
  "@stylelint/postcss-css-in-js": "~0.37.2",
91
- "@svgr/webpack": "~6.2.0",
91
+ "@svgr/webpack": "~6.2.1",
92
92
  "@testing-library/jest-dom": "~5.16.1",
93
93
  "@testing-library/react": "~12.1.2",
94
94
  "@testing-library/react-hooks": "~7.0.2",
95
95
  "@types/jest": "~27.4.0",
96
- "@types/node": "~17.0.8",
96
+ "@types/node": "~17.0.13",
97
97
  "@types/rimraf": "~3.0.2",
98
98
  "@types/testing-library__jest-dom": "~5.14.2",
99
- "@typescript-eslint/eslint-plugin": "~5.9.1",
100
- "@typescript-eslint/parser": "~5.9.1",
99
+ "@typescript-eslint/eslint-plugin": "~5.10.2",
100
+ "@typescript-eslint/parser": "~5.10.2",
101
101
  "autoprefixer": "~10.4.2",
102
- "axe-core": "~4.3.5",
102
+ "axe-core": "~4.4.0",
103
103
  "babel-loader": "~8.2.3",
104
104
  "babel-plugin-add-import-extension": "1.5.1",
105
105
  "babel-plugin-date-fns": "~2.0.0",
@@ -122,18 +122,18 @@
122
122
  "compare-versions": "~4.1.3",
123
123
  "compression": "~1.7.4",
124
124
  "compression-webpack-plugin": "~9.2.0",
125
- "copy-webpack-plugin": "~10.2.0",
125
+ "copy-webpack-plugin": "~10.2.4",
126
126
  "cors": "~2.8.5",
127
127
  "cross-env": "~7.0.3",
128
128
  "css-loader": "~6.5.1",
129
- "css-minimizer-webpack-plugin": "~3.3.1",
129
+ "css-minimizer-webpack-plugin": "~3.4.1",
130
130
  "depcheck": "~1.4.3",
131
131
  "docdash": "~1.2.0",
132
- "dotenv": "~11.0.0",
133
- "dotenv-webpack": "~7.0.3",
132
+ "dotenv": "~12.0.4",
133
+ "dotenv-webpack": "~7.1.0",
134
134
  "duplicate-package-checker-webpack-plugin": "~3.0.0",
135
135
  "enhanced-resolve": "~5.8.3",
136
- "eslint": "~8.6.0",
136
+ "eslint": "~8.8.0",
137
137
  "eslint-config-airbnb": "~18.2.1",
138
138
  "eslint-config-airbnb-base": "~15.0.0",
139
139
  "eslint-config-airbnb-typescript": "~15.0.0",
@@ -145,15 +145,15 @@
145
145
  "eslint-plugin-compat": "~3.13.0",
146
146
  "eslint-plugin-eslint-comments": "~3.2.0",
147
147
  "eslint-plugin-import": "~2.25.4",
148
- "eslint-plugin-jest": "~25.3.4",
149
- "eslint-plugin-jsdoc": "~37.6.1",
148
+ "eslint-plugin-jest": "~25.7.0",
149
+ "eslint-plugin-jsdoc": "~37.7.0",
150
150
  "eslint-plugin-jsx-a11y": "~6.5.1",
151
151
  "eslint-plugin-mdx": "~1.16.0",
152
152
  "eslint-plugin-prettier": "~4.0.0",
153
153
  "eslint-plugin-react": "~7.28.0",
154
154
  "eslint-plugin-react-hooks": "~4.3.0",
155
155
  "eslint-plugin-redux-saga": "~1.3.2",
156
- "eslint-plugin-testing-library": "~5.0.3",
156
+ "eslint-plugin-testing-library": "~5.0.4",
157
157
  "eslint-plugin-wdio": "~7.4.2",
158
158
  "execa": "~5.1.1",
159
159
  "express": "~4.17.2",
@@ -174,20 +174,20 @@
174
174
  "jest-sonar-reporter": "~2.0.0",
175
175
  "jest-styled-components": "~7.0.8",
176
176
  "jscodeshift": "~0.13.1",
177
- "jsdoc": "~3.6.7",
178
- "lint-staged": "~12.1.7",
179
- "mini-css-extract-plugin": "~2.4.6",
177
+ "jsdoc": "~3.6.10",
178
+ "lint-staged": "~12.3.2",
179
+ "mini-css-extract-plugin": "~2.5.3",
180
180
  "minimist": "~1.2.5",
181
181
  "moment": "~2.29.1",
182
182
  "moment-locales-webpack-plugin": "~1.2.0",
183
- "msw": "~0.36.4",
183
+ "msw": "~0.36.8",
184
184
  "node-gyp": "~8.4.1",
185
185
  "node-plop": "~0.30.0",
186
186
  "nodemon": "~2.0.15",
187
- "npm-check-updates": "12.1.0",
187
+ "npm-check-updates": "12.2.1",
188
188
  "null-loader": "~4.0.1",
189
- "pino": "~7.6.3",
190
- "pino-pretty": "~7.3.0",
189
+ "pino": "~7.6.5",
190
+ "pino-pretty": "~7.5.1",
191
191
  "pinst": "~2.1.6",
192
192
  "plop": "~3.0.5",
193
193
  "postcss": "~8.4.5",
@@ -196,7 +196,7 @@
196
196
  "postcss-markdown": "~1.2.0",
197
197
  "postcss-syntax": "~0.36.2",
198
198
  "postcss-loader": "~6.2.1",
199
- "postcss-preset-env": "~7.2.3",
199
+ "postcss-preset-env": "~7.3.0",
200
200
  "prettier": "~2.5.1",
201
201
  "pug": "~3.0.2",
202
202
  "pug-loader": "~2.4.0",
@@ -206,16 +206,17 @@
206
206
  "react-docgen": "~5.4.0",
207
207
  "react-refresh": "~0.11.0",
208
208
  "react-test-renderer": "~17.0.2",
209
- "resolve-typescript-plugin": "~1.1.1",
209
+ "resolve-typescript-plugin": "~1.1.4",
210
210
  "resize-observer-polyfill": "~1.5.1",
211
211
  "rimraf": "~3.0.2",
212
212
  "script-loader": "~0.7.2",
213
- "semantic-release": "~18.0.1",
213
+ "semantic-release": "~19.0.2",
214
214
  "shelljs": "~0.8.5",
215
215
  "slackify-markdown": "~4.3.1",
216
+ "speed-measure-webpack-plugin": "~1.5.0",
216
217
  "storybook-react-router": "~1.0.8",
217
218
  "style-loader": "~3.3.1",
218
- "stylelint": "~14.2.0",
219
+ "stylelint": "~14.3.0",
219
220
  "stylelint-config-recommended": "~6.0.0",
220
221
  "stylelint-config-styled-components": "~0.1.1",
221
222
  "stylelint-custom-processor-loader": "~0.6.0",
@@ -228,14 +229,14 @@
228
229
  "tsc-files": "~1.1.3",
229
230
  "tsconfig-paths": "~3.12.0",
230
231
  "tsconfig-paths-webpack-plugin": "~3.5.2",
231
- "type-fest": "~2.9.0",
232
- "typescript": "~4.5.4",
232
+ "type-fest": "~2.11.1",
233
+ "typescript": "~4.5.5",
233
234
  "update-notifier": "~5.1.0",
234
235
  "url-loader": "~4.1.1",
235
236
  "uuid": "~8.3.2",
236
- "webpack": "~5.66.0",
237
+ "webpack": "~5.65.0",
237
238
  "webpack-bundle-analyzer": "~4.5.0",
238
- "webpack-cli": "~4.9.1",
239
+ "webpack-cli": "~4.9.2",
239
240
  "webpack-dev-middleware": "~5.3.0",
240
241
  "webpack-hot-middleware": "~2.25.1",
241
242
  "webpack-manifest-plugin": "~4.1.1",