@elliemae/pui-cli 6.0.0-beta.51 → 6.0.0-beta.55
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/lib/webpack/helpers.js
CHANGED
|
@@ -218,6 +218,12 @@ const getCompressionPlugins = (isLibrary = false) => {
|
|
|
218
218
|
];
|
|
219
219
|
};
|
|
220
220
|
|
|
221
|
+
const filterByFilePresence = (patterns) =>
|
|
222
|
+
patterns.filter(
|
|
223
|
+
({ from, noErrorOnMissing }) =>
|
|
224
|
+
!noErrorOnMissing || fs.existsSync(path.resolve(process.cwd(), from)),
|
|
225
|
+
);
|
|
226
|
+
|
|
221
227
|
exports.excludeNodeModulesExcept = excludeNodeModulesExcept;
|
|
222
228
|
exports.getLibraryName = getLibraryName;
|
|
223
229
|
exports.getAppConfig = getAppConfig;
|
|
@@ -243,3 +249,4 @@ exports.resolveExtensions = [
|
|
|
243
249
|
exports.mainFields = ['browser', 'module', 'main'];
|
|
244
250
|
exports.isGoogleTagManagerEnabled = isGoogleTagManagerEnabled;
|
|
245
251
|
exports.getCompressionPlugins = getCompressionPlugins;
|
|
252
|
+
exports.filterByFilePresence = filterByFilePresence;
|
|
@@ -16,6 +16,7 @@ const {
|
|
|
16
16
|
modulesToTranspile,
|
|
17
17
|
getAlias,
|
|
18
18
|
getPaths,
|
|
19
|
+
filterByFilePresence,
|
|
19
20
|
} = require('./helpers');
|
|
20
21
|
|
|
21
22
|
const minicssLoader = {
|
|
@@ -43,7 +44,7 @@ const plugins = [
|
|
|
43
44
|
React: 'react',
|
|
44
45
|
}),
|
|
45
46
|
new CopyWebpackPlugin({
|
|
46
|
-
patterns: [
|
|
47
|
+
patterns: filterByFilePresence([
|
|
47
48
|
{
|
|
48
49
|
from: 'app/app.config.json',
|
|
49
50
|
to: 'app.config.json',
|
|
@@ -87,13 +88,19 @@ const plugins = [
|
|
|
87
88
|
{
|
|
88
89
|
from: 'public',
|
|
89
90
|
noErrorOnMissing: true,
|
|
91
|
+
globOptions: {
|
|
92
|
+
ignore: ['readme.md'],
|
|
93
|
+
},
|
|
90
94
|
},
|
|
91
95
|
{
|
|
92
96
|
from: 'webroot',
|
|
93
97
|
to: '../',
|
|
94
98
|
noErrorOnMissing: true,
|
|
99
|
+
globOptions: {
|
|
100
|
+
ignore: ['readme.md'],
|
|
101
|
+
},
|
|
95
102
|
},
|
|
96
|
-
],
|
|
103
|
+
]),
|
|
97
104
|
}),
|
|
98
105
|
new DuplicatePackageCheckerPlugin(),
|
|
99
106
|
new MomentLocalesPlugin({ localesToKeep: ['es-us'] }),
|
|
@@ -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;
|
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.55",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "ICE MT UI Platform CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -89,7 +89,7 @@
|
|
|
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.10",
|
|
93
93
|
"@types/rimraf": "~3.0.2",
|
|
94
94
|
"@types/testing-library__jest-dom": "~5.14.2",
|
|
95
95
|
"@typescript-eslint/eslint-plugin": "~5.10.0",
|
|
@@ -112,18 +112,16 @@
|
|
|
112
112
|
"browserslist": "~4.19.1",
|
|
113
113
|
"browserslist-to-esbuild": "~1.1.1",
|
|
114
114
|
"bundlesize": "~0.18.1",
|
|
115
|
-
"
|
|
115
|
+
"canvas": "~2.9.0",
|
|
116
116
|
"chalk": "~4.1.2",
|
|
117
117
|
"circular-dependency-plugin": "~5.2.2",
|
|
118
|
-
"classnames": "~2.3.1",
|
|
119
|
-
"compare-versions": "~4.1.3",
|
|
120
118
|
"compression": "~1.7.4",
|
|
121
119
|
"compression-webpack-plugin": "~9.2.0",
|
|
122
120
|
"copy-webpack-plugin": "~10.2.0",
|
|
123
121
|
"cors": "~2.8.5",
|
|
124
122
|
"cross-env": "~7.0.3",
|
|
125
123
|
"css-loader": "~6.5.1",
|
|
126
|
-
"css-minimizer-webpack-plugin": "~3.
|
|
124
|
+
"css-minimizer-webpack-plugin": "~3.4.1",
|
|
127
125
|
"depcheck": "~1.4.3",
|
|
128
126
|
"docdash": "~1.2.0",
|
|
129
127
|
"dotenv": "~12.0.4",
|
|
@@ -131,7 +129,6 @@
|
|
|
131
129
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
132
130
|
"enhanced-resolve": "~5.8.3",
|
|
133
131
|
"esbuild": "~0.14.11",
|
|
134
|
-
"esbuild-jest": "~0.5.0",
|
|
135
132
|
"esbuild-loader": "~2.18.0",
|
|
136
133
|
"esbuild-plugin-svgr": "~1.0.0",
|
|
137
134
|
"eslint": "~8.7.0",
|
|
@@ -163,11 +160,8 @@
|
|
|
163
160
|
"express-static-gzip": "~2.1.1",
|
|
164
161
|
"favicons": "~6.2.2",
|
|
165
162
|
"favicons-webpack-plugin": "~5.0.2",
|
|
166
|
-
"
|
|
167
|
-
"fork-ts-checker-webpack-plugin": "~6.5.0",
|
|
168
|
-
"happy-dom": "~2.25.2",
|
|
163
|
+
"happy-dom": "~2.27.0",
|
|
169
164
|
"helmet-csp": "~3.4.0",
|
|
170
|
-
"html-loader": "~3.1.0",
|
|
171
165
|
"html-webpack-plugin": "~5.5.0",
|
|
172
166
|
"http-server": "~14.1.0",
|
|
173
167
|
"husky": "~7.0.4",
|
|
@@ -180,12 +174,12 @@
|
|
|
180
174
|
"jest-styled-components": "~7.0.8",
|
|
181
175
|
"jscodeshift": "~0.13.1",
|
|
182
176
|
"jsdoc": "~3.6.7",
|
|
183
|
-
"lint-staged": "~12.
|
|
177
|
+
"lint-staged": "~12.2.0",
|
|
184
178
|
"mini-css-extract-plugin": "~2.5.2",
|
|
185
179
|
"minimist": "~1.2.5",
|
|
186
180
|
"moment": "~2.29.1",
|
|
187
181
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
188
|
-
"msw": "~0.36.
|
|
182
|
+
"msw": "~0.36.5",
|
|
189
183
|
"node-gyp": "~8.4.1",
|
|
190
184
|
"node-plop": "~0.30.0",
|
|
191
185
|
"nodemon": "~2.0.15",
|
|
@@ -206,7 +200,6 @@
|
|
|
206
200
|
"pug": "~3.0.2",
|
|
207
201
|
"pug-loader": "~2.4.0",
|
|
208
202
|
"raf": "~3.4.1",
|
|
209
|
-
"raw-loader": "~4.0.2",
|
|
210
203
|
"react-axe": "~3.5.4",
|
|
211
204
|
"react-docgen": "~5.4.0",
|
|
212
205
|
"react-refresh": "~0.11.0",
|
|
@@ -214,9 +207,7 @@
|
|
|
214
207
|
"resize-observer-polyfill": "~1.5.1",
|
|
215
208
|
"resolve-typescript-plugin": "~1.1.4",
|
|
216
209
|
"rimraf": "~3.0.2",
|
|
217
|
-
"
|
|
218
|
-
"semantic-release": "~18.0.1",
|
|
219
|
-
"shelljs": "~0.8.5",
|
|
210
|
+
"semantic-release": "~19.0.2",
|
|
220
211
|
"slackify-markdown": "~4.3.1",
|
|
221
212
|
"speed-measure-webpack-plugin": "~1.5.0",
|
|
222
213
|
"storybook-addon-turbo-build": "~1.0.1",
|
|
@@ -226,22 +217,16 @@
|
|
|
226
217
|
"stylelint": "~14.2.0",
|
|
227
218
|
"stylelint-config-recommended": "~6.0.0",
|
|
228
219
|
"stylelint-config-styled-components": "~0.1.1",
|
|
229
|
-
"svg-url-loader": "~7.1.1",
|
|
230
|
-
"svgo": "~2.8.0",
|
|
231
220
|
"swc-loader": "~0.1.15",
|
|
232
221
|
"terser-webpack-plugin": "~5.3.0",
|
|
233
222
|
"ts-node": "~10.4.0",
|
|
234
223
|
"tsc-alias": "~1.5.0",
|
|
235
|
-
"tsc-files": "~1.1.3",
|
|
236
|
-
"tsconfig-paths": "~3.12.0",
|
|
237
|
-
"tsconfig-paths-webpack-plugin": "~3.5.2",
|
|
238
|
-
"type-fest": "~2.9.0",
|
|
239
224
|
"typescript": "~4.5.4",
|
|
240
225
|
"update-notifier": "~5.1.0",
|
|
241
226
|
"url-loader": "~4.1.1",
|
|
242
227
|
"uuid": "~8.3.2",
|
|
243
|
-
"vite": "~2.7.
|
|
244
|
-
"vitest": "~0.1.
|
|
228
|
+
"vite": "~2.7.13",
|
|
229
|
+
"vitest": "~0.1.21",
|
|
245
230
|
"webpack": "~5.65.0",
|
|
246
231
|
"webpack-bundle-analyzer": "~4.5.0",
|
|
247
232
|
"webpack-cli": "~4.9.1",
|
|
@@ -249,8 +234,6 @@
|
|
|
249
234
|
"webpack-hot-middleware": "~2.25.1",
|
|
250
235
|
"webpack-manifest-plugin": "~4.1.1",
|
|
251
236
|
"webpack-merge": "~5.8.0",
|
|
252
|
-
"webpack-pwa-manifest": "~4.3.0",
|
|
253
|
-
"webpack-strip-block": "~0.3.0",
|
|
254
237
|
"whatwg-fetch": "~3.6.2",
|
|
255
238
|
"workbox-webpack-plugin": "~6.4.2",
|
|
256
239
|
"yargs": "~17.3.1"
|