@elliemae/pui-cli 5.20.0 → 5.21.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/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) {
|
|
@@ -74,6 +74,7 @@ const jestConfig = {
|
|
|
74
74
|
testRegex: '(app|lib).*/tests/.*\\.test\\.(js|ts)$',
|
|
75
75
|
snapshotSerializers: [],
|
|
76
76
|
testResultsProcessor: 'jest-sonar-reporter',
|
|
77
|
+
resolver: 'ts-jest-resolver',
|
|
77
78
|
transformIgnorePatterns: [
|
|
78
79
|
'node_modules/(?!(@elliemae/*|lodash-es/*)/)',
|
|
79
80
|
'node_modules/@elliemae/em-platform-document-viewer',
|
|
@@ -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.2",
|
|
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
96
|
"@types/node": "~16.11.11",
|
|
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",
|
|
@@ -180,9 +180,10 @@
|
|
|
180
180
|
"moment": "~2.29.1",
|
|
181
181
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
182
182
|
"msw": "~0.36.0",
|
|
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",
|
|
@@ -221,6 +222,7 @@
|
|
|
221
222
|
"svg-url-loader": "~7.1.1",
|
|
222
223
|
"svgo": "~2.8.0",
|
|
223
224
|
"terser-webpack-plugin": "~5.2.5",
|
|
225
|
+
"ts-jest-resolver": "~2.0.0",
|
|
224
226
|
"ts-node": "~10.4.0",
|
|
225
227
|
"tsc-alias": "~1.4.2",
|
|
226
228
|
"tsc-files": "~1.1.3",
|
|
@@ -231,7 +233,7 @@
|
|
|
231
233
|
"update-notifier": "~5.1.0",
|
|
232
234
|
"url-loader": "~4.1.1",
|
|
233
235
|
"uuid": "~8.3.2",
|
|
234
|
-
"webpack": "~5.
|
|
236
|
+
"webpack": "~5.65.0",
|
|
235
237
|
"webpack-bundle-analyzer": "~4.5.0",
|
|
236
238
|
"webpack-cli": "~4.9.1",
|
|
237
239
|
"webpack-dev-middleware": "~5.2.2",
|