@elliemae/pui-cli 6.0.0-beta.48 → 6.0.0-beta.51

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) => ({
@@ -124,24 +125,7 @@ module.exports = (options) => ({
124
125
  module: {
125
126
  rules: [
126
127
  {
127
- test: /\.[jt]sx?$/,
128
- enforce: 'pre',
129
- exclude: /node_modules/,
130
- resolve: {
131
- fullySpecified: false,
132
- },
133
- use: [
134
- {
135
- loader: 'webpack-strip-block',
136
- options: {
137
- start: 'TEST:START',
138
- end: 'TEST:END',
139
- },
140
- },
141
- ],
142
- },
143
- {
144
- test: /\.[j]sx?$/,
128
+ test: /\.jsx?$/,
145
129
  exclude: excludeNodeModulesExcept(modulesToTranspile),
146
130
  resolve: {
147
131
  fullySpecified: false,
@@ -155,7 +139,7 @@ module.exports = (options) => ({
155
139
  },
156
140
  },
157
141
  {
158
- test: /\.[t]sx?$/,
142
+ test: /\.tsx?$/,
159
143
  exclude: excludeNodeModulesExcept(modulesToTranspile),
160
144
  resolve: {
161
145
  fullySpecified: false,
@@ -170,6 +154,9 @@ module.exports = (options) => ({
170
154
  },
171
155
  {
172
156
  test: /\.css$/,
157
+ exclude: excludeNodeModulesExcept(
158
+ modulesToTranspile.concat(['sanitize.css']),
159
+ ),
173
160
  use: [
174
161
  finalCSSLoader(options.mode),
175
162
  {
@@ -179,13 +166,6 @@ module.exports = (options) => ({
179
166
  sourceMap: true,
180
167
  },
181
168
  },
182
- {
183
- loader: 'esbuild-loader',
184
- options: {
185
- loader: 'css',
186
- minify: options.mode === 'production',
187
- },
188
- },
189
169
  {
190
170
  loader: 'postcss-loader',
191
171
  options: {
@@ -199,27 +179,30 @@ module.exports = (options) => ({
199
179
  },
200
180
  {
201
181
  test: /\.(woff|woff2)$/,
202
- exclude: excludeNodeModulesExcept(['@elliemae/*']),
203
182
  type: 'asset/resource',
183
+ exclude: excludeNodeModulesExcept(modulesToTranspile),
204
184
  },
205
185
  {
206
186
  test: /\.svg$/i,
207
187
  issuer: /\.[jt]sx?$/,
208
188
  resourceQuery: /^((?!url).)*$/,
189
+ exclude: excludeNodeModulesExcept(modulesToTranspile),
209
190
  use: ['@svgr/webpack'],
210
191
  },
211
192
  {
212
193
  test: /\.(jpe?g|png|gif|ico|mp4|webm)$/i,
213
- exclude: excludeNodeModulesExcept(['@elliemae/*']),
194
+ exclude: excludeNodeModulesExcept(modulesToTranspile),
214
195
  type: 'asset',
215
196
  },
216
197
  {
217
198
  resourceQuery: /resource/,
218
199
  type: 'asset/resource',
200
+ exclude: excludeNodeModulesExcept(modulesToTranspile),
219
201
  },
220
202
  {
221
203
  type: 'asset',
222
204
  resourceQuery: /url/,
205
+ exclude: excludeNodeModulesExcept(modulesToTranspile),
223
206
  },
224
207
  ],
225
208
  },
@@ -239,6 +222,5 @@ module.exports = (options) => ({
239
222
  '@elliemae/pui-diagnostics': 'emuiDiagnostics',
240
223
  },
241
224
  devtool: options.devtool || 'eval-source-map',
242
- target: 'web',
243
225
  performance: options.performance || {},
244
226
  });
@@ -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) => ({
@@ -72,23 +74,6 @@ module.exports = (options) => ({
72
74
  optimization: options.optimization,
73
75
  module: {
74
76
  rules: [
75
- {
76
- test: /^(?!.*\.exec\.js$).*\.[jt]sx?$/,
77
- enforce: 'pre',
78
- exclude: /node_modules/,
79
- resolve: {
80
- fullySpecified: false,
81
- },
82
- use: [
83
- {
84
- loader: 'webpack-strip-block',
85
- options: {
86
- start: 'TEST:START',
87
- end: 'TEST:END',
88
- },
89
- },
90
- ],
91
- },
92
77
  {
93
78
  test: /^(?!.*\.exec\.js$).*\.jsx?$/, // Transform all .js and .jsx files with Babel
94
79
  exclude: excludeNodeModulesExcept(modulesToTranspile),
@@ -215,6 +200,5 @@ module.exports = (options) => ({
215
200
  '@elliemae/pui-diagnostics': 'emuiDiagnostics',
216
201
  },
217
202
  devtool: options.devtool || 'eval-source-map',
218
- target: 'web', // Make web variables accessible to webpack, e.g. window
219
203
  performance: options.performance || {},
220
204
  });
@@ -45,23 +45,6 @@ const getAdditionalPlugins = () => [
45
45
  ];
46
46
 
47
47
  const getModuleRules = () => [
48
- {
49
- test: /\.[jt]sx?$/,
50
- enforce: 'pre',
51
- exclude: /node_modules/,
52
- resolve: {
53
- fullySpecified: false,
54
- },
55
- use: [
56
- {
57
- loader: 'webpack-strip-block',
58
- options: {
59
- start: 'TEST:START',
60
- end: 'TEST:END',
61
- },
62
- },
63
- ],
64
- },
65
48
  {
66
49
  type: 'asset',
67
50
  resourceQuery: /url/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "6.0.0-beta.48",
3
+ "version": "6.0.0-beta.51",
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.129",
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.8",
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.9.1",
96
- "@typescript-eslint/parser": "~5.9.1",
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.4.7",
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.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.17",
245
- "webpack": "~5.66.0",
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",