Kyma React Components
This application is a ReactJS component library for the Kyma, based on the component-library-starter.
You can see the components and their properties on the Console page.
To import the library into an application, run the following command:
npm install --save @kyma-project/react-components
After the build, the webpack creates the
npm run build
Then run the
npm run build:watch
Use react-styleguidist as a development environment. It lists component propTypes and shows live, editable usage examples based on Markdown files.
To run the live preview:
npm run styleguide
To build sources for later publication:
npm run styleguide:build
Jest Snapshots manages all of the testing. Jest Snapshots places the tests in the
__tests__ folders, on the component level.
To run the tests once:
To run the watch script:
npm run test:watch
To view the coverage report:
npm run test:coverage:report