@elliemae/pui-cli 5.4.5 → 6.0.0-beta.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.
|
@@ -15,6 +15,7 @@ const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
|
|
|
15
15
|
const stylelintFormatter = require('stylelint-formatter-pretty');
|
|
16
16
|
// const ESLintPlugin = require('eslint-webpack-plugin');
|
|
17
17
|
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
|
18
|
+
const { ProvidePlugin } = require('webpack');
|
|
18
19
|
|
|
19
20
|
const {
|
|
20
21
|
excludeNodeModulesExcept,
|
|
@@ -27,6 +28,8 @@ const {
|
|
|
27
28
|
} = require('./helpers');
|
|
28
29
|
const { isTypeScripEnabled } = require('../typescript/util');
|
|
29
30
|
|
|
31
|
+
const ESBUILD_TARGET = 'es2020';
|
|
32
|
+
|
|
30
33
|
// get the application configuration
|
|
31
34
|
const devMode = process.env.NODE_ENV !== 'production';
|
|
32
35
|
const minicssLoader = {
|
|
@@ -55,6 +58,9 @@ const plugins = [
|
|
|
55
58
|
}),
|
|
56
59
|
new CaseSensitivePathsPlugin(),
|
|
57
60
|
// new ESLintPlugin(),
|
|
61
|
+
new ProvidePlugin({
|
|
62
|
+
React: 'react',
|
|
63
|
+
}),
|
|
58
64
|
new StyleLintPlugin({
|
|
59
65
|
emitError: true,
|
|
60
66
|
emitWarning: true,
|
|
@@ -69,6 +75,11 @@ const plugins = [
|
|
|
69
75
|
from: 'app/app.config.json',
|
|
70
76
|
to: 'app.config.json',
|
|
71
77
|
},
|
|
78
|
+
{
|
|
79
|
+
from: 'app/robots.txt',
|
|
80
|
+
to: '../robots.txt',
|
|
81
|
+
noErrorOnMissing: true,
|
|
82
|
+
},
|
|
72
83
|
{
|
|
73
84
|
from: 'app/global*.js',
|
|
74
85
|
to: 'js/[name][ext]',
|
|
@@ -96,6 +107,11 @@ const plugins = [
|
|
|
96
107
|
from: 'public',
|
|
97
108
|
noErrorOnMissing: true,
|
|
98
109
|
},
|
|
110
|
+
{
|
|
111
|
+
from: 'webroot',
|
|
112
|
+
to: '../',
|
|
113
|
+
noErrorOnMissing: true,
|
|
114
|
+
},
|
|
99
115
|
],
|
|
100
116
|
}),
|
|
101
117
|
new DuplicatePackageCheckerPlugin(),
|
|
@@ -146,17 +162,30 @@ module.exports = (options) => ({
|
|
|
146
162
|
],
|
|
147
163
|
},
|
|
148
164
|
{
|
|
149
|
-
test: /\.(js|
|
|
165
|
+
test: /\.(js|jsx)$/,
|
|
150
166
|
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
151
167
|
resolve: {
|
|
152
168
|
fullySpecified: false,
|
|
153
169
|
},
|
|
154
170
|
use: {
|
|
155
|
-
loader: '
|
|
171
|
+
loader: 'esbuild-loader',
|
|
156
172
|
options: {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
173
|
+
loader: 'jsx',
|
|
174
|
+
target: ESBUILD_TARGET,
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
test: /\.(ts|tsx)$/,
|
|
180
|
+
exclude: excludeNodeModulesExcept(modulesToTranspile),
|
|
181
|
+
resolve: {
|
|
182
|
+
fullySpecified: false,
|
|
183
|
+
},
|
|
184
|
+
use: {
|
|
185
|
+
loader: 'esbuild-loader',
|
|
186
|
+
options: {
|
|
187
|
+
loader: 'tsx',
|
|
188
|
+
target: ESBUILD_TARGET,
|
|
160
189
|
},
|
|
161
190
|
},
|
|
162
191
|
},
|
|
@@ -171,6 +200,13 @@ module.exports = (options) => ({
|
|
|
171
200
|
sourceMap: true,
|
|
172
201
|
},
|
|
173
202
|
},
|
|
203
|
+
{
|
|
204
|
+
loader: 'esbuild-loader',
|
|
205
|
+
options: {
|
|
206
|
+
loader: 'css',
|
|
207
|
+
minify: options.mode === 'production',
|
|
208
|
+
},
|
|
209
|
+
},
|
|
174
210
|
{
|
|
175
211
|
loader: 'postcss-loader',
|
|
176
212
|
options: {
|
|
@@ -3,11 +3,10 @@ const path = require('path');
|
|
|
3
3
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
4
4
|
// const WebpackPwaManifest = require('webpack-pwa-manifest');
|
|
5
5
|
const { GenerateSW } = require('workbox-webpack-plugin');
|
|
6
|
-
const TerserPlugin = require('terser-webpack-plugin');
|
|
7
6
|
const CompressionPlugin = require('compression-webpack-plugin');
|
|
8
7
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
9
|
-
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
|
10
8
|
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
|
9
|
+
const { ESBuildMinifyPlugin } = require('esbuild-loader');
|
|
11
10
|
|
|
12
11
|
const baseConfigFactory = require('./webpack.base.babel');
|
|
13
12
|
const {
|
|
@@ -42,17 +41,10 @@ const getProdConfig = ({ latestVersion = true } = {}) => {
|
|
|
42
41
|
optimization: {
|
|
43
42
|
moduleIds: 'deterministic',
|
|
44
43
|
minimizer: [
|
|
45
|
-
new
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
comparisons: false,
|
|
49
|
-
},
|
|
50
|
-
format: {
|
|
51
|
-
comments: false,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
44
|
+
new ESBuildMinifyPlugin({
|
|
45
|
+
target: 'es2020',
|
|
46
|
+
css: true,
|
|
54
47
|
}),
|
|
55
|
-
new CssMinimizerPlugin(),
|
|
56
48
|
],
|
|
57
49
|
runtimeChunk: true,
|
|
58
50
|
splitChunks: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-beta.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "EllieMae Platform UI CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@babel/cli": "~7.15.7",
|
|
51
|
-
"@babel/core": "~7.15.
|
|
52
|
-
"@babel/node": "~7.15.
|
|
51
|
+
"@babel/core": "~7.15.8",
|
|
52
|
+
"@babel/node": "~7.15.8",
|
|
53
53
|
"@babel/plugin-proposal-class-properties": "~7.14.5",
|
|
54
54
|
"@babel/plugin-proposal-export-default-from": "~7.14.5",
|
|
55
55
|
"@babel/plugin-syntax-dynamic-import": "~7.8.3",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"@babel/plugin-transform-react-constant-elements": "~7.14.5",
|
|
58
58
|
"@babel/plugin-transform-react-inline-elements": "~7.14.5",
|
|
59
59
|
"@babel/plugin-transform-react-jsx-source": "~7.14.5",
|
|
60
|
-
"@babel/plugin-transform-runtime": "~7.15.
|
|
61
|
-
"@babel/preset-env": "~7.15.
|
|
60
|
+
"@babel/plugin-transform-runtime": "~7.15.8",
|
|
61
|
+
"@babel/preset-env": "~7.15.8",
|
|
62
62
|
"@babel/preset-react": "~7.14.5",
|
|
63
63
|
"@babel/preset-typescript": "~7.15.0",
|
|
64
64
|
"@babel/runtime": "~7.15.4",
|
|
@@ -69,34 +69,34 @@
|
|
|
69
69
|
"@semantic-release/changelog": "~6.0.0",
|
|
70
70
|
"@semantic-release/exec": "~6.0.1",
|
|
71
71
|
"@semantic-release/git": "~10.0.0",
|
|
72
|
-
"@storybook/addon-a11y": "~6.3.
|
|
73
|
-
"@storybook/addon-actions": "~6.3.
|
|
74
|
-
"@storybook/addon-backgrounds": "~6.3.
|
|
72
|
+
"@storybook/addon-a11y": "~6.3.10",
|
|
73
|
+
"@storybook/addon-actions": "~6.3.10",
|
|
74
|
+
"@storybook/addon-backgrounds": "~6.3.10",
|
|
75
75
|
"@storybook/addon-console": "~1.2.3",
|
|
76
|
-
"@storybook/addon-controls": "~6.3.
|
|
77
|
-
"@storybook/addon-docs": "~6.3.
|
|
76
|
+
"@storybook/addon-controls": "~6.3.10",
|
|
77
|
+
"@storybook/addon-docs": "~6.3.10",
|
|
78
78
|
"@storybook/addon-events": "~6.2.9",
|
|
79
79
|
"@storybook/addon-knobs": "~6.3.1",
|
|
80
|
-
"@storybook/addon-links": "~6.3.
|
|
81
|
-
"@storybook/addon-storysource": "~6.3.
|
|
82
|
-
"@storybook/addon-toolbars": "~6.3.
|
|
83
|
-
"@storybook/addon-viewport": "~6.3.
|
|
84
|
-
"@storybook/addons": "~6.3.
|
|
85
|
-
"@storybook/builder-webpack5": "~6.3.
|
|
86
|
-
"@storybook/manager-webpack5": "~6.3.
|
|
87
|
-
"@storybook/react": "~6.3.
|
|
88
|
-
"@storybook/theming": "~6.3.
|
|
80
|
+
"@storybook/addon-links": "~6.3.10",
|
|
81
|
+
"@storybook/addon-storysource": "~6.3.10",
|
|
82
|
+
"@storybook/addon-toolbars": "~6.3.10",
|
|
83
|
+
"@storybook/addon-viewport": "~6.3.10",
|
|
84
|
+
"@storybook/addons": "~6.3.10",
|
|
85
|
+
"@storybook/builder-webpack5": "~6.3.10",
|
|
86
|
+
"@storybook/manager-webpack5": "~6.3.10",
|
|
87
|
+
"@storybook/react": "~6.3.10",
|
|
88
|
+
"@storybook/theming": "~6.3.10",
|
|
89
89
|
"@svgr/webpack": "~5.5.0",
|
|
90
90
|
"@testing-library/jest-dom": "~5.14.1",
|
|
91
|
-
"@testing-library/react": "~12.1.
|
|
91
|
+
"@testing-library/react": "~12.1.2",
|
|
92
92
|
"@testing-library/react-hooks": "~7.0.2",
|
|
93
93
|
"@types/jest": "~27.0.2",
|
|
94
|
-
"@types/node": "~16.10.
|
|
94
|
+
"@types/node": "~16.10.3",
|
|
95
95
|
"@types/rimraf": "~3.0.2",
|
|
96
96
|
"@types/testing-library__jest-dom": "~5.14.1",
|
|
97
|
-
"@typescript-eslint/eslint-plugin": "~4.
|
|
98
|
-
"@typescript-eslint/parser": "~4.
|
|
99
|
-
"autoprefixer": "~10.3.
|
|
97
|
+
"@typescript-eslint/eslint-plugin": "~4.33.0",
|
|
98
|
+
"@typescript-eslint/parser": "~4.33.0",
|
|
99
|
+
"autoprefixer": "~10.3.7",
|
|
100
100
|
"axe-core": "~4.3.3",
|
|
101
101
|
"babel-eslint": "~10.1.0",
|
|
102
102
|
"babel-loader": "~8.2.2",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"babel-plugin-transform-remove-console": "~6.9.4",
|
|
110
110
|
"babel-plugin-transform-strip-block": "~0.0.4",
|
|
111
111
|
"body-parser": "~1.19.0",
|
|
112
|
-
"browserslist": "~4.17.
|
|
112
|
+
"browserslist": "~4.17.3",
|
|
113
113
|
"bundlesize": "~0.18.1",
|
|
114
114
|
"case-sensitive-paths-webpack-plugin": "~2.4.0",
|
|
115
115
|
"chalk": "~4.1.2",
|
|
@@ -122,12 +122,13 @@
|
|
|
122
122
|
"cors": "~2.8.5",
|
|
123
123
|
"cross-env": "~7.0.3",
|
|
124
124
|
"css-loader": "~6.3.0",
|
|
125
|
-
"css-minimizer-webpack-plugin": "~3.
|
|
125
|
+
"css-minimizer-webpack-plugin": "~3.1.1",
|
|
126
126
|
"depcheck": "~1.4.2",
|
|
127
127
|
"docdash": "~1.2.0",
|
|
128
128
|
"dotenv": "~10.0.0",
|
|
129
129
|
"dotenv-webpack": "~7.0.3",
|
|
130
130
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
131
|
+
"esbuild-loader": "~2.15.1",
|
|
131
132
|
"eslint": "~7.32.0",
|
|
132
133
|
"eslint-config-airbnb": "~18.2.1",
|
|
133
134
|
"eslint-config-airbnb-base": "~14.2.1",
|
|
@@ -141,12 +142,12 @@
|
|
|
141
142
|
"eslint-plugin-compat": "~3.13.0",
|
|
142
143
|
"eslint-plugin-eslint-comments": "~3.2.0",
|
|
143
144
|
"eslint-plugin-import": "~2.24.2",
|
|
144
|
-
"eslint-plugin-jest": "~24.
|
|
145
|
+
"eslint-plugin-jest": "~24.5.2",
|
|
145
146
|
"eslint-plugin-jsdoc": "~36.1.0",
|
|
146
147
|
"eslint-plugin-jsx-a11y": "~6.4.1",
|
|
147
148
|
"eslint-plugin-mdx": "~1.15.1",
|
|
148
149
|
"eslint-plugin-prettier": "~4.0.0",
|
|
149
|
-
"eslint-plugin-react": "~7.26.
|
|
150
|
+
"eslint-plugin-react": "~7.26.1",
|
|
150
151
|
"eslint-plugin-react-hooks": "~4.2.0",
|
|
151
152
|
"eslint-plugin-redux-saga": "~1.2.1",
|
|
152
153
|
"eslint-plugin-testing-library": "~4.12.4",
|
|
@@ -156,7 +157,7 @@
|
|
|
156
157
|
"express": "~4.17.1",
|
|
157
158
|
"express-pino-logger": "~6.0.0",
|
|
158
159
|
"file-loader": "~6.2.0",
|
|
159
|
-
"fork-ts-checker-webpack-plugin": "~6.3.
|
|
160
|
+
"fork-ts-checker-webpack-plugin": "~6.3.4",
|
|
160
161
|
"helmet-csp": "~3.4.0",
|
|
161
162
|
"html-loader": "~2.1.2",
|
|
162
163
|
"html-webpack-plugin": "~5.3.2",
|
|
@@ -171,13 +172,13 @@
|
|
|
171
172
|
"imports-loader": "~3.0.0",
|
|
172
173
|
"ip": "~1.1.5",
|
|
173
174
|
"jest-axe": "~5.0.1",
|
|
174
|
-
"jest-cli": "~27.2.
|
|
175
|
+
"jest-cli": "~27.2.4",
|
|
175
176
|
"jest-sonar-reporter": "~2.0.0",
|
|
176
177
|
"jest-styled-components": "~7.0.5",
|
|
177
178
|
"jscodeshift": "~0.13.0",
|
|
178
179
|
"jsdoc": "~3.6.7",
|
|
179
|
-
"lint-staged": "~11.
|
|
180
|
-
"mini-css-extract-plugin": "~2.
|
|
180
|
+
"lint-staged": "~11.2.0",
|
|
181
|
+
"mini-css-extract-plugin": "~2.4.1",
|
|
181
182
|
"minimist": "~1.2.5",
|
|
182
183
|
"moment": "~2.29.1",
|
|
183
184
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
@@ -190,7 +191,7 @@
|
|
|
190
191
|
"pino-pretty": "~7.0.1",
|
|
191
192
|
"pinst": "~2.1.6",
|
|
192
193
|
"plop": "~2.7.4",
|
|
193
|
-
"postcss": "~8.3.
|
|
194
|
+
"postcss": "~8.3.9",
|
|
194
195
|
"postcss-loader": "~6.1.1",
|
|
195
196
|
"postcss-preset-env": "~6.7.0",
|
|
196
197
|
"prettier": "~2.4.1",
|
|
@@ -221,7 +222,7 @@
|
|
|
221
222
|
"svgo": "~2.7.0",
|
|
222
223
|
"terser-webpack-plugin": "~5.2.4",
|
|
223
224
|
"ts-node": "~10.2.1",
|
|
224
|
-
"tsc-alias": "~1.3.
|
|
225
|
+
"tsc-alias": "~1.3.10",
|
|
225
226
|
"tsc-files": "~1.1.2",
|
|
226
227
|
"tsconfig-paths": "~3.11.0",
|
|
227
228
|
"tsconfig-paths-webpack-plugin": "~3.5.1",
|
|
@@ -230,9 +231,9 @@
|
|
|
230
231
|
"update-notifier": "~5.1.0",
|
|
231
232
|
"url-loader": "~4.1.1",
|
|
232
233
|
"uuid": "~8.3.2",
|
|
233
|
-
"webpack": "~5.
|
|
234
|
+
"webpack": "~5.57.1",
|
|
234
235
|
"webpack-bundle-analyzer": "~4.4.2",
|
|
235
|
-
"webpack-cli": "~4.
|
|
236
|
+
"webpack-cli": "~4.9.0",
|
|
236
237
|
"webpack-dev-middleware": "~5.2.1",
|
|
237
238
|
"webpack-hot-middleware": "~2.25.1",
|
|
238
239
|
"webpack-manifest-plugin": "~4.0.2",
|