@elliemae/pui-cli 5.20.1 → 5.21.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/lib/cli-commands/pack.js
CHANGED
|
@@ -42,7 +42,7 @@ async function nodeBuild({ srcPath, commonJS, emitModuleType, target }) {
|
|
|
42
42
|
const targetEnv = target === 'node' ? 'TARGET_ENV=node' : '';
|
|
43
43
|
const babelEnv = commonJS ? ' ES_MODULES=false' : '';
|
|
44
44
|
await exec(
|
|
45
|
-
`cross-env NODE_ENV=production MODULE_EXTENSIONS=true ${targetEnv}${babelEnv} babel --extensions ".ts,.tsx,.js,.jsx" ${srcPath} --out-dir ${outDir} --copy-files --no-copy-ignored --ignore **/*.test.js --ignore **/*.test.ts --ignore **/*.spec.js --ignore **/*.spec.ts --ignore **/*.test.jsx --ignore **/*.test.tsx --ignore **/*.spec.jsx --ignore **/*.spec.tsx`,
|
|
45
|
+
`cross-env NODE_ENV=production MODULE_EXTENSIONS=true ${targetEnv}${babelEnv} babel --extensions ".ts,.tsx,.js,.jsx" ${srcPath} --out-dir ${outDir} --copy-files --no-copy-ignored --ignore **/*.d.ts --ignore **/*.test.js --ignore **/*.test.ts --ignore **/*.spec.js --ignore **/*.spec.ts --ignore **/*.test.jsx --ignore **/*.test.tsx --ignore **/*.spec.jsx --ignore **/*.spec.tsx`,
|
|
46
46
|
{ shell: true, stdio: 'inherit' },
|
|
47
47
|
);
|
|
48
48
|
if (emitModuleType) {
|
package/lib/testing/mocks/svg.js
CHANGED
|
@@ -15,7 +15,6 @@ const {
|
|
|
15
15
|
modulesToTranspile,
|
|
16
16
|
getAlias,
|
|
17
17
|
getPaths,
|
|
18
|
-
getMediaPath,
|
|
19
18
|
} = require('./helpers');
|
|
20
19
|
const { isTypeScriptEnabled } = require('../typescript/util');
|
|
21
20
|
|
|
@@ -128,21 +127,6 @@ module.exports = (options) => ({
|
|
|
128
127
|
optimization: options.optimization,
|
|
129
128
|
module: {
|
|
130
129
|
rules: [
|
|
131
|
-
{
|
|
132
|
-
test: /\.(jpe?g|png|gif|svg|ico)$/,
|
|
133
|
-
use: [
|
|
134
|
-
'file-loader',
|
|
135
|
-
{
|
|
136
|
-
loader: 'image-webpack-loader',
|
|
137
|
-
options: {
|
|
138
|
-
gifsicle: {
|
|
139
|
-
enabled: false,
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
enforce: 'pre',
|
|
145
|
-
},
|
|
146
130
|
{
|
|
147
131
|
test: /\.(js|ts|jsx|tsx)$/,
|
|
148
132
|
enforce: 'pre',
|
|
@@ -203,22 +187,13 @@ module.exports = (options) => ({
|
|
|
203
187
|
type: 'asset/resource',
|
|
204
188
|
},
|
|
205
189
|
{
|
|
206
|
-
test: /\.svg
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
loader: '@svgr/webpack',
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
loader: 'file-loader',
|
|
214
|
-
options: {
|
|
215
|
-
name: getMediaPath(),
|
|
216
|
-
},
|
|
217
|
-
},
|
|
218
|
-
],
|
|
190
|
+
test: /\.svg$/i,
|
|
191
|
+
issuer: /\.[jt]sx?$/,
|
|
192
|
+
resourceQuery: /^((?!url).)*$/,
|
|
193
|
+
use: ['@svgr/webpack'],
|
|
219
194
|
},
|
|
220
195
|
{
|
|
221
|
-
test: /\.(jpe?g|png|gif)$/i,
|
|
196
|
+
test: /\.(jpe?g|png|gif|ico)$/i,
|
|
222
197
|
exclude: excludeNodeModulesExcept(['@elliemae/*']),
|
|
223
198
|
type: 'asset',
|
|
224
199
|
},
|
|
@@ -231,6 +206,10 @@ module.exports = (options) => ({
|
|
|
231
206
|
resourceQuery: /resource/,
|
|
232
207
|
type: 'asset/resource',
|
|
233
208
|
},
|
|
209
|
+
{
|
|
210
|
+
type: 'asset',
|
|
211
|
+
resourceQuery: /url/,
|
|
212
|
+
},
|
|
234
213
|
],
|
|
235
214
|
},
|
|
236
215
|
plugins: plugins.concat(options.plugins),
|
|
@@ -20,7 +20,6 @@ const {
|
|
|
20
20
|
modulesToTranspile,
|
|
21
21
|
getAssetPath,
|
|
22
22
|
getAlias,
|
|
23
|
-
getMediaPath,
|
|
24
23
|
} = require('./helpers');
|
|
25
24
|
const { isTypeScriptEnabled } = require('../typescript/util');
|
|
26
25
|
|
|
@@ -88,21 +87,6 @@ module.exports = (options) => ({
|
|
|
88
87
|
optimization: options.optimization,
|
|
89
88
|
module: {
|
|
90
89
|
rules: [
|
|
91
|
-
{
|
|
92
|
-
test: /\.(jpe?g|png|gif|svg|ico)$/,
|
|
93
|
-
use: [
|
|
94
|
-
'file-loader',
|
|
95
|
-
{
|
|
96
|
-
loader: 'image-webpack-loader',
|
|
97
|
-
options: {
|
|
98
|
-
gifsicle: {
|
|
99
|
-
enabled: false,
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
],
|
|
104
|
-
enforce: 'pre',
|
|
105
|
-
},
|
|
106
90
|
{
|
|
107
91
|
test: /^(?!.*\.exec\.js$).*\.(js|ts|jsx|tsx)$/,
|
|
108
92
|
enforce: 'pre',
|
|
@@ -187,22 +171,13 @@ module.exports = (options) => ({
|
|
|
187
171
|
type: 'asset/resource',
|
|
188
172
|
},
|
|
189
173
|
{
|
|
190
|
-
test: /\.svg
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
loader: '@svgr/webpack',
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
loader: 'file-loader',
|
|
198
|
-
options: {
|
|
199
|
-
name: getMediaPath(),
|
|
200
|
-
},
|
|
201
|
-
},
|
|
202
|
-
],
|
|
174
|
+
test: /\.svg$/i,
|
|
175
|
+
issuer: /\.[jt]sx?$/,
|
|
176
|
+
resourceQuery: /^((?!url).)*$/,
|
|
177
|
+
use: ['@svgr/webpack'],
|
|
203
178
|
},
|
|
204
179
|
{
|
|
205
|
-
test: /\.(jpe?g|png|gif)$/i,
|
|
180
|
+
test: /\.(jpe?g|png|gif|ico)$/i,
|
|
206
181
|
exclude: excludeNodeModulesExcept(['@elliemae/*']),
|
|
207
182
|
type: 'asset',
|
|
208
183
|
},
|
|
@@ -220,6 +195,10 @@ module.exports = (options) => ({
|
|
|
220
195
|
resourceQuery: /resource/,
|
|
221
196
|
type: 'asset/resource',
|
|
222
197
|
},
|
|
198
|
+
{
|
|
199
|
+
type: 'asset',
|
|
200
|
+
resourceQuery: /url/,
|
|
201
|
+
},
|
|
223
202
|
],
|
|
224
203
|
},
|
|
225
204
|
plugins: plugins.concat(options.plugins || []),
|
|
@@ -11,7 +11,6 @@ const {
|
|
|
11
11
|
modulesToTranspile,
|
|
12
12
|
resolveExtensions,
|
|
13
13
|
mainFields,
|
|
14
|
-
getMediaPath,
|
|
15
14
|
getCompressionPlugins,
|
|
16
15
|
} = require('./helpers');
|
|
17
16
|
|
|
@@ -51,21 +50,6 @@ const getAdditionalPlugins = () => [
|
|
|
51
50
|
];
|
|
52
51
|
|
|
53
52
|
const getModulePreRules = () => [
|
|
54
|
-
{
|
|
55
|
-
test: /\.(jpe?g|png|gif|svg|ico)$/,
|
|
56
|
-
use: [
|
|
57
|
-
'file-loader',
|
|
58
|
-
{
|
|
59
|
-
loader: 'image-webpack-loader',
|
|
60
|
-
options: {
|
|
61
|
-
gifsicle: {
|
|
62
|
-
enabled: false,
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
enforce: 'pre',
|
|
68
|
-
},
|
|
69
53
|
{
|
|
70
54
|
test: /\.(js|ts|jsx|tsx)$/,
|
|
71
55
|
enforce: 'pre',
|
|
@@ -105,22 +89,17 @@ const getModuleRules = () => [
|
|
|
105
89
|
type: 'asset/resource',
|
|
106
90
|
},
|
|
107
91
|
{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
options: {
|
|
117
|
-
name: getMediaPath(),
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
],
|
|
92
|
+
type: 'asset',
|
|
93
|
+
resourceQuery: /url/,
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
test: /\.svg$/i,
|
|
97
|
+
issuer: /\.[jt]sx?$/,
|
|
98
|
+
resourceQuery: /^((?!url).)*$/,
|
|
99
|
+
use: ['@svgr/webpack'],
|
|
121
100
|
},
|
|
122
101
|
{
|
|
123
|
-
test: /\.(jpe?g|png|gif)$/i,
|
|
102
|
+
test: /\.(jpe?g|png|gif|ico)$/i,
|
|
124
103
|
exclude: excludeNodeModulesExcept(['@elliemae/*']),
|
|
125
104
|
type: 'asset',
|
|
126
105
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.21.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "EllieMae Platform UI CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -88,16 +88,16 @@
|
|
|
88
88
|
"@storybook/react": "~6.3.12",
|
|
89
89
|
"@storybook/theming": "~6.3.12",
|
|
90
90
|
"@stylelint/postcss-css-in-js": "~0.37.2",
|
|
91
|
-
"@svgr/webpack": "~
|
|
92
|
-
"@testing-library/jest-dom": "~5.16.
|
|
91
|
+
"@svgr/webpack": "~6.1.1",
|
|
92
|
+
"@testing-library/jest-dom": "~5.16.1",
|
|
93
93
|
"@testing-library/react": "~12.1.2",
|
|
94
94
|
"@testing-library/react-hooks": "~7.0.2",
|
|
95
95
|
"@types/jest": "~27.0.3",
|
|
96
|
-
"@types/node": "~16.11.
|
|
96
|
+
"@types/node": "~16.11.12",
|
|
97
97
|
"@types/rimraf": "~3.0.2",
|
|
98
98
|
"@types/testing-library__jest-dom": "~5.14.2",
|
|
99
|
-
"@typescript-eslint/eslint-plugin": "~5.
|
|
100
|
-
"@typescript-eslint/parser": "~5.
|
|
99
|
+
"@typescript-eslint/eslint-plugin": "~5.6.0",
|
|
100
|
+
"@typescript-eslint/parser": "~5.6.0",
|
|
101
101
|
"autoprefixer": "~10.4.0",
|
|
102
102
|
"axe-core": "~4.3.5",
|
|
103
103
|
"babel-loader": "~8.2.3",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"dotenv": "~10.0.0",
|
|
133
133
|
"dotenv-webpack": "~7.0.3",
|
|
134
134
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
135
|
-
"eslint": "~8.4.
|
|
135
|
+
"eslint": "~8.4.1",
|
|
136
136
|
"eslint-config-airbnb": "~18.2.1",
|
|
137
137
|
"eslint-config-airbnb-base": "~15.0.0",
|
|
138
138
|
"eslint-config-airbnb-typescript": "~15.0.0",
|
|
@@ -179,10 +179,11 @@
|
|
|
179
179
|
"minimist": "~1.2.5",
|
|
180
180
|
"moment": "~2.29.1",
|
|
181
181
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
182
|
-
"msw": "~0.36.
|
|
182
|
+
"msw": "~0.36.1",
|
|
183
|
+
"node-gyp": "~8.4.1",
|
|
183
184
|
"node-plop": "~0.30.0",
|
|
184
185
|
"nodemon": "~2.0.15",
|
|
185
|
-
"npm-check-updates": "12.0.
|
|
186
|
+
"npm-check-updates": "12.0.3",
|
|
186
187
|
"null-loader": "~4.0.1",
|
|
187
188
|
"pino": "~7.5.1",
|
|
188
189
|
"pino-pretty": "~7.2.0",
|
|
@@ -210,7 +211,7 @@
|
|
|
210
211
|
"script-loader": "~0.7.2",
|
|
211
212
|
"semantic-release": "~18.0.1",
|
|
212
213
|
"shelljs": "~0.8.4",
|
|
213
|
-
"slackify-markdown": "~4.3.
|
|
214
|
+
"slackify-markdown": "~4.3.1",
|
|
214
215
|
"storybook-react-router": "~1.0.8",
|
|
215
216
|
"style-loader": "~3.3.1",
|
|
216
217
|
"stylelint": "~14.1.0",
|
|
@@ -232,7 +233,7 @@
|
|
|
232
233
|
"update-notifier": "~5.1.0",
|
|
233
234
|
"url-loader": "~4.1.1",
|
|
234
235
|
"uuid": "~8.3.2",
|
|
235
|
-
"webpack": "~5.
|
|
236
|
+
"webpack": "~5.65.0",
|
|
236
237
|
"webpack-bundle-analyzer": "~4.5.0",
|
|
237
238
|
"webpack-cli": "~4.9.1",
|
|
238
239
|
"webpack-dev-middleware": "~5.2.2",
|