@elliemae/pui-cli 8.0.0 → 8.0.1
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/README.md
CHANGED
|
@@ -38,6 +38,7 @@ var import_html_webpack_plugin = __toESM(require("html-webpack-plugin"), 1);
|
|
|
38
38
|
var import_circular_dependency_plugin = __toESM(require("circular-dependency-plugin"), 1);
|
|
39
39
|
var import_mini_css_extract_plugin = __toESM(require("mini-css-extract-plugin"), 1);
|
|
40
40
|
var import_react_refresh_webpack_plugin = __toESM(require("@pmmmwh/react-refresh-webpack-plugin"), 1);
|
|
41
|
+
var import_express_static_gzip = __toESM(require("express-static-gzip"), 1);
|
|
41
42
|
var import_middlewares = require("../server/middlewares.js");
|
|
42
43
|
var import_appRoutes = require("../server/appRoutes.js");
|
|
43
44
|
var import_helpers = require("./helpers.js");
|
|
@@ -150,6 +151,15 @@ const devConfig = {
|
|
|
150
151
|
}).catch((err) => {
|
|
151
152
|
console.error(err);
|
|
152
153
|
});
|
|
154
|
+
const cdnRouter = (0, import_express_static_gzip.default)("cdn", {});
|
|
155
|
+
devServer.app.use((req, res, next) => {
|
|
156
|
+
const parsedPath = import_node_path.default.parse(req.url);
|
|
157
|
+
if (parsedPath?.ext) {
|
|
158
|
+
cdnRouter(req, res, next);
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
next();
|
|
162
|
+
});
|
|
153
163
|
}
|
|
154
164
|
return middlewares;
|
|
155
165
|
}
|
|
@@ -5,6 +5,7 @@ import HtmlWebpackPlugin from "html-webpack-plugin";
|
|
|
5
5
|
import CircularDependencyPlugin from "circular-dependency-plugin";
|
|
6
6
|
import MiniCssExtractPlugin from "mini-css-extract-plugin";
|
|
7
7
|
import ReactRefreshWebpackPlugin from "@pmmmwh/react-refresh-webpack-plugin";
|
|
8
|
+
import expressStaticGzip from "express-static-gzip";
|
|
8
9
|
import { setupDefaultMiddlewares } from "../server/middlewares.js";
|
|
9
10
|
import { loadRoutes } from "../server/appRoutes.js";
|
|
10
11
|
import {
|
|
@@ -120,6 +121,15 @@ const devConfig = {
|
|
|
120
121
|
}).catch((err) => {
|
|
121
122
|
console.error(err);
|
|
122
123
|
});
|
|
124
|
+
const cdnRouter = expressStaticGzip("cdn", {});
|
|
125
|
+
devServer.app.use((req, res, next) => {
|
|
126
|
+
const parsedPath = path.parse(req.url);
|
|
127
|
+
if (parsedPath?.ext) {
|
|
128
|
+
cdnRouter(req, res, next);
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
next();
|
|
132
|
+
});
|
|
123
133
|
}
|
|
124
134
|
return middlewares;
|
|
125
135
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "ICE MT UI Platform CLI",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
"@commitlint/config-conventional": "~17.4.4",
|
|
95
95
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.6.0",
|
|
96
96
|
"@faker-js/faker": "7.6.0",
|
|
97
|
-
"@nrwl/cli": "15.
|
|
98
|
-
"@nrwl/tao": "15.
|
|
99
|
-
"@nrwl/workspace": "15.
|
|
97
|
+
"@nrwl/cli": "15.8.1",
|
|
98
|
+
"@nrwl/tao": "15.8.1",
|
|
99
|
+
"@nrwl/workspace": "15.8.1",
|
|
100
100
|
"@pmmmwh/react-refresh-webpack-plugin": "~0.5.10",
|
|
101
101
|
"@semantic-release/changelog": "~6.0.2",
|
|
102
102
|
"@semantic-release/exec": "~6.0.3",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"@stylelint/postcss-css-in-js": "~0.38.0",
|
|
116
116
|
"@svgr/webpack": "~6.5.1",
|
|
117
117
|
"@swc/cli": "~0.1.62",
|
|
118
|
-
"@swc/core": "~1.3.
|
|
118
|
+
"@swc/core": "~1.3.37",
|
|
119
119
|
"@swc/jest": "~0.2.24",
|
|
120
120
|
"@testing-library/jest-dom": "~5.16.5",
|
|
121
121
|
"@testing-library/react": "~14.0.0",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"@types/jest": "~29.4.0",
|
|
130
130
|
"@types/jest-axe": "~3.5.5",
|
|
131
131
|
"@types/moment-locales-webpack-plugin": "~1.2.3",
|
|
132
|
-
"@types/node": "~18.14.
|
|
132
|
+
"@types/node": "~18.14.2",
|
|
133
133
|
"@types/normalize-path": "~3.0.0",
|
|
134
134
|
"@types/postcss-preset-env": "~7.7.0",
|
|
135
135
|
"@types/rimraf": "~3.0.2",
|
|
@@ -138,10 +138,10 @@
|
|
|
138
138
|
"@types/uuid": "~9.0.1",
|
|
139
139
|
"@types/testing-library__jest-dom": "~5.14.5",
|
|
140
140
|
"@types/webpack-bundle-analyzer": "~4.6.0",
|
|
141
|
-
"@typescript-eslint/eslint-plugin": "~5.
|
|
142
|
-
"@typescript-eslint/parser": "~5.
|
|
141
|
+
"@typescript-eslint/eslint-plugin": "~5.54.0",
|
|
142
|
+
"@typescript-eslint/parser": "~5.54.0",
|
|
143
143
|
"@vitejs/plugin-react": "~3.1.0",
|
|
144
|
-
"@vitest/coverage-c8": "~0.
|
|
144
|
+
"@vitest/coverage-c8": "~0.29.2",
|
|
145
145
|
"autoprefixer": "~10.4.13",
|
|
146
146
|
"axe-core": "~4.6.3",
|
|
147
147
|
"babel-plugin-date-fns": "~2.0.0",
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"esbuild": "~0.17.10",
|
|
176
176
|
"esbuild-loader": "~3.0.1",
|
|
177
177
|
"esbuild-plugin-svgr": "~1.0.1",
|
|
178
|
-
"eslint": "~8.
|
|
178
|
+
"eslint": "~8.35.0",
|
|
179
179
|
"eslint-config-airbnb": "~19.0.4",
|
|
180
180
|
"eslint-config-airbnb-base": "~15.0.0",
|
|
181
181
|
"eslint-config-airbnb-typescript": "~17.0.0",
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"fast-glob": "~3.2.12",
|
|
207
207
|
"find-up": "~6.3.0",
|
|
208
208
|
"find-up-cli": "~5.0.0",
|
|
209
|
-
"happy-dom": "~8.
|
|
209
|
+
"happy-dom": "~8.9.0",
|
|
210
210
|
"helmet-csp": "~3.4.0",
|
|
211
211
|
"html-loader": "~4.2.0",
|
|
212
212
|
"html-webpack-plugin": "~5.5.0",
|
|
@@ -229,16 +229,16 @@
|
|
|
229
229
|
"minimist": "~1.2.8",
|
|
230
230
|
"moment": "~2.29.4",
|
|
231
231
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
232
|
-
"msw": "~1.0
|
|
232
|
+
"msw": "~1.1.0",
|
|
233
233
|
"npm-run-all": "~4.1.5",
|
|
234
234
|
"node-gyp": "~9.3.1",
|
|
235
235
|
"node-plop": "~0.31.1",
|
|
236
236
|
"nodemon": "~2.0.20",
|
|
237
237
|
"normalize-path": "~3.0.0",
|
|
238
|
-
"npm-check-updates": "16.7.
|
|
238
|
+
"npm-check-updates": "16.7.10",
|
|
239
239
|
"pino": "~8.11.0",
|
|
240
240
|
"pino-http": "~8.3.3",
|
|
241
|
-
"pino-pretty": "~9.
|
|
241
|
+
"pino-pretty": "~9.4.0",
|
|
242
242
|
"plop": "~3.1.2",
|
|
243
243
|
"postcss": "~8.4.21",
|
|
244
244
|
"postcss-html": "~1.5.0",
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
"postcss-preset-env": "~8.0.1",
|
|
249
249
|
"postcss-syntax": "~0.36.2",
|
|
250
250
|
"prettier": "~2.8.4",
|
|
251
|
-
"prisma": "~4.
|
|
251
|
+
"prisma": "~4.11.0",
|
|
252
252
|
"pug": "~3.0.2",
|
|
253
253
|
"pug-loader": "~2.4.0",
|
|
254
254
|
"raf": "~3.4.1",
|
|
@@ -257,8 +257,8 @@
|
|
|
257
257
|
"react-test-renderer": "~18.2.0",
|
|
258
258
|
"resize-observer-polyfill": "~1.5.1",
|
|
259
259
|
"resolve-typescript-plugin": "~2.0.0",
|
|
260
|
-
"rimraf": "~4.1.
|
|
261
|
-
"semantic-release": "~20.1.
|
|
260
|
+
"rimraf": "~4.1.3",
|
|
261
|
+
"semantic-release": "~20.1.1",
|
|
262
262
|
"slackify-markdown": "~4.3.1",
|
|
263
263
|
"speed-measure-webpack-plugin": "~1.5.0",
|
|
264
264
|
"storybook-addon-turbo-build": "~1.1.0",
|
|
@@ -271,13 +271,13 @@
|
|
|
271
271
|
"swc-loader": "~0.2.3",
|
|
272
272
|
"ts-node": "~10.9.1",
|
|
273
273
|
"tsc-alias": "~1.8.2",
|
|
274
|
-
"typedoc": "~0.23.
|
|
274
|
+
"typedoc": "~0.23.26",
|
|
275
275
|
"typescript": "~4.9.5",
|
|
276
276
|
"update-notifier": "~6.0.2",
|
|
277
277
|
"url-loader": "~4.1.1",
|
|
278
278
|
"uuid": "~9.0.0",
|
|
279
279
|
"vite": "~4.1.4",
|
|
280
|
-
"vitest": "~0.
|
|
280
|
+
"vitest": "~0.29.2",
|
|
281
281
|
"vite-tsconfig-paths": "~4.0.5",
|
|
282
282
|
"webpack": "~5.75.0",
|
|
283
283
|
"webpack-bundle-analyzer": "~4.8.0",
|