@elliemae/pui-cli 9.0.0-next.2 → 9.0.0-next.3
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/dist/cjs/pui-config.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(pui_config_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(pui_config_exports);
|
|
34
34
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
35
35
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
36
|
-
var
|
|
36
|
+
var import_merge = __toESM(require("lodash/merge"), 1);
|
|
37
37
|
const baseConfig = {
|
|
38
38
|
esBuild: {
|
|
39
39
|
target: "es2020"
|
|
@@ -44,5 +44,5 @@ const getPUIConfig = () => {
|
|
|
44
44
|
if (!import_node_fs.default.existsSync(configPath))
|
|
45
45
|
return baseConfig;
|
|
46
46
|
const config = JSON.parse(import_node_fs.default.readFileSync(configPath, "utf8"));
|
|
47
|
-
return (0,
|
|
47
|
+
return (0, import_merge.default)(baseConfig, config);
|
|
48
48
|
};
|
|
@@ -38,6 +38,7 @@ var import_fast_glob = __toESM(require("fast-glob"), 1);
|
|
|
38
38
|
var import_esbuild = require("esbuild");
|
|
39
39
|
var import_promises = require("node:fs/promises");
|
|
40
40
|
var import_browserslist_to_esbuild = __toESM(require("browserslist-to-esbuild"), 1);
|
|
41
|
+
var import_esbuild_plugin_lodash = __toESM(require("esbuild-plugin-lodash"), 1);
|
|
41
42
|
const import_meta = {};
|
|
42
43
|
const __dirname = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
|
|
43
44
|
const TARGETS = {
|
|
@@ -116,7 +117,8 @@ const esBuild = async ({
|
|
|
116
117
|
...getCommonConfig({ injectReactShim }),
|
|
117
118
|
outdir: cjsOutdir,
|
|
118
119
|
format: ESBUILD_FORMAT.CJS,
|
|
119
|
-
target
|
|
120
|
+
target,
|
|
121
|
+
plugins: [(0, import_esbuild_plugin_lodash.default)()]
|
|
120
122
|
});
|
|
121
123
|
await copyFiles({ srcdir, outdir: cjsOutdir });
|
|
122
124
|
await createPackageJson({ outdir: cjsOutdir, type: NODE_MODULE_TYPES.CJS });
|
|
@@ -290,7 +290,26 @@ const baseConfig = (options) => ({
|
|
|
290
290
|
externals: {
|
|
291
291
|
"@elliemae/pui-user-monitoring": "emuiUserMonitoring",
|
|
292
292
|
"@elliemae/pui-app-loader": "emuiAppLoader",
|
|
293
|
-
"@elliemae/pui-diagnostics": "emuiDiagnostics"
|
|
293
|
+
"@elliemae/pui-diagnostics": "emuiDiagnostics",
|
|
294
|
+
react: "emuiAppReactDependencies.react",
|
|
295
|
+
"react-dom": "emuiAppReactDependencies.reactDOM",
|
|
296
|
+
"@reduxjs/toolkit": "emuiAppReactDependencies.rtk",
|
|
297
|
+
axios: "emuiAppReactDependencies.axios.default",
|
|
298
|
+
dompurify: "emuiAppReactDependencies.dompurify",
|
|
299
|
+
history: "emuiAppReactDependencies.history",
|
|
300
|
+
immer: "emuiAppReactDependencies.immer",
|
|
301
|
+
invariant: "emuiAppReactDependencies.invariant",
|
|
302
|
+
"pubsub-js": "emuiAppReactDependencies.pubsubjs",
|
|
303
|
+
"react-aria-live": "emuiAppReactDependencies.reactAriaLive",
|
|
304
|
+
"react-helmet": "emuiAppReactDependencies.reactHelmet",
|
|
305
|
+
"react-hook-form": "emuiAppReactDependencies.reactHookForm",
|
|
306
|
+
"react-redux": "emuiAppReactDependencies.reactRedux",
|
|
307
|
+
"react-router-dom": "emuiAppReactDependencies.reactRouterDOM",
|
|
308
|
+
reduxInjectors: "emuiAppReactDependencies.reduxInjectors",
|
|
309
|
+
reselect: "emuiAppReactDependencies.reselect",
|
|
310
|
+
// "styled-components": "emuiAppReactDependencies.styledComponents",
|
|
311
|
+
"styled-system": "emuiAppReactDependencies.styledSystem"
|
|
312
|
+
// "@xstyled/styled-components": "emuiAppReactDependencies.xstyled",
|
|
294
313
|
},
|
|
295
314
|
devtool: options.devtool || "eval-source-map",
|
|
296
315
|
performance: options.performance || {},
|
|
@@ -4,6 +4,7 @@ import fg from "fast-glob";
|
|
|
4
4
|
import { build } from "esbuild";
|
|
5
5
|
import { writeFile, copyFile, readFile, mkdir } from "node:fs/promises";
|
|
6
6
|
import browserslistToEsbuild from "browserslist-to-esbuild";
|
|
7
|
+
import lodashTransformer from "esbuild-plugin-lodash";
|
|
7
8
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
8
9
|
const TARGETS = {
|
|
9
10
|
browserslist: browserslistToEsbuild(),
|
|
@@ -81,7 +82,8 @@ const esBuild = async ({
|
|
|
81
82
|
...getCommonConfig({ injectReactShim }),
|
|
82
83
|
outdir: cjsOutdir,
|
|
83
84
|
format: ESBUILD_FORMAT.CJS,
|
|
84
|
-
target
|
|
85
|
+
target,
|
|
86
|
+
plugins: [lodashTransformer()]
|
|
85
87
|
});
|
|
86
88
|
await copyFiles({ srcdir, outdir: cjsOutdir });
|
|
87
89
|
await createPackageJson({ outdir: cjsOutdir, type: NODE_MODULE_TYPES.CJS });
|
|
@@ -263,7 +263,26 @@ const baseConfig = (options) => ({
|
|
|
263
263
|
externals: {
|
|
264
264
|
"@elliemae/pui-user-monitoring": "emuiUserMonitoring",
|
|
265
265
|
"@elliemae/pui-app-loader": "emuiAppLoader",
|
|
266
|
-
"@elliemae/pui-diagnostics": "emuiDiagnostics"
|
|
266
|
+
"@elliemae/pui-diagnostics": "emuiDiagnostics",
|
|
267
|
+
react: "emuiAppReactDependencies.react",
|
|
268
|
+
"react-dom": "emuiAppReactDependencies.reactDOM",
|
|
269
|
+
"@reduxjs/toolkit": "emuiAppReactDependencies.rtk",
|
|
270
|
+
axios: "emuiAppReactDependencies.axios.default",
|
|
271
|
+
dompurify: "emuiAppReactDependencies.dompurify",
|
|
272
|
+
history: "emuiAppReactDependencies.history",
|
|
273
|
+
immer: "emuiAppReactDependencies.immer",
|
|
274
|
+
invariant: "emuiAppReactDependencies.invariant",
|
|
275
|
+
"pubsub-js": "emuiAppReactDependencies.pubsubjs",
|
|
276
|
+
"react-aria-live": "emuiAppReactDependencies.reactAriaLive",
|
|
277
|
+
"react-helmet": "emuiAppReactDependencies.reactHelmet",
|
|
278
|
+
"react-hook-form": "emuiAppReactDependencies.reactHookForm",
|
|
279
|
+
"react-redux": "emuiAppReactDependencies.reactRedux",
|
|
280
|
+
"react-router-dom": "emuiAppReactDependencies.reactRouterDOM",
|
|
281
|
+
reduxInjectors: "emuiAppReactDependencies.reduxInjectors",
|
|
282
|
+
reselect: "emuiAppReactDependencies.reselect",
|
|
283
|
+
// "styled-components": "emuiAppReactDependencies.styledComponents",
|
|
284
|
+
"styled-system": "emuiAppReactDependencies.styledSystem"
|
|
285
|
+
// "@xstyled/styled-components": "emuiAppReactDependencies.xstyled",
|
|
267
286
|
},
|
|
268
287
|
devtool: options.devtool || "eval-source-map",
|
|
269
288
|
performance: options.performance || {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.3",
|
|
4
4
|
"description": "ICE MT UI Platform CLI",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -93,28 +93,28 @@
|
|
|
93
93
|
"@babel/preset-react": "~7.18.6",
|
|
94
94
|
"@babel/preset-typescript": "~7.21.5",
|
|
95
95
|
"@babel/runtime": "~7.21.5",
|
|
96
|
-
"@commitlint/cli": "~17.6.
|
|
97
|
-
"@commitlint/config-conventional": "~17.6.
|
|
96
|
+
"@commitlint/cli": "~17.6.3",
|
|
97
|
+
"@commitlint/config-conventional": "~17.6.3",
|
|
98
98
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.7.0",
|
|
99
99
|
"@faker-js/faker": "7.6.0",
|
|
100
100
|
"@nrwl/cli": "15.9.3",
|
|
101
|
-
"@nrwl/tao": "16.0
|
|
102
|
-
"@nrwl/workspace": "16.0
|
|
101
|
+
"@nrwl/tao": "16.1.0",
|
|
102
|
+
"@nrwl/workspace": "16.1.0",
|
|
103
103
|
"@pmmmwh/react-refresh-webpack-plugin": "~0.5.10",
|
|
104
104
|
"@semantic-release/changelog": "~6.0.3",
|
|
105
105
|
"@semantic-release/exec": "~6.0.3",
|
|
106
106
|
"@semantic-release/git": "~10.0.1",
|
|
107
|
-
"@storybook/addon-a11y": "~
|
|
108
|
-
"@storybook/addon-essentials": "~
|
|
107
|
+
"@storybook/addon-a11y": "~7.0.8",
|
|
108
|
+
"@storybook/addon-essentials": "~7.0.8",
|
|
109
109
|
"@storybook/addon-events": "~6.2.9",
|
|
110
|
-
"@storybook/addon-interactions": "~
|
|
111
|
-
"@storybook/addon-links": "~
|
|
112
|
-
"@storybook/addon-storysource": "~
|
|
113
|
-
"@storybook/builder-vite": "~0.
|
|
114
|
-
"@storybook/builder-webpack5": "~
|
|
110
|
+
"@storybook/addon-interactions": "~7.0.8",
|
|
111
|
+
"@storybook/addon-links": "~7.0.8",
|
|
112
|
+
"@storybook/addon-storysource": "~7.0.8",
|
|
113
|
+
"@storybook/builder-vite": "~7.0.8",
|
|
114
|
+
"@storybook/builder-webpack5": "~7.0.8",
|
|
115
115
|
"@storybook/manager-webpack5": "~6.5.16",
|
|
116
|
-
"@storybook/react": "~
|
|
117
|
-
"@storybook/theming": "~
|
|
116
|
+
"@storybook/react": "~7.0.8",
|
|
117
|
+
"@storybook/theming": "~7.0.8",
|
|
118
118
|
"@stylelint/postcss-css-in-js": "~0.38.0",
|
|
119
119
|
"@svgr/webpack": "~7.0.0",
|
|
120
120
|
"@swc/cli": "~0.1.62",
|
|
@@ -134,8 +134,8 @@
|
|
|
134
134
|
"@types/moment-locales-webpack-plugin": "~1.2.3",
|
|
135
135
|
"@types/node": "~18.16.3",
|
|
136
136
|
"@types/normalize-path": "~3.0.0",
|
|
137
|
-
"@types/postcss-preset-env": "~
|
|
138
|
-
"@types/rimraf": "~
|
|
137
|
+
"@types/postcss-preset-env": "~8.0.0",
|
|
138
|
+
"@types/rimraf": "~4.0.5",
|
|
139
139
|
"@types/speed-measure-webpack-plugin": "~1.3.4",
|
|
140
140
|
"@types/supertest": "~2.0.12",
|
|
141
141
|
"@types/uuid": "~9.0.1",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"@typescript-eslint/eslint-plugin": "~5.59.2",
|
|
145
145
|
"@typescript-eslint/parser": "~5.59.2",
|
|
146
146
|
"@vitejs/plugin-react": "~4.0.0",
|
|
147
|
-
"@vitest/coverage-c8": "~0.
|
|
147
|
+
"@vitest/coverage-c8": "~0.31.0",
|
|
148
148
|
"autoprefixer": "~10.4.14",
|
|
149
149
|
"axe-core": "~4.7.0",
|
|
150
150
|
"babel-plugin-date-fns": "~2.0.0",
|
|
@@ -177,6 +177,7 @@
|
|
|
177
177
|
"enhanced-resolve": "5.13.0",
|
|
178
178
|
"esbuild": "~0.17.18",
|
|
179
179
|
"esbuild-loader": "~3.0.1",
|
|
180
|
+
"esbuild-plugin-lodash": "~1.2.0",
|
|
180
181
|
"esbuild-plugin-svgr": "~1.1.0",
|
|
181
182
|
"eslint": "~8.39.0",
|
|
182
183
|
"eslint-config-airbnb": "~19.0.4",
|
|
@@ -193,12 +194,12 @@
|
|
|
193
194
|
"eslint-plugin-jest": "~27.2.1",
|
|
194
195
|
"eslint-plugin-jsdoc": "~43.1.1",
|
|
195
196
|
"eslint-plugin-jsx-a11y": "~6.7.1",
|
|
196
|
-
"eslint-plugin-mdx": "~2.0
|
|
197
|
+
"eslint-plugin-mdx": "~2.1.0",
|
|
197
198
|
"eslint-plugin-prettier": "~4.2.1",
|
|
198
199
|
"eslint-plugin-react": "~7.32.2",
|
|
199
200
|
"eslint-plugin-react-hooks": "~4.6.0",
|
|
200
201
|
"eslint-plugin-redux-saga": "~1.3.2",
|
|
201
|
-
"eslint-plugin-storybook": "~0.6.
|
|
202
|
+
"eslint-plugin-storybook": "~0.6.12",
|
|
202
203
|
"eslint-plugin-testing-library": "~5.10.3",
|
|
203
204
|
"eslint-plugin-wdio": "~8.8.7",
|
|
204
205
|
"execa": "~7.1.1",
|
|
@@ -209,7 +210,7 @@
|
|
|
209
210
|
"fast-glob": "~3.2.12",
|
|
210
211
|
"find-up": "~6.3.0",
|
|
211
212
|
"find-up-cli": "~5.0.0",
|
|
212
|
-
"happy-dom": "~9.10.
|
|
213
|
+
"happy-dom": "~9.10.9",
|
|
213
214
|
"helmet-csp": "~3.4.0",
|
|
214
215
|
"html-loader": "~4.2.0",
|
|
215
216
|
"html-webpack-plugin": "~5.5.1",
|
|
@@ -226,7 +227,7 @@
|
|
|
226
227
|
"jest-watch-typeahead": "~2.2.2",
|
|
227
228
|
"jscodeshift": "~0.14.0",
|
|
228
229
|
"jsdoc": "~4.0.2",
|
|
229
|
-
"lerna": "~6.6.
|
|
230
|
+
"lerna": "~6.6.2",
|
|
230
231
|
"lint-staged": "~13.2.2",
|
|
231
232
|
"mini-css-extract-plugin": "~2.7.5",
|
|
232
233
|
"minimist": "~1.2.8",
|
|
@@ -239,7 +240,7 @@
|
|
|
239
240
|
"nodemon": "~2.0.22",
|
|
240
241
|
"normalize-path": "~3.0.0",
|
|
241
242
|
"npm-check-updates": "16.10.9",
|
|
242
|
-
"pino": "~8.12.
|
|
243
|
+
"pino": "~8.12.1",
|
|
243
244
|
"pino-http": "~8.3.3",
|
|
244
245
|
"pino-pretty": "~10.0.0",
|
|
245
246
|
"plop": "~3.1.2",
|
|
@@ -264,10 +265,10 @@
|
|
|
264
265
|
"semantic-release": "~21.0.2",
|
|
265
266
|
"slackify-markdown": "~4.3.1",
|
|
266
267
|
"speed-measure-webpack-plugin": "~1.5.0",
|
|
267
|
-
"storybook-addon-turbo-build": "~
|
|
268
|
+
"storybook-addon-turbo-build": "~2.0.1",
|
|
268
269
|
"storybook-react-router": "~1.0.8",
|
|
269
270
|
"style-loader": "~3.3.2",
|
|
270
|
-
"stylelint": "~15.6.
|
|
271
|
+
"stylelint": "~15.6.1",
|
|
271
272
|
"stylelint-config-recommended": "~12.0.0",
|
|
272
273
|
"stylelint-config-styled-components": "~0.1.1",
|
|
273
274
|
"supertest": "~6.3.3",
|
|
@@ -280,9 +281,9 @@
|
|
|
280
281
|
"url-loader": "~4.1.1",
|
|
281
282
|
"uuid": "~9.0.0",
|
|
282
283
|
"vite": "~4.3.4",
|
|
283
|
-
"vitest": "~0.
|
|
284
|
+
"vitest": "~0.31.0",
|
|
284
285
|
"vite-tsconfig-paths": "~4.2.0",
|
|
285
|
-
"webpack": "~5.
|
|
286
|
+
"webpack": "~5.82.0",
|
|
286
287
|
"webpack-bundle-analyzer": "~4.8.0",
|
|
287
288
|
"webpack-cli": "~5.0.2",
|
|
288
289
|
"webpack-dev-server": "~4.13.3",
|