@elliemae/pui-cli 6.0.0-beta.21 → 6.0.0-beta.22
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 +1 -1
- package/lib/cli-commands/test.js +13 -15
- package/lib/lint/eslint/common.js +1 -1
- package/lib/{esbuild.js → transpile/esbuild.js} +0 -0
- package/lib/{react-shim.js → transpile/react-shim.js} +0 -0
- package/lib/webpack/webpack.base.babel.js +2 -2
- package/lib/webpack/webpack.dev.babel.js +0 -2
- package/lib/webpack/webpack.lib.base.babel.js +21 -8
- package/lib/webpack/webpack.lib.dev.babel.js +0 -2
- package/lib/webpack/webpack.lib.prod.babel.js +1 -1
- package/lib/webpack/webpack.prod.babel.js +1 -1
- package/package.json +5 -5
package/lib/cli-commands/pack.js
CHANGED
|
@@ -4,7 +4,7 @@ const path = require('path');
|
|
|
4
4
|
const { writeFile, readFile } = require('fs/promises');
|
|
5
5
|
const { exec, logInfo, logError, logSuccess } = require('./utils');
|
|
6
6
|
const { isTypeScriptEnabled } = require('../typescript/util');
|
|
7
|
-
const { esBuild } = require('../esbuild');
|
|
7
|
+
const { esBuild } = require('../transpile/esbuild');
|
|
8
8
|
|
|
9
9
|
const { name } = require('../../package.json');
|
|
10
10
|
|
package/lib/cli-commands/test.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const { exit } = require('yargs');
|
|
2
2
|
const { exec, logError, logSuccess } = require('./utils');
|
|
3
|
-
const { lintCSS, lintJS } = require('./lint');
|
|
3
|
+
// const { lintCSS, lintJS } = require('./lint');
|
|
4
4
|
|
|
5
5
|
const { CI = false } = process.env;
|
|
6
6
|
|
|
@@ -21,20 +21,18 @@ async function handler(argv) {
|
|
|
21
21
|
if (argv.r) commandOptions += ' --bail --findRelatedTests';
|
|
22
22
|
if (argv.s) commandOptions += ' --silent';
|
|
23
23
|
try {
|
|
24
|
-
if (!CI) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
24
|
+
// if (!CI) {
|
|
25
|
+
// try {
|
|
26
|
+
// await lintJS();
|
|
27
|
+
// await lintCSS();
|
|
28
|
+
// logSuccess('Linting completed');
|
|
29
|
+
// } catch (err) {
|
|
30
|
+
// logError('Linting failed');
|
|
31
|
+
// exit(-1, err);
|
|
32
|
+
// return -1;
|
|
33
|
+
// }
|
|
34
|
+
// }
|
|
35
|
+
await exec('rimraf ./reports');
|
|
38
36
|
// eslint-disable-next-line jest/valid-title, jest/no-disabled-tests, jest/expect-expect
|
|
39
37
|
await test(commandOptions);
|
|
40
38
|
logSuccess('Unit test execution completed');
|
|
File without changes
|
|
File without changes
|
|
@@ -17,7 +17,7 @@ const {
|
|
|
17
17
|
getAlias,
|
|
18
18
|
getPaths,
|
|
19
19
|
} = require('./helpers');
|
|
20
|
-
const { ESBUILD_TARGET } = require('../esbuild');
|
|
20
|
+
const { ESBUILD_TARGET } = require('../transpile/esbuild');
|
|
21
21
|
|
|
22
22
|
const minicssLoader = {
|
|
23
23
|
loader: MiniCssExtractPlugin.loader,
|
|
@@ -240,6 +240,6 @@ module.exports = (options) => ({
|
|
|
240
240
|
'@elliemae/pui-diagnostics': 'emuiDiagnostics',
|
|
241
241
|
},
|
|
242
242
|
devtool: options.devtool || 'eval-source-map',
|
|
243
|
-
target: 'web',
|
|
243
|
+
target: 'web',
|
|
244
244
|
performance: options.performance || {},
|
|
245
245
|
});
|
|
@@ -19,7 +19,7 @@ const {
|
|
|
19
19
|
getAssetPath,
|
|
20
20
|
getAlias,
|
|
21
21
|
} = require('./helpers');
|
|
22
|
-
const { ESBUILD_TARGET } = require('../esbuild');
|
|
22
|
+
const { ESBUILD_TARGET } = require('../transpile/esbuild');
|
|
23
23
|
|
|
24
24
|
const minicssLoader = {
|
|
25
25
|
loader: MiniCssExtractPlugin.loader,
|
|
@@ -74,7 +74,7 @@ module.exports = (options) => ({
|
|
|
74
74
|
module: {
|
|
75
75
|
rules: [
|
|
76
76
|
{
|
|
77
|
-
test: /^(?!.*\.exec\.js$).*\.
|
|
77
|
+
test: /^(?!.*\.exec\.js$).*\.[jt]sx?$/,
|
|
78
78
|
enforce: 'pre',
|
|
79
79
|
exclude: /node_modules/,
|
|
80
80
|
resolve: {
|
|
@@ -91,7 +91,7 @@ module.exports = (options) => ({
|
|
|
91
91
|
],
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
test: /^(?!.*\.exec\.js$).*\.
|
|
94
|
+
test: /^(?!.*\.exec\.js$).*\.jsx?$/, // Transform all .js and .jsx files with Babel
|
|
95
95
|
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
96
96
|
resolve: {
|
|
97
97
|
fullySpecified: false,
|
|
@@ -104,6 +104,20 @@ module.exports = (options) => ({
|
|
|
104
104
|
},
|
|
105
105
|
},
|
|
106
106
|
},
|
|
107
|
+
{
|
|
108
|
+
test: /^(?!.*\.exec\.js$).*\.tsx?$/, // Transform all .js and .jsx files with Babel
|
|
109
|
+
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
110
|
+
resolve: {
|
|
111
|
+
fullySpecified: false,
|
|
112
|
+
},
|
|
113
|
+
use: {
|
|
114
|
+
loader: 'esbuild-loader',
|
|
115
|
+
options: {
|
|
116
|
+
loader: 'tsx',
|
|
117
|
+
target: ESBUILD_TARGET,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
107
121
|
{
|
|
108
122
|
test: /\.exec\.js$/,
|
|
109
123
|
exclude: /node_modules/,
|
|
@@ -155,10 +169,6 @@ module.exports = (options) => ({
|
|
|
155
169
|
exclude: excludeNodeModulesExcept(['@elliemae/*']),
|
|
156
170
|
type: 'asset/resource',
|
|
157
171
|
},
|
|
158
|
-
{
|
|
159
|
-
type: 'asset',
|
|
160
|
-
resourceQuery: /url/, // *.svg?react
|
|
161
|
-
},
|
|
162
172
|
{
|
|
163
173
|
test: /\.svg$/i,
|
|
164
174
|
issuer: /\.[jt]sx?$/,
|
|
@@ -183,6 +193,10 @@ module.exports = (options) => ({
|
|
|
183
193
|
resourceQuery: /resource/,
|
|
184
194
|
type: 'asset/resource',
|
|
185
195
|
},
|
|
196
|
+
{
|
|
197
|
+
type: 'asset',
|
|
198
|
+
resourceQuery: /url/,
|
|
199
|
+
},
|
|
186
200
|
],
|
|
187
201
|
},
|
|
188
202
|
plugins: plugins.concat(options.plugins || []),
|
|
@@ -191,7 +205,6 @@ module.exports = (options) => ({
|
|
|
191
205
|
extensions: ['.wasm', '.mjs', '.ts', '.tsx', '.js', '.jsx', '.json'],
|
|
192
206
|
mainFields: ['browser', 'module', 'main'],
|
|
193
207
|
alias: {
|
|
194
|
-
'lodash-es': 'lodash',
|
|
195
208
|
...getAlias(),
|
|
196
209
|
...((options.resolve || {}).alias || {}),
|
|
197
210
|
},
|
|
@@ -4,7 +4,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
4
4
|
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
|
5
5
|
const { ESBuildMinifyPlugin } = require('esbuild-loader');
|
|
6
6
|
const { getLibraryName, getCompressionPlugins } = require('./helpers');
|
|
7
|
-
const { ESBUILD_TARGET } = require('../esbuild');
|
|
7
|
+
const { ESBUILD_TARGET } = require('../transpile/esbuild');
|
|
8
8
|
|
|
9
9
|
const libraryName = getLibraryName();
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ const {
|
|
|
16
16
|
isGoogleTagManagerEnabled,
|
|
17
17
|
getCompressionPlugins,
|
|
18
18
|
} = require('./helpers');
|
|
19
|
-
const { ESBUILD_TARGET } = require('../esbuild');
|
|
19
|
+
const { ESBUILD_TARGET } = require('../transpile/esbuild');
|
|
20
20
|
|
|
21
21
|
const getProdConfig = ({ latestVersion = true } = {}) => {
|
|
22
22
|
const { buildPath, publicPath } = getPaths(latestVersion);
|
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.22",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "ICE MT UI Platform CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -125,11 +125,11 @@
|
|
|
125
125
|
"dotenv": "~10.0.0",
|
|
126
126
|
"dotenv-webpack": "~7.0.3",
|
|
127
127
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
128
|
-
"esbuild": "~0.14.
|
|
128
|
+
"esbuild": "~0.14.2",
|
|
129
129
|
"esbuild-jest": "~0.5.0",
|
|
130
130
|
"esbuild-loader": "~2.16.0",
|
|
131
131
|
"esbuild-plugin-svgr": "~0.0.3",
|
|
132
|
-
"eslint": "~8.
|
|
132
|
+
"eslint": "~8.4.0",
|
|
133
133
|
"eslint-config-airbnb": "~18.2.1",
|
|
134
134
|
"eslint-config-airbnb-base": "~15.0.0",
|
|
135
135
|
"eslint-config-airbnb-typescript": "~15.0.0",
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"minimist": "~1.2.5",
|
|
180
180
|
"moment": "~2.29.1",
|
|
181
181
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
182
|
-
"msw": "~0.
|
|
182
|
+
"msw": "~0.36.0",
|
|
183
183
|
"node-plop": "~0.30.0",
|
|
184
184
|
"nodemon": "~2.0.15",
|
|
185
185
|
"npm-check-updates": "12.0.2",
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
"postcss-syntax": "~0.36.2",
|
|
196
196
|
"postcss-loader": "~6.2.1",
|
|
197
197
|
"postcss-preset-env": "~7.0.1",
|
|
198
|
-
"prettier": "~2.5.
|
|
198
|
+
"prettier": "~2.5.1",
|
|
199
199
|
"pug": "~3.0.2",
|
|
200
200
|
"pug-loader": "~2.4.0",
|
|
201
201
|
"raf": "~3.4.1",
|