@elliemae/pui-cli 6.0.0-beta.27 → 6.0.0-beta.30
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const { getAppConfig, getAssetPath } = require('../webpack/helpers');
|
|
3
|
+
const swcrcConfig = require('../transpile/swcrc.config.js');
|
|
3
4
|
|
|
4
5
|
const name = '@elliemae/pui-cli';
|
|
5
6
|
const rootDir = path.join('<rootDir>', 'node_modules', name);
|
|
@@ -66,9 +67,13 @@ const jestConfig = {
|
|
|
66
67
|
'@elliemae/pui-user-monitoring': `${getRootDir()}/lib/testing/mocks/pui-user-monitoring.js`,
|
|
67
68
|
'@elliemae/pui-app-loader': `${getRootDir()}/lib/testing/mocks/pui-app-loader.js`,
|
|
68
69
|
'@elliemae/pui-diagnostics': `${getRootDir()}/lib/testing/mocks/pui-diagnostics.js`,
|
|
70
|
+
'react-spring/web': '<rootDir>/node_modules/react-spring/web.cjs.js',
|
|
71
|
+
'react-spring/renderprops':
|
|
72
|
+
'<rootDir>/node_modules/react-spring/renderprops.cjs.js',
|
|
69
73
|
'styled-components':
|
|
70
74
|
'<rootDir>/node_modules/styled-components/dist/styled-components.cjs.js',
|
|
71
75
|
},
|
|
76
|
+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
72
77
|
setupFilesAfterEnv: [`${getRootDir()}/lib/testing/setup-tests.js`],
|
|
73
78
|
setupFiles: ['raf/polyfill', 'whatwg-fetch'],
|
|
74
79
|
testRegex: '(app|lib).*/tests/.*\\.test\\.[jt]sx?$',
|
|
@@ -76,18 +81,21 @@ const jestConfig = {
|
|
|
76
81
|
testResultsProcessor: 'jest-sonar-reporter',
|
|
77
82
|
resolver: path.resolve(__dirname, './resolver.js'),
|
|
78
83
|
transform: {
|
|
79
|
-
'^.+\\.[jt]sx?$': [
|
|
80
|
-
'esbuild-jest',
|
|
81
|
-
{
|
|
82
|
-
target: 'es2020',
|
|
83
|
-
loaders: {
|
|
84
|
-
'.js': 'jsx',
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
],
|
|
84
|
+
'^.+\\.[jt]sx?$': ['@swc/jest', swcrcConfig],
|
|
88
85
|
},
|
|
86
|
+
// transform: {
|
|
87
|
+
// '^.+\\.[jt]sx?$': [
|
|
88
|
+
// 'esbuild-jest',
|
|
89
|
+
// {
|
|
90
|
+
// target: 'es2020',
|
|
91
|
+
// loaders: {
|
|
92
|
+
// '.js': 'jsx',
|
|
93
|
+
// },
|
|
94
|
+
// },
|
|
95
|
+
// ],
|
|
96
|
+
// },
|
|
89
97
|
transformIgnorePatterns: [
|
|
90
|
-
'node_modules/(?!(@elliemae/
|
|
98
|
+
'node_modules/(?!(@elliemae/pui-cli|lodash-es|react-select|react-dates)/)',
|
|
91
99
|
],
|
|
92
100
|
globals: {
|
|
93
101
|
APP_CONFIG: getAppConfig(),
|
|
@@ -99,6 +107,6 @@ const jestConfig = {
|
|
|
99
107
|
|
|
100
108
|
if (isReactModule && jestConfig.setupFilesAfterEnv)
|
|
101
109
|
jestConfig.setupFilesAfterEnv.push(
|
|
102
|
-
`${getRootDir()}/lib/testing/setup-
|
|
110
|
+
`${getRootDir()}/lib/testing/setup-react-env.js`,
|
|
103
111
|
);
|
|
104
112
|
module.exports = jestConfig;
|
package/lib/testing/resolver.js
CHANGED
|
@@ -13,13 +13,16 @@ const resolutions = [
|
|
|
13
13
|
},
|
|
14
14
|
];
|
|
15
15
|
|
|
16
|
-
const
|
|
16
|
+
const resolveConfig = {
|
|
17
17
|
conditionNames: ['import', 'node', 'default'],
|
|
18
|
-
extensions: ['.
|
|
19
|
-
|
|
18
|
+
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.node'],
|
|
19
|
+
modules: ['node_modules', 'app', 'lib'],
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const importResolver = require('enhanced-resolve').create.sync(resolveConfig);
|
|
20
23
|
const requireResolver = require('enhanced-resolve').create.sync({
|
|
24
|
+
...resolveConfig,
|
|
21
25
|
conditionNames: ['require', 'node', 'default'],
|
|
22
|
-
extensions: ['.js', '.jsx', '.json', '.node', '.ts', '.tsx'],
|
|
23
26
|
});
|
|
24
27
|
|
|
25
28
|
module.exports = (request, options) => {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const { merge } = require('lodash');
|
|
4
|
+
|
|
5
|
+
let projectConfig = {};
|
|
6
|
+
const projectPath = path.join(process.cwd(), '.swcrc');
|
|
7
|
+
if (fs.existsSync(projectPath)) {
|
|
8
|
+
projectConfig = JSON.parse(fs.readFileSync(projectPath, 'utf-8'));
|
|
9
|
+
}
|
|
10
|
+
const localConfig = JSON.parse(
|
|
11
|
+
fs.readFileSync(path.join(__dirname, '.swcrc'), 'utf-8'),
|
|
12
|
+
);
|
|
13
|
+
module.exports = merge(localConfig, projectConfig);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "ICE MT UI Platform CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -47,51 +47,54 @@
|
|
|
47
47
|
"indent": 4
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@babel/cli": "~7.16.
|
|
51
|
-
"@babel/core": "~7.16.
|
|
52
|
-
"@babel/eslint-parser": "~7.16.
|
|
53
|
-
"@babel/node": "~7.16.
|
|
54
|
-
"@babel/plugin-proposal-class-properties": "~7.16.
|
|
55
|
-
"@babel/plugin-proposal-export-default-from": "~7.16.
|
|
50
|
+
"@babel/cli": "~7.16.7",
|
|
51
|
+
"@babel/core": "~7.16.7",
|
|
52
|
+
"@babel/eslint-parser": "~7.16.5",
|
|
53
|
+
"@babel/node": "~7.16.7",
|
|
54
|
+
"@babel/plugin-proposal-class-properties": "~7.16.7",
|
|
55
|
+
"@babel/plugin-proposal-export-default-from": "~7.16.7",
|
|
56
56
|
"@babel/plugin-syntax-dynamic-import": "~7.8.3",
|
|
57
|
-
"@babel/plugin-transform-modules-commonjs": "~7.16.
|
|
58
|
-
"@babel/plugin-transform-react-constant-elements": "~7.16.
|
|
59
|
-
"@babel/plugin-transform-react-inline-elements": "~7.16.
|
|
60
|
-
"@babel/plugin-transform-react-jsx-source": "~7.16.
|
|
61
|
-
"@babel/plugin-transform-runtime": "~7.16.
|
|
62
|
-
"@babel/preset-env": "~7.16.
|
|
63
|
-
"@babel/preset-react": "~7.16.
|
|
64
|
-
"@babel/preset-typescript": "~7.16.
|
|
65
|
-
"@babel/runtime": "~7.16.
|
|
66
|
-
"@commitlint/cli": "~
|
|
67
|
-
"@commitlint/config-conventional": "~
|
|
57
|
+
"@babel/plugin-transform-modules-commonjs": "~7.16.7",
|
|
58
|
+
"@babel/plugin-transform-react-constant-elements": "~7.16.7",
|
|
59
|
+
"@babel/plugin-transform-react-inline-elements": "~7.16.7",
|
|
60
|
+
"@babel/plugin-transform-react-jsx-source": "~7.16.7",
|
|
61
|
+
"@babel/plugin-transform-runtime": "~7.16.7",
|
|
62
|
+
"@babel/preset-env": "~7.16.7",
|
|
63
|
+
"@babel/preset-react": "~7.16.7",
|
|
64
|
+
"@babel/preset-typescript": "~7.16.7",
|
|
65
|
+
"@babel/runtime": "~7.16.7",
|
|
66
|
+
"@commitlint/cli": "~16.0.1",
|
|
67
|
+
"@commitlint/config-conventional": "~16.0.0",
|
|
68
68
|
"@elliemae/browserslist-config-elliemae": "~1.2.1",
|
|
69
|
-
"@pmmmwh/react-refresh-webpack-plugin": "~0.5.
|
|
69
|
+
"@pmmmwh/react-refresh-webpack-plugin": "~0.5.4",
|
|
70
70
|
"@semantic-release/changelog": "~6.0.1",
|
|
71
|
-
"@semantic-release/exec": "~6.0.
|
|
71
|
+
"@semantic-release/exec": "~6.0.3",
|
|
72
72
|
"@semantic-release/git": "~10.0.1",
|
|
73
|
-
"@storybook/addon-a11y": "~6.4.
|
|
74
|
-
"@storybook/addon-essentials": "~6.4.
|
|
73
|
+
"@storybook/addon-a11y": "~6.4.9",
|
|
74
|
+
"@storybook/addon-essentials": "~6.4.9",
|
|
75
75
|
"@storybook/addon-events": "~6.2.9",
|
|
76
|
-
"@storybook/addon-interactions": "~6.4.
|
|
77
|
-
"@storybook/addon-links": "~6.4.
|
|
78
|
-
"@storybook/addon-storysource": "~6.4.
|
|
79
|
-
"@storybook/builder-webpack5": "~6.4.
|
|
80
|
-
"@storybook/manager-webpack5": "~6.4.
|
|
81
|
-
"@storybook/react": "~6.4.
|
|
82
|
-
"@storybook/theming": "~6.4.
|
|
76
|
+
"@storybook/addon-interactions": "~6.4.9",
|
|
77
|
+
"@storybook/addon-links": "~6.4.9",
|
|
78
|
+
"@storybook/addon-storysource": "~6.4.9",
|
|
79
|
+
"@storybook/builder-webpack5": "~6.4.9",
|
|
80
|
+
"@storybook/manager-webpack5": "~6.4.9",
|
|
81
|
+
"@storybook/react": "~6.4.9",
|
|
82
|
+
"@storybook/theming": "~6.4.9",
|
|
83
83
|
"@stylelint/postcss-css-in-js": "~0.37.2",
|
|
84
|
-
"@svgr/webpack": "~6.1.
|
|
84
|
+
"@svgr/webpack": "~6.1.2",
|
|
85
|
+
"@swc/cli": "~0.1.55",
|
|
86
|
+
"@swc/core": "~1.2.124",
|
|
87
|
+
"@swc/jest": "~0.2.15",
|
|
85
88
|
"@testing-library/jest-dom": "~5.16.1",
|
|
86
89
|
"@testing-library/react": "~12.1.2",
|
|
87
90
|
"@testing-library/react-hooks": "~7.0.2",
|
|
88
|
-
"@types/jest": "~27.0
|
|
89
|
-
"@types/node": "~
|
|
91
|
+
"@types/jest": "~27.4.0",
|
|
92
|
+
"@types/node": "~17.0.5",
|
|
90
93
|
"@types/rimraf": "~3.0.2",
|
|
91
94
|
"@types/testing-library__jest-dom": "~5.14.2",
|
|
92
|
-
"@typescript-eslint/eslint-plugin": "~5.
|
|
93
|
-
"@typescript-eslint/parser": "~5.
|
|
94
|
-
"autoprefixer": "~10.4.
|
|
95
|
+
"@typescript-eslint/eslint-plugin": "~5.8.1",
|
|
96
|
+
"@typescript-eslint/parser": "~5.8.1",
|
|
97
|
+
"autoprefixer": "~10.4.1",
|
|
95
98
|
"axe-core": "~4.3.5",
|
|
96
99
|
"babel-loader": "~8.2.3",
|
|
97
100
|
"babel-plugin-add-import-extension": "1.5.1",
|
|
@@ -104,33 +107,33 @@
|
|
|
104
107
|
"babel-plugin-styled-components": "~2.0.2",
|
|
105
108
|
"babel-plugin-transform-react-remove-prop-types": "~0.4.24",
|
|
106
109
|
"babel-plugin-transform-remove-console": "~6.9.4",
|
|
107
|
-
"babel-plugin-transform-strip-block": "~0.0.
|
|
108
|
-
"body-parser": "~1.19.
|
|
109
|
-
"browserslist": "~4.
|
|
110
|
+
"babel-plugin-transform-strip-block": "~0.0.5",
|
|
111
|
+
"body-parser": "~1.19.1",
|
|
112
|
+
"browserslist": "~4.19.1",
|
|
110
113
|
"bundlesize": "~0.18.1",
|
|
111
114
|
"case-sensitive-paths-webpack-plugin": "~2.4.0",
|
|
112
115
|
"chalk": "~4.1.2",
|
|
113
116
|
"circular-dependency-plugin": "~5.2.2",
|
|
114
117
|
"classnames": "~2.3.1",
|
|
115
|
-
"compare-versions": "~4.1.
|
|
118
|
+
"compare-versions": "~4.1.2",
|
|
116
119
|
"compression": "~1.7.4",
|
|
117
|
-
"compression-webpack-plugin": "~9.0
|
|
118
|
-
"copy-webpack-plugin": "~10.
|
|
120
|
+
"compression-webpack-plugin": "~9.2.0",
|
|
121
|
+
"copy-webpack-plugin": "~10.2.0",
|
|
119
122
|
"cors": "~2.8.5",
|
|
120
123
|
"cross-env": "~7.0.3",
|
|
121
124
|
"css-loader": "~6.5.1",
|
|
122
|
-
"css-minimizer-webpack-plugin": "~3.
|
|
125
|
+
"css-minimizer-webpack-plugin": "~3.3.1",
|
|
123
126
|
"depcheck": "~1.4.2",
|
|
124
127
|
"docdash": "~1.2.0",
|
|
125
128
|
"dotenv": "~10.0.0",
|
|
126
129
|
"dotenv-webpack": "~7.0.3",
|
|
127
130
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
128
131
|
"enhanced-resolve": "~5.8.3",
|
|
129
|
-
"esbuild": "~0.14.
|
|
132
|
+
"esbuild": "~0.14.9",
|
|
130
133
|
"esbuild-jest": "~0.5.0",
|
|
131
|
-
"esbuild-loader": "~2.
|
|
132
|
-
"esbuild-plugin-svgr": "~0.0
|
|
133
|
-
"eslint": "~8.
|
|
134
|
+
"esbuild-loader": "~2.18.0",
|
|
135
|
+
"esbuild-plugin-svgr": "~1.0.0",
|
|
136
|
+
"eslint": "~8.5.0",
|
|
134
137
|
"eslint-config-airbnb": "~18.2.1",
|
|
135
138
|
"eslint-config-airbnb-base": "~15.0.0",
|
|
136
139
|
"eslint-config-airbnb-typescript": "~15.0.0",
|
|
@@ -142,20 +145,20 @@
|
|
|
142
145
|
"eslint-plugin-compat": "~3.13.0",
|
|
143
146
|
"eslint-plugin-eslint-comments": "~3.2.0",
|
|
144
147
|
"eslint-plugin-import": "~2.25.3",
|
|
145
|
-
"eslint-plugin-jest": "~25.3.
|
|
146
|
-
"eslint-plugin-jsdoc": "~37.
|
|
148
|
+
"eslint-plugin-jest": "~25.3.3",
|
|
149
|
+
"eslint-plugin-jsdoc": "~37.5.0",
|
|
147
150
|
"eslint-plugin-jsx-a11y": "~6.5.1",
|
|
148
151
|
"eslint-plugin-mdx": "~1.16.0",
|
|
149
152
|
"eslint-plugin-prettier": "~4.0.0",
|
|
150
|
-
"eslint-plugin-react": "~7.
|
|
153
|
+
"eslint-plugin-react": "~7.28.0",
|
|
151
154
|
"eslint-plugin-react-hooks": "~4.3.0",
|
|
152
|
-
"eslint-plugin-redux-saga": "~1.
|
|
153
|
-
"eslint-plugin-storybook": "~0.5.
|
|
155
|
+
"eslint-plugin-redux-saga": "~1.3.2",
|
|
156
|
+
"eslint-plugin-storybook": "~0.5.5",
|
|
154
157
|
"eslint-plugin-testing-library": "~5.0.1",
|
|
155
158
|
"eslint-plugin-wdio": "~7.4.2",
|
|
156
159
|
"express-static-gzip": "~2.1.1",
|
|
157
160
|
"execa": "~5.1.1",
|
|
158
|
-
"express": "~4.17.
|
|
161
|
+
"express": "~4.17.2",
|
|
159
162
|
"express-pino-logger": "~7.0.0",
|
|
160
163
|
"favicons": "~6.2.2",
|
|
161
164
|
"favicons-webpack-plugin": "~5.0.2",
|
|
@@ -170,33 +173,33 @@
|
|
|
170
173
|
"imports-loader": "~3.1.1",
|
|
171
174
|
"ip": "~1.1.5",
|
|
172
175
|
"jest-axe": "~5.0.1",
|
|
173
|
-
"jest-cli": "~27.4.
|
|
176
|
+
"jest-cli": "~27.4.5",
|
|
174
177
|
"jest-sonar-reporter": "~2.0.0",
|
|
175
178
|
"jest-styled-components": "~7.0.8",
|
|
176
179
|
"jscodeshift": "~0.13.0",
|
|
177
180
|
"jsdoc": "~3.6.7",
|
|
178
|
-
"lint-staged": "~12.1.
|
|
181
|
+
"lint-staged": "~12.1.4",
|
|
179
182
|
"mini-css-extract-plugin": "~2.4.5",
|
|
180
183
|
"minimist": "~1.2.5",
|
|
181
184
|
"moment": "~2.29.1",
|
|
182
185
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
183
|
-
"msw": "~0.36.
|
|
186
|
+
"msw": "~0.36.3",
|
|
184
187
|
"node-gyp": "~8.4.1",
|
|
185
188
|
"node-plop": "~0.30.0",
|
|
186
189
|
"nodemon": "~2.0.15",
|
|
187
|
-
"npm-check-updates": "12.0.
|
|
190
|
+
"npm-check-updates": "12.0.5",
|
|
188
191
|
"null-loader": "~4.0.1",
|
|
189
|
-
"pino": "~7.
|
|
190
|
-
"pino-pretty": "~7.
|
|
192
|
+
"pino": "~7.6.2",
|
|
193
|
+
"pino-pretty": "~7.3.0",
|
|
191
194
|
"pinst": "~2.1.6",
|
|
192
|
-
"plop": "~3.0.
|
|
193
|
-
"postcss": "~8.4.
|
|
195
|
+
"plop": "~3.0.5",
|
|
196
|
+
"postcss": "~8.4.5",
|
|
194
197
|
"postcss-jsx": "~0.36.4",
|
|
195
198
|
"postcss-html": "~1.3.0",
|
|
196
199
|
"postcss-markdown": "~1.2.0",
|
|
197
200
|
"postcss-syntax": "~0.36.2",
|
|
198
201
|
"postcss-loader": "~6.2.1",
|
|
199
|
-
"postcss-preset-env": "~7.0
|
|
202
|
+
"postcss-preset-env": "~7.1.0",
|
|
200
203
|
"prettier": "~2.5.1",
|
|
201
204
|
"pug": "~3.0.2",
|
|
202
205
|
"pug-loader": "~2.4.0",
|
|
@@ -213,33 +216,34 @@
|
|
|
213
216
|
"semantic-release": "~18.0.1",
|
|
214
217
|
"shelljs": "~0.8.4",
|
|
215
218
|
"slackify-markdown": "~4.3.1",
|
|
216
|
-
"storybook-builder-vite": "~0.1.
|
|
219
|
+
"storybook-builder-vite": "~0.1.13",
|
|
217
220
|
"storybook-addon-turbo-build": "~1.0.1",
|
|
218
221
|
"storybook-react-router": "~1.0.8",
|
|
219
222
|
"style-loader": "~3.3.1",
|
|
220
|
-
"stylelint": "~14.
|
|
223
|
+
"stylelint": "~14.2.0",
|
|
221
224
|
"stylelint-config-recommended": "~6.0.0",
|
|
222
225
|
"stylelint-config-styled-components": "~0.1.1",
|
|
223
226
|
"stylelint-custom-processor-loader": "~0.6.0",
|
|
224
227
|
"stylelint-processor-styled-components": "~1.10.0",
|
|
225
228
|
"svg-url-loader": "~7.1.1",
|
|
226
229
|
"svgo": "~2.8.0",
|
|
227
|
-
"
|
|
230
|
+
"swc-loader": "~0.1.15",
|
|
231
|
+
"terser-webpack-plugin": "~5.3.0",
|
|
228
232
|
"ts-node": "~10.4.0",
|
|
229
|
-
"tsc-alias": "~1.
|
|
233
|
+
"tsc-alias": "~1.5.0",
|
|
230
234
|
"tsc-files": "~1.1.3",
|
|
231
235
|
"tsconfig-paths": "~3.12.0",
|
|
232
236
|
"tsconfig-paths-webpack-plugin": "~3.5.2",
|
|
233
237
|
"type-fest": "~2.8.0",
|
|
234
|
-
"typescript": "~4.5.
|
|
238
|
+
"typescript": "~4.5.4",
|
|
235
239
|
"update-notifier": "~5.1.0",
|
|
236
240
|
"url-loader": "~4.1.1",
|
|
237
241
|
"uuid": "~8.3.2",
|
|
238
|
-
"vite": "~2.7.
|
|
242
|
+
"vite": "~2.7.10",
|
|
239
243
|
"webpack": "~5.65.0",
|
|
240
244
|
"webpack-bundle-analyzer": "~4.5.0",
|
|
241
245
|
"webpack-cli": "~4.9.1",
|
|
242
|
-
"webpack-dev-middleware": "~5.
|
|
246
|
+
"webpack-dev-middleware": "~5.3.0",
|
|
243
247
|
"webpack-hot-middleware": "~2.25.1",
|
|
244
248
|
"webpack-manifest-plugin": "~4.0.2",
|
|
245
249
|
"webpack-merge": "~5.8.0",
|
|
@@ -247,7 +251,7 @@
|
|
|
247
251
|
"webpack-strip-block": "~0.3.0",
|
|
248
252
|
"whatwg-fetch": "~3.6.2",
|
|
249
253
|
"workbox-webpack-plugin": "~6.4.2",
|
|
250
|
-
"yargs": "~17.3.
|
|
254
|
+
"yargs": "~17.3.1"
|
|
251
255
|
},
|
|
252
256
|
"devDependencies": {
|
|
253
257
|
"redux": "~4.1.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'jest-styled-components';
|