Skip to content

Commit ee611f0

Browse files
committed
Migration to FEC
1 parent fc5e0eb commit ee611f0

File tree

5 files changed

+27
-117
lines changed

5 files changed

+27
-117
lines changed

config/dev.webpack.config.js

Lines changed: 0 additions & 51 deletions
This file was deleted.

config/prod.webpack.config.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

fec.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
appUrl: '/settings/sources',
3+
debug: true,
4+
useProxy: true,
5+
proxyVerbose: true,
6+
/**
7+
* Change to false after your app is registered in configuration files
8+
*/
9+
interceptChromeConfig: false,
10+
/**
11+
* Add additional webpack plugins
12+
*/
13+
plugins: [],
14+
_unstableHotReload: process.env.HOT === 'true',
15+
};

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@babel/plugin-transform-runtime": "^7.18.9",
4848
"@babel/preset-env": "^7.18.9",
4949
"@babel/preset-react": "^7.18.6",
50-
"@redhat-cloud-services/frontend-components-config": "^4.6.30",
50+
"@redhat-cloud-services/frontend-components-config": "^4.6.31",
5151
"@testing-library/dom": "^8.16.0",
5252
"@testing-library/jest-dom": "^5.16.4",
5353
"@testing-library/react": "^12.1.4",
@@ -71,16 +71,11 @@
7171
"test": "jest --coverage",
7272
"lint": "npm-run-all lint:*",
7373
"lint:js": "eslint config src",
74-
"travis:verify": "npm-run-all lint test build:prod",
74+
"travis:verify": "npm-run-all lint test build",
7575
"verify": "npm-run-all build lint test",
7676
"extract:messages": "npx @formatjs/cli extract 'src/**/*.{js,jsx}' --out-file ./translations/messages.json",
77-
"prod": "NODE_ENV=production webpack serve --config config/dev.webpack.config.js",
78-
"prod:beta": "NODE_ENV=production BETA=true webpack serve --config config/dev.webpack.config.js",
79-
"start": "NODE_ENV=development webpack serve --config config/dev.webpack.config.js",
80-
"start:beta": "NODE_ENV=development BETA=true webpack serve --config config/dev.webpack.config.js",
81-
"build": "webpack --config config/prod.webpack.config.js",
82-
"analyze": "NODE_ENV=production webpack --config config/prod.webpack.config.js --env analyze=true",
83-
"build:prod": "NODE_ENV=production webpack --config config/prod.webpack.config.js",
84-
"start:federated": "fec static --config config/dev.webpack.config.js"
77+
"start": "HOT=true fec dev",
78+
"build": "fec build",
79+
"start:federated": "fec static"
8580
}
8681
}

0 commit comments

Comments
 (0)