@elliemae/pui-cli 8.0.0 → 8.0.2

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
@@ -20,6 +20,10 @@
20
20
 
21
21
  ## Migration Guide
22
22
 
23
+ ### v7 to v8
24
+
25
+ [Changelog](https://confluence.elliemae.io/display/FEAE/CLI+ChangeLog#CLIChangeLog-v8)
26
+
23
27
  ### v6 to v7
24
28
 
25
29
  [ChangeLog](https://confluence.elliemae.io/display/FEAE/CLI+ChangeLog#CLIChangeLog-v7)
@@ -33,6 +33,7 @@ __export(appRoutes_exports, {
33
33
  module.exports = __toCommonJS(appRoutes_exports);
34
34
  var import_node_fs = __toESM(require("node:fs"), 1);
35
35
  var import_node_path = __toESM(require("node:path"), 1);
36
+ var import_node_url = require("node:url");
36
37
  const allJS = /\.js$/;
37
38
  const serviceEndpoints = /\.endpoint\.js$/;
38
39
  const getFilesMatching = (filePattern) => {
@@ -61,7 +62,8 @@ const loadRoutes = async (app) => {
61
62
  routeFiles.push(...getServiceEndpoints(import_node_path.default.join(process.cwd(), "lib")));
62
63
  await Promise.all(
63
64
  routeFiles.map(async (routeFile) => {
64
- const { default: init } = await import(routeFile);
65
+ const routeFileURL = (0, import_node_url.pathToFileURL)(routeFile).href;
66
+ const { default: init } = await import(routeFileURL);
65
67
  try {
66
68
  if (typeof init === "function")
67
69
  init(app);
@@ -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
  }
@@ -1,5 +1,6 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
+ import { pathToFileURL } from "node:url";
3
4
  const allJS = /\.js$/;
4
5
  const serviceEndpoints = /\.endpoint\.js$/;
5
6
  const getFilesMatching = (filePattern) => {
@@ -28,7 +29,8 @@ const loadRoutes = async (app) => {
28
29
  routeFiles.push(...getServiceEndpoints(path.join(process.cwd(), "lib")));
29
30
  await Promise.all(
30
31
  routeFiles.map(async (routeFile) => {
31
- const { default: init } = await import(routeFile);
32
+ const routeFileURL = pathToFileURL(routeFile).href;
33
+ const { default: init } = await import(routeFileURL);
32
34
  try {
33
35
  if (typeof init === "function")
34
36
  init(app);
@@ -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.0",
3
+ "version": "8.0.2",
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.7.2",
98
- "@nrwl/tao": "15.7.2",
99
- "@nrwl/workspace": "15.7.2",
97
+ "@nrwl/cli": "15.8.5",
98
+ "@nrwl/tao": "15.8.5",
99
+ "@nrwl/workspace": "15.8.5",
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.36",
118
+ "@swc/core": "~1.3.38",
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.1",
132
+ "@types/node": "~18.14.6",
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.53.0",
142
- "@typescript-eslint/parser": "~5.53.0",
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.28.5",
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",
@@ -172,14 +172,14 @@
172
172
  "dotenv-webpack": "~8.0.1",
173
173
  "duplicate-package-checker-webpack-plugin": "~3.0.0",
174
174
  "enhanced-resolve": "5.12.0",
175
- "esbuild": "~0.17.10",
175
+ "esbuild": "~0.17.11",
176
176
  "esbuild-loader": "~3.0.1",
177
177
  "esbuild-plugin-svgr": "~1.0.1",
178
- "eslint": "~8.34.0",
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",
182
- "eslint-config-prettier": "~8.6.0",
182
+ "eslint-config-prettier": "~8.7.0",
183
183
  "eslint-config-react-app": "~7.0.1",
184
184
  "eslint-import-resolver-babel-module": "~5.3.2",
185
185
  "eslint-import-resolver-typescript": "~3.5.3",
@@ -188,7 +188,7 @@
188
188
  "eslint-plugin-eslint-comments": "~3.2.0",
189
189
  "eslint-plugin-import": "~2.27.5",
190
190
  "eslint-plugin-jest": "~27.2.1",
191
- "eslint-plugin-jsdoc": "~40.0.0",
191
+ "eslint-plugin-jsdoc": "~40.0.1",
192
192
  "eslint-plugin-jsx-a11y": "~6.7.1",
193
193
  "eslint-plugin-mdx": "~2.0.5",
194
194
  "eslint-plugin-prettier": "~4.2.1",
@@ -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.7.2",
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",
@@ -216,8 +216,8 @@
216
216
  "imports-loader": "~4.0.1",
217
217
  "ip": "~1.1.8",
218
218
  "jest-axe": "~7.0.0",
219
- "jest-cli": "~29.4.3",
220
- "jest-environment-jsdom": "~29.4.3",
219
+ "jest-cli": "~29.5.0",
220
+ "jest-environment-jsdom": "~29.5.0",
221
221
  "jest-sonar-reporter": "~2.0.0",
222
222
  "jest-styled-components": "~7.1.1",
223
223
  "jest-watch-typeahead": "~2.2.2",
@@ -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.1",
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
- "nodemon": "~2.0.20",
236
+ "nodemon": "~2.0.21",
237
237
  "normalize-path": "~3.0.0",
238
- "npm-check-updates": "16.7.9",
238
+ "npm-check-updates": "16.7.10",
239
239
  "pino": "~8.11.0",
240
240
  "pino-http": "~8.3.3",
241
- "pino-pretty": "~9.3.0",
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.10.1",
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.2",
261
- "semantic-release": "~20.1.0",
260
+ "rimraf": "~4.3.0",
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.25",
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.28.5",
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",
@@ -295,6 +295,6 @@
295
295
  "react-dom": "~18.2.0",
296
296
  "redux": "~4.2.1",
297
297
  "redux-saga": "~1.2.2",
298
- "styled-components": "~5.3.6"
298
+ "styled-components": "~5.3.8"
299
299
  }
300
300
  }