@elliemae/pui-cli 5.1.2 → 5.4.0
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.
|
@@ -10,7 +10,7 @@ const nodeEnvPreset = {
|
|
|
10
10
|
const webEnvPreset = {
|
|
11
11
|
modules: process.env.ES_MODULES === 'false' ? 'commonjs' : false,
|
|
12
12
|
useBuiltIns: 'usage',
|
|
13
|
-
corejs: { version: '3.
|
|
13
|
+
corejs: { version: '3.18', proposals: true },
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
const presetEnvOptions =
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
const { exit } = require('yargs');
|
|
2
|
-
const {
|
|
2
|
+
const {
|
|
3
|
+
exec,
|
|
4
|
+
logInfo,
|
|
5
|
+
logError,
|
|
6
|
+
logSuccess,
|
|
7
|
+
writeAppInfo,
|
|
8
|
+
} = require('./utils');
|
|
3
9
|
|
|
4
10
|
const { name } = require('../../package.json');
|
|
5
11
|
|
|
@@ -9,6 +15,7 @@ async function buildWebApp() {
|
|
|
9
15
|
await exec(
|
|
10
16
|
`cross-env NODE_ENV=production webpack --config node_modules/${name}/lib/webpack/webpack.prod.babel.js --color`,
|
|
11
17
|
);
|
|
18
|
+
await writeAppInfo();
|
|
12
19
|
}
|
|
13
20
|
|
|
14
21
|
async function buildService() {
|
|
@@ -1,11 +1,81 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
2
|
const execa = require('execa');
|
|
3
3
|
const chalk = require('chalk');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const { readFile, writeFile } = require('fs/promises');
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
const browsersMapping = {
|
|
8
|
+
and_chr: 'Chrome for Android',
|
|
9
|
+
chrome: 'Google Chrome',
|
|
10
|
+
edge: 'Microsoft Edge',
|
|
11
|
+
firefox: 'Mozilla Firefox',
|
|
12
|
+
ios_saf: 'iOS Safari',
|
|
13
|
+
safari: 'Safari',
|
|
14
|
+
samsung: 'Samsung Internet',
|
|
7
15
|
};
|
|
8
16
|
|
|
17
|
+
const exec = async (command, options = { stdio: 'inherit' }) =>
|
|
18
|
+
execa.command(command, options);
|
|
19
|
+
exports.exec = exec;
|
|
20
|
+
|
|
9
21
|
exports.logInfo = console.log;
|
|
10
22
|
exports.logSuccess = (...args) => console.log(chalk.green(...args));
|
|
11
23
|
exports.logError = console.error;
|
|
24
|
+
|
|
25
|
+
const readPackageLock = async () => {
|
|
26
|
+
const appPkgLockFile = path.join(process.cwd(), 'package-lock.json');
|
|
27
|
+
const pkgLockJSON = await readFile(appPkgLockFile, 'utf8');
|
|
28
|
+
const { dependencies } = JSON.parse(pkgLockJSON);
|
|
29
|
+
return (moduleName) => dependencies[moduleName]?.version || '';
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const getSupportedBrowsers = async () => {
|
|
33
|
+
const { stdout } = await exec('npx --no-install browserslist', {
|
|
34
|
+
stdout: 'pipe',
|
|
35
|
+
});
|
|
36
|
+
const browserVersions = (stdout && stdout.split('\n')) || [];
|
|
37
|
+
return browserVersions.reduce((acc, nameVersion) => {
|
|
38
|
+
const [name, version] = nameVersion.split(' ');
|
|
39
|
+
const versionRange = version.split('-');
|
|
40
|
+
acc[browsersMapping[name]] = (versionRange && versionRange[0]) || version;
|
|
41
|
+
return acc;
|
|
42
|
+
}, {});
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const getModulesInfo = async () => {
|
|
46
|
+
try {
|
|
47
|
+
const getModuleVersion = await readPackageLock();
|
|
48
|
+
return {
|
|
49
|
+
react: getModuleVersion('react'),
|
|
50
|
+
'react-dom': getModuleVersion('react-dom'),
|
|
51
|
+
'app-react-dependencies': getModuleVersion(
|
|
52
|
+
'@elliemae/app-react-dependencies',
|
|
53
|
+
),
|
|
54
|
+
'app-sdk': getModuleVersion('@elliemae/pui-app-sdk'),
|
|
55
|
+
cli: getModuleVersion('@elliemae/pui-cli'),
|
|
56
|
+
dimsum: getModuleVersion('@elliemae/ds-system'),
|
|
57
|
+
};
|
|
58
|
+
} catch (err) {
|
|
59
|
+
console.warn(err);
|
|
60
|
+
return {};
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
exports.writeAppInfo = async () => {
|
|
65
|
+
const appInfo = {
|
|
66
|
+
timestamp: new Date().toISOString(),
|
|
67
|
+
modules: await getModulesInfo(),
|
|
68
|
+
browserSupport: await getSupportedBrowsers(),
|
|
69
|
+
screenReaderSupport: [
|
|
70
|
+
'JAWS with Chrome',
|
|
71
|
+
'NVDA with Chrome',
|
|
72
|
+
'VoiceOver with Safari',
|
|
73
|
+
'iOS VoiceOver',
|
|
74
|
+
'Android Talkback',
|
|
75
|
+
],
|
|
76
|
+
};
|
|
77
|
+
await writeFile(
|
|
78
|
+
path.join(process.cwd(), 'build', 'info.json'),
|
|
79
|
+
JSON.stringify(appInfo, null, 2),
|
|
80
|
+
);
|
|
81
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "EllieMae Platform UI CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"indent": 4
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@babel/cli": "~7.15.
|
|
50
|
+
"@babel/cli": "~7.15.7",
|
|
51
51
|
"@babel/core": "~7.15.5",
|
|
52
52
|
"@babel/node": "~7.15.4",
|
|
53
53
|
"@babel/plugin-proposal-class-properties": "~7.14.5",
|
|
@@ -58,17 +58,17 @@
|
|
|
58
58
|
"@babel/plugin-transform-react-inline-elements": "~7.14.5",
|
|
59
59
|
"@babel/plugin-transform-react-jsx-source": "~7.14.5",
|
|
60
60
|
"@babel/plugin-transform-runtime": "~7.15.0",
|
|
61
|
-
"@babel/preset-env": "~7.15.
|
|
61
|
+
"@babel/preset-env": "~7.15.6",
|
|
62
62
|
"@babel/preset-react": "~7.14.5",
|
|
63
63
|
"@babel/preset-typescript": "~7.15.0",
|
|
64
64
|
"@babel/runtime": "~7.15.4",
|
|
65
65
|
"@commitlint/cli": "~13.1.0",
|
|
66
66
|
"@commitlint/config-conventional": "~13.1.0",
|
|
67
67
|
"@elliemae/browserslist-config-elliemae": "~1.2.1",
|
|
68
|
-
"@pmmmwh/react-refresh-webpack-plugin": "~0.
|
|
69
|
-
"@semantic-release/changelog": "~
|
|
70
|
-
"@semantic-release/exec": "~
|
|
71
|
-
"@semantic-release/git": "~
|
|
68
|
+
"@pmmmwh/react-refresh-webpack-plugin": "~0.5.1",
|
|
69
|
+
"@semantic-release/changelog": "~6.0.0",
|
|
70
|
+
"@semantic-release/exec": "~6.0.1",
|
|
71
|
+
"@semantic-release/git": "~10.0.0",
|
|
72
72
|
"@storybook/addon-a11y": "~6.3.8",
|
|
73
73
|
"@storybook/addon-actions": "~6.3.8",
|
|
74
74
|
"@storybook/addon-backgrounds": "~6.3.8",
|
|
@@ -88,15 +88,15 @@
|
|
|
88
88
|
"@storybook/theming": "~6.3.8",
|
|
89
89
|
"@svgr/webpack": "~5.5.0",
|
|
90
90
|
"@testing-library/jest-dom": "~5.14.1",
|
|
91
|
-
"@testing-library/react": "~12.
|
|
91
|
+
"@testing-library/react": "~12.1.0",
|
|
92
92
|
"@testing-library/react-hooks": "~7.0.2",
|
|
93
|
-
"@types/jest": "~27.0.
|
|
94
|
-
"@types/node": "~16.9.
|
|
93
|
+
"@types/jest": "~27.0.2",
|
|
94
|
+
"@types/node": "~16.9.6",
|
|
95
95
|
"@types/rimraf": "~3.0.2",
|
|
96
96
|
"@types/testing-library__jest-dom": "~5.14.1",
|
|
97
|
-
"@typescript-eslint/eslint-plugin": "~4.31.
|
|
98
|
-
"@typescript-eslint/parser": "~4.31.
|
|
99
|
-
"autoprefixer": "~10.3.
|
|
97
|
+
"@typescript-eslint/eslint-plugin": "~4.31.2",
|
|
98
|
+
"@typescript-eslint/parser": "~4.31.2",
|
|
99
|
+
"autoprefixer": "~10.3.5",
|
|
100
100
|
"axe-core": "~4.3.3",
|
|
101
101
|
"babel-eslint": "~10.1.0",
|
|
102
102
|
"babel-loader": "~8.2.2",
|
|
@@ -109,6 +109,7 @@
|
|
|
109
109
|
"babel-plugin-transform-remove-console": "~6.9.4",
|
|
110
110
|
"babel-plugin-transform-strip-block": "~0.0.4",
|
|
111
111
|
"body-parser": "~1.19.0",
|
|
112
|
+
"browserslist": "~4.17.1",
|
|
112
113
|
"bundlesize": "~0.18.1",
|
|
113
114
|
"case-sensitive-paths-webpack-plugin": "~2.4.0",
|
|
114
115
|
"chalk": "~4.1.2",
|
|
@@ -116,11 +117,11 @@
|
|
|
116
117
|
"classnames": "~2.3.1",
|
|
117
118
|
"compare-versions": "~3.6.0",
|
|
118
119
|
"compression": "~1.7.4",
|
|
119
|
-
"compression-webpack-plugin": "~
|
|
120
|
+
"compression-webpack-plugin": "~9.0.0",
|
|
120
121
|
"copy-webpack-plugin": "~9.0.1",
|
|
121
122
|
"cors": "~2.8.5",
|
|
122
123
|
"cross-env": "~7.0.3",
|
|
123
|
-
"css-loader": "~6.
|
|
124
|
+
"css-loader": "~6.3.0",
|
|
124
125
|
"css-minimizer-webpack-plugin": "~3.0.2",
|
|
125
126
|
"depcheck": "~1.4.2",
|
|
126
127
|
"docdash": "~1.2.0",
|
|
@@ -134,21 +135,21 @@
|
|
|
134
135
|
"eslint-config-prettier": "~8.3.0",
|
|
135
136
|
"eslint-config-react-app": "~6.0.0",
|
|
136
137
|
"eslint-import-resolver-babel-module": "~5.3.1",
|
|
137
|
-
"eslint-import-resolver-typescript": "~2.
|
|
138
|
+
"eslint-import-resolver-typescript": "~2.5.0",
|
|
138
139
|
"eslint-import-resolver-webpack": "~0.13.1",
|
|
139
140
|
"eslint-loader": "~4.0.2",
|
|
140
141
|
"eslint-plugin-compat": "~3.13.0",
|
|
141
142
|
"eslint-plugin-eslint-comments": "~3.2.0",
|
|
142
143
|
"eslint-plugin-import": "~2.24.2",
|
|
143
|
-
"eslint-plugin-jest": "~24.4.
|
|
144
|
+
"eslint-plugin-jest": "~24.4.2",
|
|
144
145
|
"eslint-plugin-jsdoc": "~36.1.0",
|
|
145
146
|
"eslint-plugin-jsx-a11y": "~6.4.1",
|
|
146
|
-
"eslint-plugin-mdx": "~1.15.
|
|
147
|
+
"eslint-plugin-mdx": "~1.15.1",
|
|
147
148
|
"eslint-plugin-prettier": "~4.0.0",
|
|
148
|
-
"eslint-plugin-react": "~7.
|
|
149
|
+
"eslint-plugin-react": "~7.26.0",
|
|
149
150
|
"eslint-plugin-react-hooks": "~4.2.0",
|
|
150
151
|
"eslint-plugin-redux-saga": "~1.2.1",
|
|
151
|
-
"eslint-plugin-testing-library": "~4.12.
|
|
152
|
+
"eslint-plugin-testing-library": "~4.12.4",
|
|
152
153
|
"eslint-plugin-wdio": "~7.4.2",
|
|
153
154
|
"eslint-webpack-plugin": "~3.0.1",
|
|
154
155
|
"execa": "~5.1.1",
|
|
@@ -159,40 +160,40 @@
|
|
|
159
160
|
"helmet-csp": "~3.4.0",
|
|
160
161
|
"html-loader": "~2.1.2",
|
|
161
162
|
"html-webpack-plugin": "~5.3.2",
|
|
162
|
-
"http-server": "~13.0.
|
|
163
|
+
"http-server": "~13.0.2",
|
|
163
164
|
"husky": "~7.0.2",
|
|
164
165
|
"husky-init": "~7.0.0",
|
|
165
166
|
"image-minimizer-webpack-plugin": "~2.2.0",
|
|
166
167
|
"imagemin-gifsicle": "~7.0.0",
|
|
167
168
|
"imagemin-jpegtran": "~7.0.0",
|
|
168
169
|
"imagemin-optipng": "~8.0.0",
|
|
169
|
-
"imagemin-svgo": "~
|
|
170
|
+
"imagemin-svgo": "~10.0.0",
|
|
170
171
|
"imports-loader": "~3.0.0",
|
|
171
172
|
"ip": "~1.1.5",
|
|
172
173
|
"jest-axe": "~5.0.1",
|
|
173
|
-
"jest-cli": "~27.
|
|
174
|
+
"jest-cli": "~27.2.1",
|
|
174
175
|
"jest-sonar-reporter": "~2.0.0",
|
|
175
176
|
"jest-styled-components": "~7.0.5",
|
|
176
177
|
"jscodeshift": "~0.13.0",
|
|
177
178
|
"jsdoc": "~3.6.7",
|
|
178
179
|
"lint-staged": "~11.1.2",
|
|
179
|
-
"mini-css-extract-plugin": "~2.
|
|
180
|
+
"mini-css-extract-plugin": "~2.3.0",
|
|
180
181
|
"minimist": "~1.2.5",
|
|
181
182
|
"moment": "~2.29.1",
|
|
182
183
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
183
184
|
"msw": "~0.35.0",
|
|
184
185
|
"node-plop": "~0.26.2",
|
|
185
|
-
"nodemon": "~2.0.
|
|
186
|
+
"nodemon": "~2.0.13",
|
|
186
187
|
"npm-check-updates": "~11.8.5",
|
|
187
188
|
"null-loader": "~4.0.1",
|
|
188
|
-
"pino": "~6.13.
|
|
189
|
-
"pino-pretty": "~7.0.
|
|
189
|
+
"pino": "~6.13.3",
|
|
190
|
+
"pino-pretty": "~7.0.1",
|
|
190
191
|
"pinst": "~2.1.6",
|
|
191
192
|
"plop": "~2.7.4",
|
|
192
|
-
"postcss": "~8.3.
|
|
193
|
+
"postcss": "~8.3.7",
|
|
193
194
|
"postcss-loader": "~6.1.1",
|
|
194
195
|
"postcss-preset-env": "~6.7.0",
|
|
195
|
-
"prettier": "~2.4.
|
|
196
|
+
"prettier": "~2.4.1",
|
|
196
197
|
"pug": "~3.0.2",
|
|
197
198
|
"pug-loader": "~2.4.0",
|
|
198
199
|
"raf": "~3.4.1",
|
|
@@ -204,11 +205,11 @@
|
|
|
204
205
|
"resize-observer-polyfill": "~1.5.1",
|
|
205
206
|
"rimraf": "~3.0.2",
|
|
206
207
|
"script-loader": "~0.7.2",
|
|
207
|
-
"semantic-release": "~
|
|
208
|
+
"semantic-release": "~18.0.0",
|
|
208
209
|
"shelljs": "~0.8.4",
|
|
209
210
|
"slackify-markdown": "~4.3.0",
|
|
210
211
|
"storybook-react-router": "~1.0.8",
|
|
211
|
-
"style-loader": "~3.
|
|
212
|
+
"style-loader": "~3.3.0",
|
|
212
213
|
"stylelint": "~13.13.1",
|
|
213
214
|
"stylelint-config-recommended": "~5.0.0",
|
|
214
215
|
"stylelint-config-styled-components": "~0.1.1",
|
|
@@ -217,29 +218,29 @@
|
|
|
217
218
|
"stylelint-processor-styled-components": "~1.10.0",
|
|
218
219
|
"stylelint-webpack-plugin": "~3.0.1",
|
|
219
220
|
"svg-url-loader": "~7.1.1",
|
|
220
|
-
"svgo": "~2.
|
|
221
|
-
"terser-webpack-plugin": "~5.2.
|
|
221
|
+
"svgo": "~2.7.0",
|
|
222
|
+
"terser-webpack-plugin": "~5.2.4",
|
|
222
223
|
"ts-node": "~10.2.1",
|
|
223
224
|
"tsc-alias": "~1.3.9",
|
|
224
225
|
"tsconfig-paths": "~3.11.0",
|
|
225
226
|
"tsconfig-paths-webpack-plugin": "~3.5.1",
|
|
226
|
-
"type-fest": "~2.
|
|
227
|
-
"typescript": "~4.4.
|
|
227
|
+
"type-fest": "~2.3.4",
|
|
228
|
+
"typescript": "~4.4.3",
|
|
228
229
|
"update-notifier": "~5.1.0",
|
|
229
230
|
"url-loader": "~4.1.1",
|
|
230
231
|
"uuid": "~8.3.2",
|
|
231
|
-
"webpack": "~5.
|
|
232
|
+
"webpack": "~5.53.0",
|
|
232
233
|
"webpack-bundle-analyzer": "~4.4.2",
|
|
233
234
|
"webpack-cli": "~4.8.0",
|
|
234
|
-
"webpack-dev-middleware": "~5.
|
|
235
|
-
"webpack-hot-middleware": "~2.25.
|
|
235
|
+
"webpack-dev-middleware": "~5.2.0",
|
|
236
|
+
"webpack-hot-middleware": "~2.25.1",
|
|
236
237
|
"webpack-manifest-plugin": "~4.0.2",
|
|
237
238
|
"webpack-merge": "~5.8.0",
|
|
238
239
|
"webpack-pwa-manifest": "~4.3.0",
|
|
239
240
|
"webpack-strip-block": "~0.3.0",
|
|
240
241
|
"whatwg-fetch": "~3.6.2",
|
|
241
|
-
"workbox-webpack-plugin": "~6.
|
|
242
|
-
"yargs": "~17.
|
|
242
|
+
"workbox-webpack-plugin": "~6.3.0",
|
|
243
|
+
"yargs": "~17.2.0"
|
|
243
244
|
},
|
|
244
245
|
"devDependencies": {
|
|
245
246
|
"redux": "~4.1.1",
|