Monorepo of Red Hat Cloud services Components for applications in a React.js environment.
- utils - library that has utilities functions
- charts - small group of general charts
- components - series of common components
- notifications - common component to display toast notifications
- remediations - hot loaded component that shows remediations buton and wizard
- inventory - hot loaded inventory component (table and detail)
- inventory-general-info - directly imported component with redux store to show system information
- inventory-vulnerabilities - directly imported component with redux store to show vulnerability data
- inventory-compliance - directly imported component with graphql to show compliance data
- inventory-insights - directly imported component to show insights data
Since this is monorepo repository it has some special requirements how to run tasks. This repository is using lerna, so if you have newer version of npm you can run npx lerna $TASK
where $TASK is one of lerna commands.
These tasks are preconfigured
npm start
- will perform start in all packages, you can change the scope by callingnpm start -- --scope=pckg_name
to run start inpckg_name
npm run build
- will perform build in all packages, you can change the scope by callingnpm start -- --scope=pckg_name
to run start inpckg_name
npm run clean
- to remove all node modules in root and in packages foldernpm run bootstrap
- to install packages correctly (will link local dependencies as well)npm run test
- to run tests locallynpm run watch
- similiar to start, but will emit files to disk (good for local links)npm run playground
- to launch local demo on port 8080
Install all packages by calling npm install
in root folder. This will perform bootstrap and initial build as well. After that you can choose either playground for testing things seperately, or npm run build
to build all packages.
If none package suits scope of new changes, we need to create new package by creating folder inside packages
and running npm init
in it.
Webhooks are enabled to trigger releases on travis from comment on merged PR. If you are member of group responsible for releases you can add new commnent to merged PR Release minor
, Release bugfix
or Release
in order to trigger new release.
You can also draft a release by adding label release
or release minor
and once this PR is merged new release will be triggered.