@redhat-cloud-services/frontend-components-config 5.0.4 → 5.1.0
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/README.md +18 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -197,6 +197,24 @@ const { config: webpackConfig, plugins } = config({
|
|
|
197
197
|
|
|
198
198
|
This configuration will redirect all API requests to QA environment, so you can check CI UI with QA data.
|
|
199
199
|
|
|
200
|
+
#### Running multiple local (frontend) applications
|
|
201
|
+
|
|
202
|
+
With the proxy enabled it is possible to run multiple frontend applications together using one proxy and webpack dev servers for each other application via passing a `LOCAL_APPS` variable.
|
|
203
|
+
|
|
204
|
+
```
|
|
205
|
+
$ LOCAL_APPS=APP_NAME:APP_PORT[~APP_PROTOCOL] npm run start:proxy
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
##### Steps to run multiple applications
|
|
209
|
+
|
|
210
|
+
1) Choose a "main application", which will run the proxy and proxy all other applications, for example Inventory and open a terminal in it's directory
|
|
211
|
+
2) Open another terminal in any other application that you want to run with the Inventory, for example Advisor and start it's webpack dev server with `npm run start`
|
|
212
|
+
3) Ensure the dev server is started and make not of it's addresses and port it is listening to. (This example assumes it runs on port `8002`)
|
|
213
|
+
3.1) You can repeat this process for any application you want to run the Inventory with.
|
|
214
|
+
4) With this information now, in the terminal for Inventory you can start the proxy and pass applications via the `LOCAL_APPS` variable, like `LOCAL_APPS=advisor:2002 npm run start:proxy`
|
|
215
|
+
4.1) You can pass multiple applications as a comma separated list, like `LOCAL_APPS=advisor:8002,compliance:8003 npm run start:proxy`
|
|
216
|
+
5) With this you should be able to see any changes in both Inventroy and Advisor via the usual `https://stage.foo.redhat.com:1337`.
|
|
217
|
+
|
|
200
218
|
#### Env
|
|
201
219
|
A hyphenated string in the form of (qa|ci|stage|prod)-(stable|beta). Used to determine the proxy target (such as ci.console.redhat.com or console.stage.redhat.com) and branch to checkout of build repos. If "stage" is specific qa is used as the branch.
|
|
202
220
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redhat-cloud-services/frontend-components-config",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Config plugins and settings for RedHat Cloud Services project.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"ts-loader": "^8.4.0",
|
|
55
55
|
"url": "^0.11.0",
|
|
56
56
|
"util": "^0.12.4",
|
|
57
|
-
"webpack": "^5.
|
|
58
|
-
"webpack-cli": "^
|
|
59
|
-
"webpack-dev-server": "4.
|
|
57
|
+
"webpack": "^5.88.0",
|
|
58
|
+
"webpack-cli": "^5.1.4",
|
|
59
|
+
"webpack-dev-server": "4.15.1",
|
|
60
60
|
"yargs": "^17.6.2"
|
|
61
61
|
}
|
|
62
62
|
}
|