@elliemae/pui-cli 6.0.0-beta.47 → 6.0.0-beta.50
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.
|
@@ -34,7 +34,10 @@ const baseRules = {
|
|
|
34
34
|
'import/no-dynamic-require': 0,
|
|
35
35
|
'import/no-extraneous-dependencies': 0,
|
|
36
36
|
'import/no-named-as-default': 0,
|
|
37
|
-
'import/no-unresolved':
|
|
37
|
+
'import/no-unresolved': [
|
|
38
|
+
2,
|
|
39
|
+
{ caseSensitive: true, caseSensitiveStrict: true },
|
|
40
|
+
], // Tip: https://github.com/import-js/eslint-plugin-import/issues/1868
|
|
38
41
|
'import/no-webpack-loader-syntax': 0,
|
|
39
42
|
'import/prefer-default-export': 0,
|
|
40
43
|
'import/extensions': [
|
package/lib/transpile/esbuild.js
CHANGED
|
@@ -2,14 +2,14 @@ const esbuild = require('esbuild');
|
|
|
2
2
|
const fg = require('fast-glob');
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const path = require('path');
|
|
5
|
-
|
|
6
|
-
const browserslistToEsbuild = require('browserslist-to-esbuild');
|
|
5
|
+
const { getPUIConfig } = require('../pui-config');
|
|
6
|
+
// const browserslistToEsbuild = require('browserslist-to-esbuild');
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const { esBuild } = getPUIConfig();
|
|
9
9
|
|
|
10
10
|
const commonConfig = {
|
|
11
11
|
bundle: false,
|
|
12
|
-
target: browserslistToEsbuild(),
|
|
12
|
+
target: esBuild.target, // browserslistToEsbuild(),
|
|
13
13
|
loader: { '.js': 'jsx' },
|
|
14
14
|
mainFields: ['module', 'browser', 'main'],
|
|
15
15
|
inject: [path.resolve(__dirname, './react-shim.js')],
|
|
@@ -4,11 +4,10 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
|
4
4
|
const PostcssPresetEnv = require('postcss-preset-env');
|
|
5
5
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
6
6
|
const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin');
|
|
7
|
-
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
|
|
8
7
|
const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
|
|
9
8
|
const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
|
|
10
9
|
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
|
|
11
|
-
const { ProvidePlugin } = require('webpack');
|
|
10
|
+
const { ProvidePlugin, ProgressPlugin } = require('webpack');
|
|
12
11
|
const browserslistToEsbuild = require('browserslist-to-esbuild');
|
|
13
12
|
|
|
14
13
|
const {
|
|
@@ -18,8 +17,6 @@ const {
|
|
|
18
17
|
getAlias,
|
|
19
18
|
getPaths,
|
|
20
19
|
} = require('./helpers');
|
|
21
|
-
// const { getPUIConfig } = require('../pui-config');
|
|
22
|
-
// const { esBuild } = getPUIConfig();
|
|
23
20
|
|
|
24
21
|
const minicssLoader = {
|
|
25
22
|
loader: MiniCssExtractPlugin.loader,
|
|
@@ -42,7 +39,6 @@ const plugins = [
|
|
|
42
39
|
new webpack.DefinePlugin({
|
|
43
40
|
APP_CONFIG: getAppConfig(),
|
|
44
41
|
}),
|
|
45
|
-
new CaseSensitivePathsPlugin(),
|
|
46
42
|
new ProvidePlugin({
|
|
47
43
|
React: 'react',
|
|
48
44
|
}),
|
|
@@ -100,7 +96,7 @@ const plugins = [
|
|
|
100
96
|
],
|
|
101
97
|
}),
|
|
102
98
|
new DuplicatePackageCheckerPlugin(),
|
|
103
|
-
new MomentLocalesPlugin(),
|
|
99
|
+
new MomentLocalesPlugin({ localesToKeep: ['es-us'] }),
|
|
104
100
|
new WebpackManifestPlugin(),
|
|
105
101
|
new FaviconsWebpackPlugin({
|
|
106
102
|
logo: './app/view/images/favicon.png',
|
|
@@ -113,6 +109,7 @@ const plugins = [
|
|
|
113
109
|
},
|
|
114
110
|
},
|
|
115
111
|
}),
|
|
112
|
+
new ProgressPlugin(),
|
|
116
113
|
];
|
|
117
114
|
|
|
118
115
|
module.exports = (options) => ({
|
|
@@ -128,24 +125,7 @@ module.exports = (options) => ({
|
|
|
128
125
|
module: {
|
|
129
126
|
rules: [
|
|
130
127
|
{
|
|
131
|
-
test: /\.
|
|
132
|
-
enforce: 'pre',
|
|
133
|
-
exclude: /node_modules/,
|
|
134
|
-
resolve: {
|
|
135
|
-
fullySpecified: false,
|
|
136
|
-
},
|
|
137
|
-
use: [
|
|
138
|
-
{
|
|
139
|
-
loader: 'webpack-strip-block',
|
|
140
|
-
options: {
|
|
141
|
-
start: 'TEST:START',
|
|
142
|
-
end: 'TEST:END',
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
],
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
test: /\.[j]sx?$/,
|
|
128
|
+
test: /\.jsx?$/,
|
|
149
129
|
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
150
130
|
resolve: {
|
|
151
131
|
fullySpecified: false,
|
|
@@ -159,7 +139,7 @@ module.exports = (options) => ({
|
|
|
159
139
|
},
|
|
160
140
|
},
|
|
161
141
|
{
|
|
162
|
-
test: /\.
|
|
142
|
+
test: /\.tsx?$/,
|
|
163
143
|
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
164
144
|
resolve: {
|
|
165
145
|
fullySpecified: false,
|
|
@@ -174,6 +154,9 @@ module.exports = (options) => ({
|
|
|
174
154
|
},
|
|
175
155
|
{
|
|
176
156
|
test: /\.css$/,
|
|
157
|
+
exclude: excludeNodeModulesExcept(
|
|
158
|
+
modulesToTranspile.concat(['sanitize.css']),
|
|
159
|
+
),
|
|
177
160
|
use: [
|
|
178
161
|
finalCSSLoader(options.mode),
|
|
179
162
|
{
|
|
@@ -183,13 +166,6 @@ module.exports = (options) => ({
|
|
|
183
166
|
sourceMap: true,
|
|
184
167
|
},
|
|
185
168
|
},
|
|
186
|
-
{
|
|
187
|
-
loader: 'esbuild-loader',
|
|
188
|
-
options: {
|
|
189
|
-
loader: 'css',
|
|
190
|
-
minify: options.mode === 'production',
|
|
191
|
-
},
|
|
192
|
-
},
|
|
193
169
|
{
|
|
194
170
|
loader: 'postcss-loader',
|
|
195
171
|
options: {
|
|
@@ -203,34 +179,37 @@ module.exports = (options) => ({
|
|
|
203
179
|
},
|
|
204
180
|
{
|
|
205
181
|
test: /\.(woff|woff2)$/,
|
|
206
|
-
exclude: excludeNodeModulesExcept(['@elliemae/*']),
|
|
207
182
|
type: 'asset/resource',
|
|
183
|
+
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
208
184
|
},
|
|
209
185
|
{
|
|
210
186
|
test: /\.svg$/i,
|
|
211
187
|
issuer: /\.[jt]sx?$/,
|
|
212
188
|
resourceQuery: /^((?!url).)*$/,
|
|
189
|
+
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
213
190
|
use: ['@svgr/webpack'],
|
|
214
191
|
},
|
|
215
192
|
{
|
|
216
193
|
test: /\.(jpe?g|png|gif|ico|mp4|webm)$/i,
|
|
217
|
-
exclude: excludeNodeModulesExcept(
|
|
194
|
+
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
218
195
|
type: 'asset',
|
|
219
196
|
},
|
|
220
197
|
{
|
|
221
198
|
resourceQuery: /resource/,
|
|
222
199
|
type: 'asset/resource',
|
|
200
|
+
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
223
201
|
},
|
|
224
202
|
{
|
|
225
203
|
type: 'asset',
|
|
226
204
|
resourceQuery: /url/,
|
|
205
|
+
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
227
206
|
},
|
|
228
207
|
],
|
|
229
208
|
},
|
|
230
209
|
plugins: plugins.concat(options.plugins),
|
|
231
210
|
resolve: {
|
|
232
211
|
modules: ['node_modules', 'app', 'lib'],
|
|
233
|
-
extensions: ['.
|
|
212
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json', '.wasm', '.mjs'],
|
|
234
213
|
mainFields: ['browser', 'module', 'main'],
|
|
235
214
|
alias: {
|
|
236
215
|
...getAlias(),
|
|
@@ -243,6 +222,5 @@ module.exports = (options) => ({
|
|
|
243
222
|
'@elliemae/pui-diagnostics': 'emuiDiagnostics',
|
|
244
223
|
},
|
|
245
224
|
devtool: options.devtool || 'eval-source-map',
|
|
246
|
-
target: 'web',
|
|
247
225
|
performance: options.performance || {},
|
|
248
226
|
});
|
|
@@ -3,12 +3,12 @@ const path = require('path');
|
|
|
3
3
|
const webpack = require('webpack');
|
|
4
4
|
const {
|
|
5
5
|
optimize: { LimitChunkCountPlugin },
|
|
6
|
+
ProgressPlugin,
|
|
6
7
|
} = require('webpack');
|
|
7
8
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
8
9
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
9
10
|
const PostcssPresetEnv = require('postcss-preset-env');
|
|
10
11
|
const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin');
|
|
11
|
-
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
|
|
12
12
|
const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
|
|
13
13
|
|
|
14
14
|
const {
|
|
@@ -39,7 +39,6 @@ const plugins = [
|
|
|
39
39
|
new webpack.DefinePlugin({
|
|
40
40
|
APP_CONFIG: getAppConfig(true),
|
|
41
41
|
}),
|
|
42
|
-
new CaseSensitivePathsPlugin(),
|
|
43
42
|
new CopyWebpackPlugin({
|
|
44
43
|
patterns: [
|
|
45
44
|
{
|
|
@@ -57,7 +56,8 @@ const plugins = [
|
|
|
57
56
|
new LimitChunkCountPlugin({
|
|
58
57
|
maxChunks: 1,
|
|
59
58
|
}),
|
|
60
|
-
new MomentLocalesPlugin(),
|
|
59
|
+
new MomentLocalesPlugin({ localesToKeep: ['es-us'] }),
|
|
60
|
+
new ProgressPlugin(),
|
|
61
61
|
];
|
|
62
62
|
|
|
63
63
|
module.exports = (options) => ({
|
|
@@ -74,23 +74,6 @@ module.exports = (options) => ({
|
|
|
74
74
|
optimization: options.optimization,
|
|
75
75
|
module: {
|
|
76
76
|
rules: [
|
|
77
|
-
{
|
|
78
|
-
test: /^(?!.*\.exec\.js$).*\.[jt]sx?$/,
|
|
79
|
-
enforce: 'pre',
|
|
80
|
-
exclude: /node_modules/,
|
|
81
|
-
resolve: {
|
|
82
|
-
fullySpecified: false,
|
|
83
|
-
},
|
|
84
|
-
use: [
|
|
85
|
-
{
|
|
86
|
-
loader: 'webpack-strip-block',
|
|
87
|
-
options: {
|
|
88
|
-
start: 'TEST:START',
|
|
89
|
-
end: 'TEST:END',
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
},
|
|
94
77
|
{
|
|
95
78
|
test: /^(?!.*\.exec\.js$).*\.jsx?$/, // Transform all .js and .jsx files with Babel
|
|
96
79
|
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
@@ -204,7 +187,7 @@ module.exports = (options) => ({
|
|
|
204
187
|
plugins: plugins.concat(options.plugins || []),
|
|
205
188
|
resolve: {
|
|
206
189
|
modules: ['node_modules', 'app', 'lib'],
|
|
207
|
-
extensions: ['.
|
|
190
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json', '.wasm', '.mjs'],
|
|
208
191
|
mainFields: ['browser', 'module', 'main'],
|
|
209
192
|
alias: {
|
|
210
193
|
...getAlias(),
|
|
@@ -217,6 +200,5 @@ module.exports = (options) => ({
|
|
|
217
200
|
'@elliemae/pui-diagnostics': 'emuiDiagnostics',
|
|
218
201
|
},
|
|
219
202
|
devtool: options.devtool || 'eval-source-map',
|
|
220
|
-
target: 'web', // Make web variables accessible to webpack, e.g. window
|
|
221
203
|
performance: options.performance || {},
|
|
222
204
|
});
|
|
@@ -45,23 +45,6 @@ const getAdditionalPlugins = () => [
|
|
|
45
45
|
];
|
|
46
46
|
|
|
47
47
|
const getModuleRules = () => [
|
|
48
|
-
{
|
|
49
|
-
test: /\.[jt]sx?$/,
|
|
50
|
-
enforce: 'pre',
|
|
51
|
-
exclude: /node_modules/,
|
|
52
|
-
resolve: {
|
|
53
|
-
fullySpecified: false,
|
|
54
|
-
},
|
|
55
|
-
use: [
|
|
56
|
-
{
|
|
57
|
-
loader: 'webpack-strip-block',
|
|
58
|
-
options: {
|
|
59
|
-
start: 'TEST:START',
|
|
60
|
-
end: 'TEST:END',
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
},
|
|
65
48
|
{
|
|
66
49
|
type: 'asset',
|
|
67
50
|
resourceQuery: /url/,
|
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.50",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "ICE MT UI Platform CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"css-minimizer-webpack-plugin": "~3.3.1",
|
|
127
127
|
"depcheck": "~1.4.3",
|
|
128
128
|
"docdash": "~1.2.0",
|
|
129
|
-
"dotenv": "~12.0.
|
|
129
|
+
"dotenv": "~12.0.4",
|
|
130
130
|
"dotenv-webpack": "~7.0.3",
|
|
131
131
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
132
132
|
"enhanced-resolve": "~5.8.3",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"esbuild-jest": "~0.5.0",
|
|
135
135
|
"esbuild-loader": "~2.18.0",
|
|
136
136
|
"esbuild-plugin-svgr": "~1.0.0",
|
|
137
|
-
"eslint": "~8.
|
|
137
|
+
"eslint": "~8.7.0",
|
|
138
138
|
"eslint-config-airbnb": "~19.0.4",
|
|
139
139
|
"eslint-config-airbnb-base": "~15.0.0",
|
|
140
140
|
"eslint-config-airbnb-typescript": "~16.1.0",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"eslint-plugin-compat": "~4.0.1",
|
|
147
147
|
"eslint-plugin-eslint-comments": "~3.2.0",
|
|
148
148
|
"eslint-plugin-import": "~2.25.4",
|
|
149
|
-
"eslint-plugin-jest": "~25.
|
|
149
|
+
"eslint-plugin-jest": "~25.7.0",
|
|
150
150
|
"eslint-plugin-jsdoc": "~37.6.1",
|
|
151
151
|
"eslint-plugin-jsx-a11y": "~6.5.1",
|
|
152
152
|
"eslint-plugin-mdx": "~1.16.0",
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"react-refresh": "~0.11.0",
|
|
213
213
|
"react-test-renderer": "~17.0.2",
|
|
214
214
|
"resize-observer-polyfill": "~1.5.1",
|
|
215
|
-
"resolve-typescript-plugin": "~1.1.
|
|
215
|
+
"resolve-typescript-plugin": "~1.1.4",
|
|
216
216
|
"rimraf": "~3.0.2",
|
|
217
217
|
"script-loader": "~0.7.2",
|
|
218
218
|
"semantic-release": "~18.0.1",
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
"url-loader": "~4.1.1",
|
|
242
242
|
"uuid": "~8.3.2",
|
|
243
243
|
"vite": "~2.7.12",
|
|
244
|
-
"vitest": "~0.1.
|
|
244
|
+
"vitest": "~0.1.17",
|
|
245
245
|
"webpack": "~5.66.0",
|
|
246
246
|
"webpack-bundle-analyzer": "~4.5.0",
|
|
247
247
|
"webpack-cli": "~4.9.1",
|
|
@@ -256,6 +256,8 @@
|
|
|
256
256
|
"yargs": "~17.3.1"
|
|
257
257
|
},
|
|
258
258
|
"devDependencies": {
|
|
259
|
+
"react": "~17.0.2",
|
|
260
|
+
"react-dom": "~17.0.2",
|
|
259
261
|
"redux": "~4.1.2",
|
|
260
262
|
"redux-saga": "~1.1.3",
|
|
261
263
|
"styled-components": "~5.3.3"
|