Currently, the project has several integrity checks that are enforced by the CI/CD pipeline. To run them locally, use the prepared NPM scripts:
Check (or check and fix) code formatting using pre-defined rules:
npm run format
npm run format:fixCheck that all Typescript files are well-typed:
npm run typecheckCheck that there are no lint violations (or try to fix those that can be resolved automatically):
npm run lint
npm run lint:fixWe support unit tests using vitest:
npm run testAnd we also support storybook tests using playwright (you may need to run npx playwright install to initialize playwright before the first test execution):
npm run storybook:testTo actually work with the provided components, we use storybook. To start an interactive session, use:
npm run storybookTo build a static, deployable version of the storybook environment, use:
npm run storybook:buildAfter each commit, the result of storybook:build is deployed to github pages at https://sybila.github.io/biodivine-ui-components/$BRANCH_NAME. This way, you can explore the current state of the project or share it with someone externally.
Currently, skipLibCheck is enabled in tsconfig.json due to this issue. Not sure if this ever gets resolved, so for now we are stuck with this setting.