https://github.com/boweihan/react-component-library-starter
React Component Library
https://github.com/boweihan/react-component-library-starter
Last synced: 2 months ago
JSON representation
React Component Library
- Host: GitHub
- URL: https://github.com/boweihan/react-component-library-starter
- Owner: boweihan
- Created: 2017-11-24T05:31:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-27T00:14:39.000Z (over 7 years ago)
- Last Synced: 2025-01-31T09:45:41.245Z (4 months ago)
- Language: JavaScript
- Size: 319 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## React Component Library
Currently in development. Details to come
TODO:
- Guidelines for differentiating between elements, molecules and organisms
- Unit tests and tests before build, need to unit test any logic in the components (JEST)
- Better README for component developmentNOTE:
With fonts, we are simply appending classnames. It is the responsibility of the hosting application
to ensure that the font libraries are loaded properly.# How to develop a component
- Add components under lib/ (see Button.js for example)
- Following atomic design, components should be separated into elements/molecules/organisms depending on the scope.
- Colors should be specified in lib/styles/colors.js
- Fonts should be specified in lib/typography/fonts.js
- Components should be exported in lib/index.js# Development Tools
- Install your editors eslint plugin to leverage the .eslintrc config
- npm install to install dependencies# View components with Storybook
- npm run storybook# Build the app to import into webclient
- npm run webpack