Skip to content

cohstats/coh-stats-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

872bd2f · Mar 4, 2023

History

26 Commits
Dec 13, 2022
Mar 4, 2023
Dec 13, 2022
Mar 4, 2023
Dec 13, 2022
Dec 13, 2022
Dec 13, 2022
Dec 13, 2022
Dec 19, 2022
Dec 13, 2022
Dec 13, 2022
Dec 13, 2022
Dec 13, 2022
Dec 19, 2022
Dec 13, 2022
Dec 13, 2022
Mar 4, 2023
Dec 13, 2022
Dec 13, 2022
Dec 13, 2022
Mar 4, 2023

Repository files navigation

coh-stats-components

This library includes all Mantine React components that are reused in multiple cohstats projects.

Please only include stateless components which are used for Rendering UI elements!

Get started

  • Install dependencies: yarn
  • Start storybook with npm run storybook

Publishing

  • Commit changes
  • During commit new dist files will be build
  • Commit the dist files too
  • To use the new components in other projects, create a tag on the newest commit
  • Add the package to the dependencies list in the project in the package.json file
"dependencies": {
    "coh-stats-components": "github:cohstats/coh-stats-components#<ENTER TAG HERE>"
}

e.g.

"dependencies": {
    "coh-stats-components": "github:cohstats/coh-stats-components#0.0.1"
}
  • Install the package with yarn

Testing scripts

  • npm run typecheck – checks validity of types
  • npm run lint – lints package code
  • npm run jest – package unit tests
  • npm run prettier:test – checks package code formatting