-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): storybook upgrade and husky setup
- storybook upgraded to latest version - husky pre-commit hook setup to reduce the chances of commits failing remote checks - removed unnecessary `prepare` script since `build` script is called in `release` script - fixed warning when running storybook - replace deprecated `@storybook/addon-styling` package and `@storybook/addon-styling-webpack` and `@storybook/addon-themes` with associated setup
- Loading branch information
1 parent
5010777
commit 994d2fa
Showing
6 changed files
with
888 additions
and
4,397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pnpm prettier-check | ||
pnpm test | ||
pnpm build | ||
pnpm build-storybook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
import type { Preview } from '@storybook/react' | ||
import { withThemeByClassName } from '@storybook/addon-themes' | ||
import { Preview, ReactRenderer } from '@storybook/react' | ||
import '../src/frontend/tailwind.css' | ||
|
||
const preview: Preview = { | ||
parameters: { | ||
actions: { argTypesRegex: '^on[A-Z].*' }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
}, | ||
decorators: [ | ||
withThemeByClassName<ReactRenderer>({ | ||
themes: { | ||
light: '', | ||
dark: 'dark', | ||
}, | ||
defaultTheme: 'dark', | ||
}), | ||
], | ||
} | ||
|
||
export default preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.