@elliemae/pui-cli 8.0.2 → 9.0.0-next.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/dist/cjs/webpack/helpers.js +1 -1
- package/dist/cjs/webpack/webpack.base.babel.js +14 -1
- package/dist/cjs/webpack/webpack.lib.base.babel.js +4 -2
- package/dist/cjs/webpack/webpack.lib.dev.babel.js +0 -1
- package/dist/cjs/webpack/webpack.lib.prod.babel.js +0 -1
- package/dist/esm/webpack/helpers.js +1 -1
- package/dist/esm/webpack/webpack.base.babel.js +14 -1
- package/dist/esm/webpack/webpack.lib.base.babel.js +4 -2
- package/dist/esm/webpack/webpack.lib.dev.babel.js +1 -2
- package/dist/esm/webpack/webpack.lib.prod.babel.js +1 -6
- package/dist/types/transpile/react-shim.d.ts +1 -1
- package/dist/types/webpack/helpers.d.ts +1 -1
- package/package.json +37 -37
|
@@ -80,7 +80,7 @@ const getLibraryName = () => {
|
|
|
80
80
|
const modifiedLibName = `emui-${libraryName.replace("@elliemae/", "").replace("pui-", "")}`;
|
|
81
81
|
return import_lodash.default.camelCase(modifiedLibName);
|
|
82
82
|
};
|
|
83
|
-
const getLibraryVariableName = () => process.env.LIBRARY_VARIABLE_NAME || getLibraryName();
|
|
83
|
+
const getLibraryVariableName = () => (process.env.LIBRARY_VARIABLE_NAME || getLibraryName()).split(".");
|
|
84
84
|
const mapToFolder = (dependencies, folder) => dependencies.reduce(
|
|
85
85
|
(acc, dependency) => ({
|
|
86
86
|
[dependency]: import_node_path.default.resolve(`${folder}/${dependency.replace("$", "")}`),
|
|
@@ -151,9 +151,22 @@ const plugins = [
|
|
|
151
151
|
}),
|
|
152
152
|
new import_favicons_webpack_plugin.default({
|
|
153
153
|
outputPath: "./latest/assets",
|
|
154
|
+
prefix: "latest/assets/",
|
|
154
155
|
logo: "./app/view/images/favicon.png",
|
|
155
156
|
favicons: {
|
|
156
|
-
|
|
157
|
+
appName: "",
|
|
158
|
+
appShortName: "",
|
|
159
|
+
appDescription: "",
|
|
160
|
+
developerURL: "",
|
|
161
|
+
developerName: "ICE",
|
|
162
|
+
icons: {
|
|
163
|
+
favicons: true,
|
|
164
|
+
android: false,
|
|
165
|
+
appleIcon: false,
|
|
166
|
+
appleStartup: false,
|
|
167
|
+
windows: false,
|
|
168
|
+
yandex: false
|
|
169
|
+
}
|
|
157
170
|
}
|
|
158
171
|
})
|
|
159
172
|
];
|
|
@@ -85,8 +85,10 @@ const baseConfig = (options) => ({
|
|
|
85
85
|
clean: true,
|
|
86
86
|
path: import_node_path.default.resolve(process.cwd(), "dist/umd"),
|
|
87
87
|
publicPath: "auto",
|
|
88
|
-
library:
|
|
89
|
-
|
|
88
|
+
library: {
|
|
89
|
+
name: (0, import_helpers.getLibraryVariableName)(),
|
|
90
|
+
type: "umd"
|
|
91
|
+
},
|
|
90
92
|
...options.output
|
|
91
93
|
},
|
|
92
94
|
// Merge with env dependent settings
|
|
@@ -47,7 +47,6 @@ const getHtmlWebpackPlugins = () => {
|
|
|
47
47
|
(htmlTemplateFile) => new import_html_webpack_plugin.default({
|
|
48
48
|
template: htmlTemplateFile,
|
|
49
49
|
filename: import_node_path.default.basename(htmlTemplateFile),
|
|
50
|
-
library: (0, import_helpers.getLibraryVariableName)(),
|
|
51
50
|
inject: true
|
|
52
51
|
})
|
|
53
52
|
);
|
|
@@ -46,7 +46,6 @@ const getHtmlWebpackPlugins = () => {
|
|
|
46
46
|
(htmlTemplateFile) => new import_html_webpack_plugin.default({
|
|
47
47
|
template: htmlTemplateFile,
|
|
48
48
|
filename: import_node_path.default.basename(htmlTemplateFile),
|
|
49
|
-
library: (0, import_helpers.getLibraryVariableName)(),
|
|
50
49
|
inject: true,
|
|
51
50
|
minify: {
|
|
52
51
|
removeComments: true,
|
|
@@ -32,7 +32,7 @@ const getLibraryName = () => {
|
|
|
32
32
|
const modifiedLibName = `emui-${libraryName.replace("@elliemae/", "").replace("pui-", "")}`;
|
|
33
33
|
return _.camelCase(modifiedLibName);
|
|
34
34
|
};
|
|
35
|
-
const getLibraryVariableName = () => process.env.LIBRARY_VARIABLE_NAME || getLibraryName();
|
|
35
|
+
const getLibraryVariableName = () => (process.env.LIBRARY_VARIABLE_NAME || getLibraryName()).split(".");
|
|
36
36
|
const mapToFolder = (dependencies, folder) => dependencies.reduce(
|
|
37
37
|
(acc, dependency) => ({
|
|
38
38
|
[dependency]: path.resolve(`${folder}/${dependency.replace("$", "")}`),
|
|
@@ -124,9 +124,22 @@ const plugins = [
|
|
|
124
124
|
}),
|
|
125
125
|
new FaviconsWebpackPlugin({
|
|
126
126
|
outputPath: "./latest/assets",
|
|
127
|
+
prefix: "latest/assets/",
|
|
127
128
|
logo: "./app/view/images/favicon.png",
|
|
128
129
|
favicons: {
|
|
129
|
-
|
|
130
|
+
appName: "",
|
|
131
|
+
appShortName: "",
|
|
132
|
+
appDescription: "",
|
|
133
|
+
developerURL: "",
|
|
134
|
+
developerName: "ICE",
|
|
135
|
+
icons: {
|
|
136
|
+
favicons: true,
|
|
137
|
+
android: false,
|
|
138
|
+
appleIcon: false,
|
|
139
|
+
appleStartup: false,
|
|
140
|
+
windows: false,
|
|
141
|
+
yandex: false
|
|
142
|
+
}
|
|
130
143
|
}
|
|
131
144
|
})
|
|
132
145
|
];
|
|
@@ -58,8 +58,10 @@ const baseConfig = (options) => ({
|
|
|
58
58
|
clean: true,
|
|
59
59
|
path: path.resolve(process.cwd(), "dist/umd"),
|
|
60
60
|
publicPath: "auto",
|
|
61
|
-
library:
|
|
62
|
-
|
|
61
|
+
library: {
|
|
62
|
+
name: getLibraryVariableName(),
|
|
63
|
+
type: "umd"
|
|
64
|
+
},
|
|
63
65
|
...options.output
|
|
64
66
|
},
|
|
65
67
|
// Merge with env dependent settings
|
|
@@ -5,7 +5,7 @@ import fg from "fast-glob";
|
|
|
5
5
|
import CircularDependencyPlugin from "circular-dependency-plugin";
|
|
6
6
|
import MiniCssExtractPlugin from "mini-css-extract-plugin";
|
|
7
7
|
import HtmlWebpackPlugin from "html-webpack-plugin";
|
|
8
|
-
import {
|
|
8
|
+
import { getPaths } from "./helpers.js";
|
|
9
9
|
import { baseConfig } from "./webpack.lib.base.babel.js";
|
|
10
10
|
const { basePath } = getPaths();
|
|
11
11
|
const getHtmlWebpackPlugins = () => {
|
|
@@ -14,7 +14,6 @@ const getHtmlWebpackPlugins = () => {
|
|
|
14
14
|
(htmlTemplateFile) => new HtmlWebpackPlugin({
|
|
15
15
|
template: htmlTemplateFile,
|
|
16
16
|
filename: path.basename(htmlTemplateFile),
|
|
17
|
-
library: getLibraryVariableName(),
|
|
18
17
|
inject: true
|
|
19
18
|
})
|
|
20
19
|
);
|
|
@@ -5,11 +5,7 @@ import HtmlWebpackPlugin from "html-webpack-plugin";
|
|
|
5
5
|
import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer";
|
|
6
6
|
import { EsbuildPlugin } from "esbuild-loader";
|
|
7
7
|
import browserslistToEsbuild from "browserslist-to-esbuild";
|
|
8
|
-
import {
|
|
9
|
-
getLibraryVariableName,
|
|
10
|
-
getCompressionPlugins,
|
|
11
|
-
getLibraryName
|
|
12
|
-
} from "./helpers.js";
|
|
8
|
+
import { getCompressionPlugins, getLibraryName } from "./helpers.js";
|
|
13
9
|
import { baseConfig } from "./webpack.lib.base.babel.js";
|
|
14
10
|
const getHtmlWebpackPlugins = () => {
|
|
15
11
|
const htmlTemplateFiles = fg.sync([path.join(process.cwd(), "lib/*.html")]);
|
|
@@ -17,7 +13,6 @@ const getHtmlWebpackPlugins = () => {
|
|
|
17
13
|
(htmlTemplateFile) => new HtmlWebpackPlugin({
|
|
18
14
|
template: htmlTemplateFile,
|
|
19
15
|
filename: path.basename(htmlTemplateFile),
|
|
20
|
-
library: getLibraryVariableName(),
|
|
21
16
|
inject: true,
|
|
22
17
|
minify: {
|
|
23
18
|
removeComments: true,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { React };
|
|
2
|
-
import * as React from
|
|
2
|
+
import * as React from 'react';
|
|
@@ -5,7 +5,7 @@ import zlib from 'zlib';
|
|
|
5
5
|
export declare const LATEST_VERSION = "latest";
|
|
6
6
|
export declare const excludeNodeModulesExcept: (modules: string[]) => (modulePath: string) => boolean;
|
|
7
7
|
export declare const getLibraryName: () => string;
|
|
8
|
-
export declare const getLibraryVariableName: () => string;
|
|
8
|
+
export declare const getLibraryVariableName: () => string[];
|
|
9
9
|
export declare const mapToFolder: (dependencies: string[], folder: string) => {};
|
|
10
10
|
export declare const getAlias: () => {};
|
|
11
11
|
export declare const modulesToTranspile: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-next.1",
|
|
4
4
|
"description": "ICE MT UI Platform CLI",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -74,15 +74,15 @@
|
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@axe-core/react": "~4.6.0",
|
|
76
76
|
"@babel/cli": "~7.21.0",
|
|
77
|
-
"@babel/core": "~7.21.
|
|
78
|
-
"@babel/eslint-parser": "~7.
|
|
77
|
+
"@babel/core": "~7.21.3",
|
|
78
|
+
"@babel/eslint-parser": "~7.21.3",
|
|
79
79
|
"@babel/node": "~7.20.7",
|
|
80
80
|
"@babel/plugin-proposal-class-properties": "~7.18.6",
|
|
81
81
|
"@babel/plugin-proposal-export-default-from": "~7.18.10",
|
|
82
82
|
"@babel/plugin-syntax-dynamic-import": "~7.8.3",
|
|
83
83
|
"@babel/plugin-syntax-import-assertions": "~7.20.0",
|
|
84
84
|
"@babel/plugin-transform-modules-commonjs": "~7.21.2",
|
|
85
|
-
"@babel/plugin-transform-react-constant-elements": "~7.
|
|
85
|
+
"@babel/plugin-transform-react-constant-elements": "~7.21.3",
|
|
86
86
|
"@babel/plugin-transform-react-inline-elements": "~7.21.0",
|
|
87
87
|
"@babel/plugin-transform-react-jsx-source": "~7.19.6",
|
|
88
88
|
"@babel/plugin-transform-runtime": "~7.21.0",
|
|
@@ -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.8.
|
|
98
|
-
"@nrwl/tao": "15.8.
|
|
99
|
-
"@nrwl/workspace": "15.8.
|
|
97
|
+
"@nrwl/cli": "15.8.6",
|
|
98
|
+
"@nrwl/tao": "15.8.6",
|
|
99
|
+
"@nrwl/workspace": "15.8.6",
|
|
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.40",
|
|
119
119
|
"@swc/jest": "~0.2.24",
|
|
120
120
|
"@testing-library/jest-dom": "~5.16.5",
|
|
121
121
|
"@testing-library/react": "~14.0.0",
|
|
@@ -126,10 +126,10 @@
|
|
|
126
126
|
"@types/compression": "~1.7.2",
|
|
127
127
|
"@types/duplicate-package-checker-webpack-plugin": "~2.1.2",
|
|
128
128
|
"@types/ip": "~1.1.0",
|
|
129
|
-
"@types/jest": "~29.
|
|
129
|
+
"@types/jest": "~29.5.0",
|
|
130
130
|
"@types/jest-axe": "~3.5.5",
|
|
131
131
|
"@types/moment-locales-webpack-plugin": "~1.2.3",
|
|
132
|
-
"@types/node": "~18.
|
|
132
|
+
"@types/node": "~18.15.3",
|
|
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,11 +138,11 @@
|
|
|
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.55.0",
|
|
142
|
+
"@typescript-eslint/parser": "~5.55.0",
|
|
143
143
|
"@vitejs/plugin-react": "~3.1.0",
|
|
144
|
-
"@vitest/coverage-c8": "~0.29.
|
|
145
|
-
"autoprefixer": "~10.4.
|
|
144
|
+
"@vitest/coverage-c8": "~0.29.3",
|
|
145
|
+
"autoprefixer": "~10.4.14",
|
|
146
146
|
"axe-core": "~4.6.3",
|
|
147
147
|
"babel-plugin-date-fns": "~2.0.0",
|
|
148
148
|
"babel-plugin-dynamic-import-node": "~2.3.3",
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"esbuild": "~0.17.11",
|
|
176
176
|
"esbuild-loader": "~3.0.1",
|
|
177
177
|
"esbuild-plugin-svgr": "~1.0.1",
|
|
178
|
-
"eslint": "~8.
|
|
178
|
+
"eslint": "~8.36.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",
|
|
@@ -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.
|
|
191
|
+
"eslint-plugin-jsdoc": "~40.0.3",
|
|
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",
|
|
@@ -198,10 +198,10 @@
|
|
|
198
198
|
"eslint-plugin-storybook": "~0.6.11",
|
|
199
199
|
"eslint-plugin-testing-library": "~5.10.2",
|
|
200
200
|
"eslint-plugin-wdio": "~8.0.14",
|
|
201
|
-
"execa": "~7.
|
|
201
|
+
"execa": "~7.1.1",
|
|
202
202
|
"express": "~4.18.2",
|
|
203
203
|
"express-static-gzip": "~2.1.7",
|
|
204
|
-
"favicons": "~7.1.
|
|
204
|
+
"favicons": "~7.1.1",
|
|
205
205
|
"favicons-webpack-plugin": "~6.0.0",
|
|
206
206
|
"fast-glob": "~3.2.12",
|
|
207
207
|
"find-up": "~6.3.0",
|
|
@@ -224,8 +224,8 @@
|
|
|
224
224
|
"jscodeshift": "~0.14.0",
|
|
225
225
|
"jsdoc": "~4.0.2",
|
|
226
226
|
"lerna": "~6.5.1",
|
|
227
|
-
"lint-staged": "~13.
|
|
228
|
-
"mini-css-extract-plugin": "~2.7.
|
|
227
|
+
"lint-staged": "~13.2.0",
|
|
228
|
+
"mini-css-extract-plugin": "~2.7.4",
|
|
229
229
|
"minimist": "~1.2.8",
|
|
230
230
|
"moment": "~2.29.4",
|
|
231
231
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
@@ -235,15 +235,15 @@
|
|
|
235
235
|
"node-plop": "~0.31.1",
|
|
236
236
|
"nodemon": "~2.0.21",
|
|
237
237
|
"normalize-path": "~3.0.0",
|
|
238
|
-
"npm-check-updates": "16.7.
|
|
238
|
+
"npm-check-updates": "16.7.12",
|
|
239
239
|
"pino": "~8.11.0",
|
|
240
240
|
"pino-http": "~8.3.3",
|
|
241
|
-
"pino-pretty": "~
|
|
241
|
+
"pino-pretty": "~10.0.0",
|
|
242
242
|
"plop": "~3.1.2",
|
|
243
243
|
"postcss": "~8.4.21",
|
|
244
244
|
"postcss-html": "~1.5.0",
|
|
245
245
|
"postcss-jsx": "~0.36.4",
|
|
246
|
-
"postcss-loader": "~7.0
|
|
246
|
+
"postcss-loader": "~7.1.0",
|
|
247
247
|
"postcss-markdown": "~1.2.0",
|
|
248
248
|
"postcss-preset-env": "~8.0.1",
|
|
249
249
|
"postcss-syntax": "~0.36.2",
|
|
@@ -256,33 +256,33 @@
|
|
|
256
256
|
"react-refresh": "~0.14.0",
|
|
257
257
|
"react-test-renderer": "~18.2.0",
|
|
258
258
|
"resize-observer-polyfill": "~1.5.1",
|
|
259
|
-
"resolve-typescript-plugin": "~2.0.
|
|
260
|
-
"rimraf": "~4.
|
|
259
|
+
"resolve-typescript-plugin": "~2.0.1",
|
|
260
|
+
"rimraf": "~4.4.0",
|
|
261
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",
|
|
265
265
|
"storybook-react-router": "~1.0.8",
|
|
266
|
-
"style-loader": "~3.3.
|
|
267
|
-
"stylelint": "~15.
|
|
268
|
-
"stylelint-config-recommended": "~
|
|
266
|
+
"style-loader": "~3.3.2",
|
|
267
|
+
"stylelint": "~15.3.0",
|
|
268
|
+
"stylelint-config-recommended": "~11.0.0",
|
|
269
269
|
"stylelint-config-styled-components": "~0.1.1",
|
|
270
270
|
"supertest": "~6.3.3",
|
|
271
271
|
"swc-loader": "~0.2.3",
|
|
272
272
|
"ts-node": "~10.9.1",
|
|
273
|
-
"tsc-alias": "~1.8.
|
|
274
|
-
"typedoc": "~0.23.
|
|
275
|
-
"typescript": "~
|
|
273
|
+
"tsc-alias": "~1.8.3",
|
|
274
|
+
"typedoc": "~0.23.27",
|
|
275
|
+
"typescript": "~5.0.2",
|
|
276
276
|
"update-notifier": "~6.0.2",
|
|
277
277
|
"url-loader": "~4.1.1",
|
|
278
278
|
"uuid": "~9.0.0",
|
|
279
|
-
"vite": "~4.
|
|
280
|
-
"vitest": "~0.29.
|
|
281
|
-
"vite-tsconfig-paths": "~4.0.
|
|
282
|
-
"webpack": "~5.
|
|
279
|
+
"vite": "~4.2.0",
|
|
280
|
+
"vitest": "~0.29.3",
|
|
281
|
+
"vite-tsconfig-paths": "~4.0.7",
|
|
282
|
+
"webpack": "~5.76.2",
|
|
283
283
|
"webpack-bundle-analyzer": "~4.8.0",
|
|
284
284
|
"webpack-cli": "~5.0.1",
|
|
285
|
-
"webpack-dev-server": "~4.
|
|
285
|
+
"webpack-dev-server": "~4.12.0",
|
|
286
286
|
"webpack-manifest-plugin": "~5.0.0",
|
|
287
287
|
"webpack-merge": "~5.8.0",
|
|
288
288
|
"whatwg-fetch": "~3.6.2",
|
|
@@ -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.
|
|
298
|
+
"styled-components": "~5.3.9"
|
|
299
299
|
}
|
|
300
300
|
}
|