Outdated, currently maintained in civic repository
$ npm i @hackoregon/component-library --save
# or
$ yarn add @hackoregon/component-library
Hack Oregon's React Component Library is a work in progress that encompasses platform components, a style guide, as well as data visualization components to be shared across projects.
For styling, we are using CSS Modules.
The components that end up here are either built using React Storybook or were ported into the Storybook dev environment. We believe this will allow us to make cross project compatible components.
Documentation for usage of these components and visual examples will be available at Hack Oregon's Storybook.
Our issues/requests are tracked on waffle.io ==>
- Get Node 6.5 + - I recommend using Node Version Manager.
git clone https://github.com/hackoregon/component-library.git
- Install with
yarn
so that your npm packages are in sync. npm start
- spin up the storybook dev environment with hot module replacement.npm test
- run tests while coding- Code/Add components in the src folder with .test files alongside the source code.
- Add stories in the story folder with .story extension.
- Make a pull request to master from feature branches.