https://app-r.referens.sys.kth.se/static/components/
Library of React components based on KTH-style and reactstrap
Installation:
yarn install
The following commands should be used:
yarn start (start documentation web server)
yarn test:unit (start unit tests in watch mode)
yarn dev (run start and test:unit above)
yarn test (run unit tests)
yarn build (build the code for npm package)
Checklist for new category (e.g. team/group)
One-time setup, given a new category named 'demo':
- create folder 'src/components/demo'
- create index file '/components/demo/index.ts'
- add reference to demo in '/components/index.ts'
- create folder 'src/stories/demo'
And then create components (and stories to document them):
- create component in 'src/components/demo'
- add import/export of component in 'src/components/demo/index.ts'
- create story in 'src/stories/demo'
- describe/use component in story