-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #256 from nekochans/feature/issue255/upgrade-story…
…book Storybookを7系の最新安定版に更新
- Loading branch information
Showing
10 changed files
with
21,476 additions
and
37,132 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,20 @@ | ||
import type { StorybookConfig } from '@storybook/nextjs'; | ||
|
||
const config: StorybookConfig = { | ||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-onboarding', | ||
'@storybook/addon-interactions', | ||
], | ||
framework: { | ||
name: '@storybook/nextjs', | ||
options: {}, | ||
}, | ||
docs: { | ||
autodocs: 'tag', | ||
}, | ||
staticDirs: ['../public'], | ||
}; | ||
export default config; |
This file was deleted.
Oops, something went wrong.
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,53 @@ | ||
import type { Preview } from '@storybook/react'; | ||
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'; | ||
import { initialize, mswDecorator } from 'msw-storybook-addon'; | ||
|
||
initialize(); | ||
|
||
export const decorators = [mswDecorator]; | ||
|
||
const customViewports = { | ||
iPhone11ProMax: { | ||
name: 'iPhone 11 Pro Max', | ||
styles: { | ||
width: '414px', | ||
height: '896px', | ||
}, | ||
}, | ||
iPhone13ProMax: { | ||
name: 'iPhone 13 Pro Max', | ||
styles: { | ||
width: '428px', | ||
height: '926px', | ||
}, | ||
}, | ||
googlePixel3: { | ||
name: 'Google Pixel 3', | ||
styles: { | ||
width: '411px', | ||
height: '823px', | ||
}, | ||
}, | ||
googlePixel5: { | ||
name: 'Google Pixel 5', | ||
styles: { | ||
width: '393px', | ||
height: '851px', | ||
}, | ||
}, | ||
}; | ||
|
||
const preview: Preview = { | ||
parameters: { | ||
actions: { argTypesRegex: '^on[A-Z].*' }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
viewport: { viewports: { ...INITIAL_VIEWPORTS, ...customViewports } }, | ||
}, | ||
}; | ||
|
||
export default preview; |
Oops, something went wrong.
a4c2099
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
lgtm-cat-frontend – ./
lgtm-cat-frontend-git-main-nekochans.vercel.app
lgtm-cat-frontend.vercel.app
lgtm-cat-frontend-nekochans.vercel.app
lgtmeow.com