@elliemae/pui-cli 6.13.0-beta.2 → 6.13.0-beta.3
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/webpack/helpers.js
CHANGED
|
@@ -165,14 +165,14 @@ const getPaths = (latestVersion = true) => {
|
|
|
165
165
|
process.env.PUI_PIPELINE !== 'true' ? `?timeStamp=${Date.now()}` : '';
|
|
166
166
|
return {
|
|
167
167
|
appVersion: version,
|
|
168
|
-
buildPath: path.resolve(process.cwd(), `build/public
|
|
168
|
+
buildPath: path.resolve(process.cwd(), `build/public/`),
|
|
169
169
|
// base path for all assets
|
|
170
170
|
publicPath,
|
|
171
|
-
userMonScriptPath:
|
|
172
|
-
appLoaderScriptPath:
|
|
173
|
-
diagnosticsScriptPath:
|
|
174
|
-
globalScriptPath:
|
|
175
|
-
encwLoaderScriptPath:
|
|
171
|
+
userMonScriptPath: `latest/js/${getUserMonitoringFileName()}`,
|
|
172
|
+
appLoaderScriptPath: `latest/js/${getAppLoaderFileName()}`,
|
|
173
|
+
diagnosticsScriptPath: `latest/js/${getDiagnosticsFileName()}`,
|
|
174
|
+
globalScriptPath: `latest/js/global.js${timeStampQuery}`,
|
|
175
|
+
encwLoaderScriptPath: `latest/js/${getENCWLoaderFileName()}`,
|
|
176
176
|
};
|
|
177
177
|
};
|
|
178
178
|
|
|
@@ -48,46 +48,47 @@ const plugins = [
|
|
|
48
48
|
patterns: filterByFilePresence([
|
|
49
49
|
{
|
|
50
50
|
from: 'app/app.config.json',
|
|
51
|
-
to: 'app.config.json',
|
|
51
|
+
to: './latest/app.config.json',
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
from: 'app/robots.txt',
|
|
55
|
-
to: '
|
|
55
|
+
to: 'robots.txt',
|
|
56
56
|
noErrorOnMissing: true,
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
from: 'app/global*.js',
|
|
60
|
-
to: 'js/[name][ext]',
|
|
60
|
+
to: './latest/js/[name][ext]',
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
from: 'node_modules/@elliemae/pui-user-monitoring/dist/public/js',
|
|
64
|
-
to: 'js',
|
|
64
|
+
to: './latest/js',
|
|
65
65
|
toType: 'dir',
|
|
66
66
|
info: { minimized: true },
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
from: 'node_modules/@elliemae/pui-app-loader/dist/public/js',
|
|
70
|
-
to: 'js',
|
|
70
|
+
to: './latest/js',
|
|
71
71
|
toType: 'dir',
|
|
72
72
|
noErrorOnMissing: true,
|
|
73
73
|
info: { minimized: true },
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
from: 'node_modules/@elliemae/encw-loader/dist/public/js',
|
|
77
|
-
to: 'js',
|
|
77
|
+
to: './latest/js',
|
|
78
78
|
toType: 'dir',
|
|
79
79
|
noErrorOnMissing: true,
|
|
80
80
|
info: { minimized: true },
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
from: 'node_modules/@elliemae/pui-diagnostics/dist/public/js',
|
|
84
|
-
to: 'js',
|
|
84
|
+
to: './latest/js',
|
|
85
85
|
toType: 'dir',
|
|
86
86
|
noErrorOnMissing: true,
|
|
87
87
|
info: { minimized: true },
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
from: 'public',
|
|
91
|
+
to: './latest',
|
|
91
92
|
noErrorOnMissing: true,
|
|
92
93
|
globOptions: {
|
|
93
94
|
ignore: ['readme.md'],
|
|
@@ -95,7 +96,6 @@ const plugins = [
|
|
|
95
96
|
},
|
|
96
97
|
{
|
|
97
98
|
from: 'webroot',
|
|
98
|
-
to: '../',
|
|
99
99
|
noErrorOnMissing: true,
|
|
100
100
|
globOptions: {
|
|
101
101
|
ignore: ['readme.md'],
|
|
@@ -105,8 +105,16 @@ const plugins = [
|
|
|
105
105
|
}),
|
|
106
106
|
new DuplicatePackageCheckerPlugin(),
|
|
107
107
|
new MomentLocalesPlugin({ localesToKeep: ['es-us'] }),
|
|
108
|
-
new WebpackManifestPlugin(
|
|
108
|
+
new WebpackManifestPlugin({
|
|
109
|
+
fileName: './latest/manifest.json',
|
|
110
|
+
publicPath: '',
|
|
111
|
+
map: (file) => {
|
|
112
|
+
file.name = file.name.replace(/^latest\//, '');
|
|
113
|
+
return file;
|
|
114
|
+
},
|
|
115
|
+
}),
|
|
109
116
|
new FaviconsWebpackPlugin({
|
|
117
|
+
outputPath: './latest/assets',
|
|
110
118
|
logo: './app/view/images/favicon.png',
|
|
111
119
|
favicons: {
|
|
112
120
|
developerName: 'ICE MT',
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
|
-
const { HotModuleReplacementPlugin } = require('webpack');
|
|
3
2
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
4
3
|
const CircularDependencyPlugin = require('circular-dependency-plugin');
|
|
5
4
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
@@ -109,7 +108,6 @@ const devConfig = {
|
|
|
109
108
|
|
|
110
109
|
const config = smp.wrap(baseConfigFactory(devConfig));
|
|
111
110
|
config.plugins = config.plugins.concat([
|
|
112
|
-
new HotModuleReplacementPlugin(),
|
|
113
111
|
new ReactRefreshWebpackPlugin({
|
|
114
112
|
overlay: {
|
|
115
113
|
sockIntegration: 'whm',
|
|
@@ -32,9 +32,9 @@ const getProdConfig = ({ latestVersion = true } = {}) => {
|
|
|
32
32
|
output: {
|
|
33
33
|
path: buildPath,
|
|
34
34
|
publicPath: 'auto',
|
|
35
|
-
filename: 'js/[name].[contenthash].js',
|
|
36
|
-
chunkFilename: 'js/[name].[contenthash].chunk.js',
|
|
37
|
-
assetModuleFilename: 'assets/[name].[hash][ext][query]',
|
|
35
|
+
filename: 'latest/js/[name].[contenthash].js',
|
|
36
|
+
chunkFilename: 'latest/js/[name].[contenthash].chunk.js',
|
|
37
|
+
assetModuleFilename: 'latest/assets/[name].[hash][ext][query]',
|
|
38
38
|
},
|
|
39
39
|
|
|
40
40
|
optimization: {
|
|
@@ -63,11 +63,6 @@ const getProdConfig = ({ latestVersion = true } = {}) => {
|
|
|
63
63
|
},
|
|
64
64
|
|
|
65
65
|
plugins: [
|
|
66
|
-
// new MiniCssExtractPlugin({
|
|
67
|
-
// filename: 'css/[name].[contenthash].css',
|
|
68
|
-
// chunkFilename: 'css/[name].[contenthash].chunk.css',
|
|
69
|
-
// }),
|
|
70
|
-
|
|
71
66
|
...getCompressionPlugins(),
|
|
72
67
|
|
|
73
68
|
new BundleAnalyzerPlugin({
|
|
@@ -77,7 +72,7 @@ const getProdConfig = ({ latestVersion = true } = {}) => {
|
|
|
77
72
|
}),
|
|
78
73
|
|
|
79
74
|
new GenerateSW({
|
|
80
|
-
swDest: '
|
|
75
|
+
swDest: 'sw.js',
|
|
81
76
|
clientsClaim: true,
|
|
82
77
|
skipWaiting: true,
|
|
83
78
|
}),
|
|
@@ -100,7 +95,6 @@ const {
|
|
|
100
95
|
encwLoaderScriptPath,
|
|
101
96
|
} = getPaths();
|
|
102
97
|
const htmlWebpackPlugin = new HtmlWebpackPlugin({
|
|
103
|
-
filename: '../index.html',
|
|
104
98
|
inject: !isAppLoaderEnabled(),
|
|
105
99
|
template: !isAppLoaderEnabled()
|
|
106
100
|
? 'app/index.html'
|
|
@@ -146,8 +140,8 @@ const addSMPPlugin = (config) => {
|
|
|
146
140
|
// mini css extract plugin is not working fine with smp
|
|
147
141
|
smpConfig.plugins.push(
|
|
148
142
|
new MiniCssExtractPlugin({
|
|
149
|
-
filename: 'css/[name].[contenthash].css',
|
|
150
|
-
chunkFilename: 'css/[name].[contenthash].chunk.css',
|
|
143
|
+
filename: 'latest/css/[name].[contenthash].css',
|
|
144
|
+
chunkFilename: 'latest/css/[name].[contenthash].chunk.css',
|
|
151
145
|
}),
|
|
152
146
|
);
|
|
153
147
|
return smpConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "6.13.0-beta.
|
|
3
|
+
"version": "6.13.0-beta.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "ICE MT UI Platform CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"@commitlint/config-conventional": "~16.2.1",
|
|
68
68
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.3.0",
|
|
69
69
|
"@faker-js/faker": "6.0.0",
|
|
70
|
-
"@nrwl/cli": "13.9.
|
|
71
|
-
"@nrwl/tao": "13.9.
|
|
72
|
-
"@nrwl/workspace": "13.9.
|
|
70
|
+
"@nrwl/cli": "13.9.3",
|
|
71
|
+
"@nrwl/tao": "13.9.3",
|
|
72
|
+
"@nrwl/workspace": "13.9.3",
|
|
73
73
|
"@pmmmwh/react-refresh-webpack-plugin": "~0.5.4",
|
|
74
74
|
"@semantic-release/changelog": "~6.0.1",
|
|
75
75
|
"@semantic-release/exec": "~6.0.3",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@stylelint/postcss-css-in-js": "~0.37.2",
|
|
88
88
|
"@svgr/webpack": "~6.2.1",
|
|
89
89
|
"@swc/cli": "~0.1.55",
|
|
90
|
-
"@swc/core": "~1.2.
|
|
90
|
+
"@swc/core": "~1.2.158",
|
|
91
91
|
"@swc/jest": "~0.2.20",
|
|
92
92
|
"@testing-library/jest-dom": "~5.16.2",
|
|
93
93
|
"@testing-library/react": "~12.1.4",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"eslint": "~8.11.0",
|
|
138
138
|
"eslint-config-airbnb": "~19.0.4",
|
|
139
139
|
"eslint-config-airbnb-base": "~15.0.0",
|
|
140
|
-
"eslint-config-airbnb-typescript": "~16.1.
|
|
140
|
+
"eslint-config-airbnb-typescript": "~16.1.3",
|
|
141
141
|
"eslint-config-prettier": "~8.5.0",
|
|
142
142
|
"eslint-config-react-app": "~7.0.0",
|
|
143
143
|
"eslint-import-resolver-babel-module": "~5.3.1",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"jscodeshift": "~0.13.1",
|
|
181
181
|
"jsdoc": "~3.6.10",
|
|
182
182
|
"lerna": "~4.0.0",
|
|
183
|
-
"lint-staged": "~12.3.
|
|
183
|
+
"lint-staged": "~12.3.7",
|
|
184
184
|
"mini-css-extract-plugin": "~2.6.0",
|
|
185
185
|
"minimist": "~1.2.5",
|
|
186
186
|
"moment": "~2.29.1",
|
|
@@ -190,10 +190,10 @@
|
|
|
190
190
|
"node-plop": "~0.30.0",
|
|
191
191
|
"nodemon": "~2.0.15",
|
|
192
192
|
"normalize-path": "~3.0.0",
|
|
193
|
-
"npm-check-updates": "12.5.
|
|
193
|
+
"npm-check-updates": "12.5.4",
|
|
194
194
|
"null-loader": "~4.0.1",
|
|
195
|
-
"pino": "~7.
|
|
196
|
-
"pino-pretty": "~7.5.
|
|
195
|
+
"pino": "~7.9.1",
|
|
196
|
+
"pino-pretty": "~7.5.4",
|
|
197
197
|
"pinst": "~3.0.0",
|
|
198
198
|
"plop": "~3.0.5",
|
|
199
199
|
"postcss": "~8.4.12",
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
"slackify-markdown": "~4.3.1",
|
|
219
219
|
"speed-measure-webpack-plugin": "~1.5.0",
|
|
220
220
|
"storybook-addon-turbo-build": "~1.1.0",
|
|
221
|
-
"storybook-builder-vite": "~0.1.
|
|
221
|
+
"storybook-builder-vite": "~0.1.21",
|
|
222
222
|
"storybook-react-router": "~1.0.8",
|
|
223
223
|
"style-loader": "~3.3.1",
|
|
224
224
|
"stylelint": "~14.6.0",
|
|
@@ -233,8 +233,8 @@
|
|
|
233
233
|
"url-loader": "~4.1.1",
|
|
234
234
|
"uuid": "~8.3.2",
|
|
235
235
|
"vite": "~2.8.6",
|
|
236
|
-
"vitest": "~0.
|
|
237
|
-
"webpack": "~5.
|
|
236
|
+
"vitest": "~0.7.4",
|
|
237
|
+
"webpack": "~5.70.0",
|
|
238
238
|
"webpack-bundle-analyzer": "~4.5.0",
|
|
239
239
|
"webpack-cli": "~4.9.2",
|
|
240
240
|
"webpack-dev-middleware": "~5.3.1",
|