@elliemae/pui-cli 6.13.0-beta.1 → 6.13.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.
|
@@ -1,17 +1,22 @@
|
|
|
1
|
+
const path = require('path');
|
|
1
2
|
const { exit } = require('yargs');
|
|
2
3
|
const { exec, logError, logSuccess } = require('./utils');
|
|
3
4
|
|
|
4
|
-
const { name } = require('../../package.json');
|
|
5
|
-
|
|
6
5
|
async function startProdServer() {
|
|
7
6
|
await exec(
|
|
8
|
-
`cross-env NODE_ENV=production ts-node
|
|
7
|
+
`cross-env NODE_ENV=production ts-node ${path.resolve(
|
|
8
|
+
__dirname,
|
|
9
|
+
'../server',
|
|
10
|
+
)} --color always`,
|
|
9
11
|
);
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
async function startDevServer() {
|
|
13
15
|
await exec(
|
|
14
|
-
`cross-env NODE_ENV=development
|
|
16
|
+
`cross-env NODE_ENV=development webpack serve --config ${path.resolve(
|
|
17
|
+
__dirname,
|
|
18
|
+
'../webpack/webpack.dev.babel.js',
|
|
19
|
+
)}`,
|
|
15
20
|
);
|
|
16
21
|
}
|
|
17
22
|
|
package/lib/webpack/helpers.js
CHANGED
|
@@ -150,7 +150,6 @@ const getENCWLoaderFileName = () => {
|
|
|
150
150
|
)[0];
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
-
// base path for index page
|
|
154
153
|
const getAssetPath = () => (process.env.ASSET_PATH || '/').replace(/\/?$/, '/');
|
|
155
154
|
|
|
156
155
|
const getAppVersion = () => {
|
|
@@ -161,7 +160,7 @@ const getAppVersion = () => {
|
|
|
161
160
|
|
|
162
161
|
const getPaths = (latestVersion = true) => {
|
|
163
162
|
const version = latestVersion ? LATEST_VERSION : getAppVersion();
|
|
164
|
-
const publicPath = `${
|
|
163
|
+
const publicPath = `${version}/`;
|
|
165
164
|
const timeStampQuery =
|
|
166
165
|
process.env.PUI_PIPELINE !== 'true' ? `?timeStamp=${Date.now()}` : '';
|
|
167
166
|
return {
|
|
@@ -74,7 +74,6 @@ const devConfig = {
|
|
|
74
74
|
// Add development plugins
|
|
75
75
|
plugins: [
|
|
76
76
|
new HtmlWebpackPlugin({
|
|
77
|
-
scriptLoading: 'module',
|
|
78
77
|
inject: !isAppLoaderEnabled(), // Inject all files that are generated by webpack, e.g. bundle.js
|
|
79
78
|
template: !isAppLoaderEnabled()
|
|
80
79
|
? 'app/index.html'
|
|
@@ -104,6 +103,8 @@ const devConfig = {
|
|
|
104
103
|
performance: {
|
|
105
104
|
hints: false,
|
|
106
105
|
},
|
|
106
|
+
|
|
107
|
+
devServer: {},
|
|
107
108
|
};
|
|
108
109
|
|
|
109
110
|
const config = smp.wrap(baseConfigFactory(devConfig));
|
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.2",
|
|
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.2",
|
|
71
|
+
"@nrwl/tao": "13.9.2",
|
|
72
|
+
"@nrwl/workspace": "13.9.2",
|
|
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",
|
|
@@ -238,6 +238,7 @@
|
|
|
238
238
|
"webpack-bundle-analyzer": "~4.5.0",
|
|
239
239
|
"webpack-cli": "~4.9.2",
|
|
240
240
|
"webpack-dev-middleware": "~5.3.1",
|
|
241
|
+
"webpack-dev-server": "~4.7.4",
|
|
241
242
|
"webpack-hot-middleware": "~2.25.1",
|
|
242
243
|
"webpack-manifest-plugin": "~5.0.0",
|
|
243
244
|
"webpack-merge": "~5.8.0",
|