React component library for https://github.com/openshift-assisted/assisted-ui.
Please note, the project's upstream has been renamed and moved from mareklibra/facet-lib to https://github.com/openshift-assisted/assisted-ui-lib in December 2020.
npm install --save openshift-assisted-ui-lib
or
yarn add openshift-assisted-ui-lib
One time action:
sudo dnf install -y inotify-tools
yarn install
- yarn start: Watches for changes in the
/src
folder and bundles the files into/dist
folder - yarn sync-to-ui: Synchronizes
/dist
with the assisted-ui application'snode_modules/openshift-assisted-ui-lib
folder. - yarn start-assisted-ui: Runs the following 3 scripts in parallel:
yarn start
,yarn sync-to-ui
andyarn start
inside the assisted-ui project.
Before using the yarn start-assisted-ui script, make sure this project and the assisted-ui
(and optionally the uhc-portal
) project are located in the same folder.
Next, create a .env.local
file at the root folder of this repository and include this variable:
REACT_APP_API_URL="...ask the team"
To publish the Node.js package, simply create a new tag in format v[VERSION]
.
To do so, preferably draft a new release with:
- tag:
v[VERSION]
, example:v1.2.3
- title:
v[VERSION]
, example:v1.2.3
New version of the package will be published to npmjs.com and a new PR with version change will be created automatically by a GitHub action.
If you see the following error: Error: ENOSPC: System limit for number of file watchers reached
,
you will need to increase the number of inotify watchers.
From the terminal run the following commands:
$ sudo sh -c "echo fs.inotify.max_user_watches=524288 >> /etc/sysctl.conf"
$ sudo sysctl -p
Apache-2.0