react-gears is a React implementation of Appfolio UI components, using React, Bootstrap 4, and reactstrap.
https://appfolio.github.io/react-gears
npm install @appfolio/react-gears
import React from 'react';
import { Button } from '@appfolio/react-gears';
export default (props) => {
return (
<Button color="danger">Danger!</Button>
);
};
Install dependencies:
npm install
Run storybook examples:
npm start
Open http://localhost:6006 in browser
Run tests & coverage report:
npm test
If using Cypress for integration testing, you can use react-gears-cypress for testing react-gears components.
Run Linter
npm run lint
- Runs ESLint using appfolio-react as the base configuration
npm version (major|minor|patch)
npm publish
-
Release notes are generated in the postpublish script using Github Release Notes. Instructions for installation and setup here. (Latest version has a breaking bug, so we should use the latest working version
0.17.1
)npm install -g github-release-notes@0.17.1