Skip to content

Commit

Permalink
feat(deps)!: migrate to Storybook 8.0 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbardini authored Aug 2, 2024
1 parent ec99357 commit f765fcb
Show file tree
Hide file tree
Showing 15 changed files with 5,377 additions and 7,697 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no lint-staged
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"arrowParens": "avoid",
"plugins": ["prettier-plugin-packagejson"],
"semi": false,
"singleQuote": true,
"trailingComma": "all"
Expand Down
4 changes: 2 additions & 2 deletions .storybook/local-preset.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
function previewAnnotations(entry = []) {
return [...entry, require.resolve('../dist/preview.mjs')]
return [...entry, require.resolve('../dist/preview.js')]
}

function managerEntries(entry = []) {
return [...entry, require.resolve('../dist/manager.mjs')]
return [...entry, require.resolve('../dist/manager.js')]
}

module.exports = {
Expand Down
5 changes: 1 addition & 4 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ import type { StorybookConfig } from '@storybook/react-vite'

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['./local-preset.js'],
addons: ['@storybook/addon-docs', './local-preset.js'],
framework: {
name: '@storybook/react-vite',
options: {},
},
docs: {
autodocs: 'tag',
},
}

export default config
1 change: 1 addition & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const preview: Preview = {
parameters: {
layout: 'fullscreen',
},
tags: ['autodocs'],
}

export default preview
2 changes: 1 addition & 1 deletion manager.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './dist/manager'
import './dist/manager'
Loading

0 comments on commit f765fcb

Please sign in to comment.