Commit b138c47
STRIPES-861-int - Integration of Module Federation feature. (#392)
With this update, we shift the POC code to conform to current
`stripes-cli` API.
The `build` commands build to an `output` directory by default.
### At the workspace level with `stripes-core`, `stripes-connect`,
`stripes-components`: (assuming that's where the config file is)
Build a module-federation host app:
```
yarn stripes build --federate stripes.config.js
```
Serve the host app (dev mode)
```
yarn stripes serve --federate stripes.config.js
```
At the ui-module level (Builds module bundle for static hosting)
```
yarn stripes build --federate
```
Serving the federated ui-module (dev mode)
```
yarn stripes serve --federate
```
Some `server` features have been updated for sake of serving the host
app so that it can further be loaded into a separately hosted 'hub'.
---------
Co-authored-by: Michal Kuklis <michal.kuklis@gmail.com>
Co-authored-by: Zak Burke <zburke@ebsco.com>1 parent 939eb7c commit b138c47
4 files changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
0 commit comments