Skip to content

Commit

Permalink
chore(RHINENG-7043): adopt fec-fonfig (#2093)
Browse files Browse the repository at this point in the history
* chore(RHINENG-7043): adopt fec-fonfig

* chore: use relative path to import CloudServerIcon

* chore: remove bootstrap and entry files

* chore(RHINENG-7043): return entry files

* chore(RHINENG-7043): remove excluded router from fed-module shared scope

* chore(RHINENG-7043): update cy screenshots

* chore: permissive requiredVersion and remove interceptChromeConfig in fec.config

* chore: downgrade fec-config-utils package to fix random cypress fails
  • Loading branch information
mkholjuraev committed Apr 10, 2024
1 parent df3416c commit 73fd746
Show file tree
Hide file tree
Showing 14 changed files with 1,205 additions and 699 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -31,3 +31,6 @@ instrumented/

# build files
build

#cache
.cache/
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -12,8 +12,8 @@ Red Hat Insights Vulnerability service is used to assess and monitor the status

## Running locally
1. Install dependencies with `npm install`
2. Run development server with `npm run start:proxy:beta`
3. Local version of the app will be available at https://stage.foo.redhat.com:1337/preview/insights/vulnerability/
2. Run development server with `npm run start:proxy`
3. While you run the command above, you will be prompted to choose an enviroment.

## Testing federated modules with another application

Expand Down
36 changes: 0 additions & 36 deletions config/dev.webpack.config.js

This file was deleted.

34 changes: 0 additions & 34 deletions config/prod.webpack.config.js

This file was deleted.

112 changes: 0 additions & 112 deletions config/rollup.config.js

This file was deleted.

29 changes: 29 additions & 0 deletions fec.config.js
@@ -0,0 +1,29 @@
/* eslint-disable no-undef */
const { resolve } = require('path');

module.exports = {
appUrl: '/insights/vulnerability',
debug: true,
useProxy: process.env.PROXY === 'true',
proxyVerbose: true,
interceptChromeConfig: false,
plugins: [],
...(process.env.HOT ? { hotReload: process.env.HOT === 'true' } : { hotReload: true }),
...(process.env.port ? { port: parseInt(process.env.port) } : {}),
moduleFederation: {
shared: [
{
'react-router-dom': {
singleton: true,
import: false,
version: '^6.8.1',
requiredVersion: '>=6.0.0 <7.0.0'
}
}
],
exposes: {
'./RootApp': resolve(__dirname, './src/AppEntry'),
'./SystemDetail': resolve(__dirname, './src/index.js')
}
}
};

0 comments on commit 73fd746

Please sign in to comment.