This library includes types and util functions that are reused in multiple coh3 related projects.
- Install dependencies:
yarn
- make sure files are build using
yarn build
- Commit changes
- 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": {
"coh3-data-types-library": "github:cohstats/coh3-data-types-library#<ENTER TAG HERE>"
}
e.g.
"dependencies": {
"coh3-data-types-library": "github:cohstats/coh3-data-types-library#0.0.1"
}
- Install the package with
yarn
npm run typecheck
– checks validity of typesnpm run lint
– lints package codenpm run jest
– package unit testsnpm run prettier:test
– checks package code formatting