Our Storybook instance is hosted on Chromatic. Here is Storybook deployment documentation.
Made with create-react-library
npm install --save atd-kickstand
import React, { Component } from "react";
import MyComponent from "atd-kickstand";
import "atd-kickstand/dist/index.css";
class Example extends Component {
render() {
return <MyComponent />;
}
}
Local development involves running rollup in watch mode from the root project folder and running the built-in React app in /example/
concurrently. This will automatically compile new changes to the library in to /dist/
folder and make them available for import in the example app.
To run rollup in watch mode, in the root project folder, run:
npm start
Then, to start the example app developement server in a separate tab or terminal, run:
cd example
npm install
(only first time)
npm start
To import this library into another local repository, run:
npm install --save cityofaustin/atd-kickstand#<branch name>
The branch name can point to main
or another branch that you are developing.
yarn storybook
yarn test
yarn build-storybook
- Create a React component and test file in
/src/components
- Create a storybook file in
src/stories