Create an issue via our Issue Templates.
Use GitHub Discussion feature on our repository. We'll convert to an issue if needed.
Before start writing code, I recommend you to check these things:
- Editorconfig ... This project uses Editorconfig to prevent text styles from being chaos. Please use supported editor/plugin or follow the rule written in config file.
- Prettier ... This project uses Prettier for consistent code formatting.
At first, you need to install dev dependencies. (These commands may not work on Windows.)
$ yarn install
$ cd examples/basic
$ yarn install
$ cd ../..
Then build the addon's source code with TypeScript compiler to make sure the current branch is okay.
$ yarn build
You can directly add --watch
flag to enable watch mode.
$ yarn build --watch
To test your change works with actual Storybook, run the below command and start an example Storybook. It will start at http://localhost:6006 by default.
$ cd examples/basic
$ yarn storybook
Format files under the src/
:
$ yarn prettier --write src
We use Vitest for unit testing.
$ yarn test
You can turn off watch mode with run
command.
$ yarn test run
Before submit a Pull Request, make sure following:
yarn test
does not emit an erroryarn lint
does not emit an error
Please make sure to fill our Pull Request template.