Skip to content

Commit

Permalink
Migrate storybook from webpack → vite
Browse files Browse the repository at this point in the history
required adding a crazy litany of dev dependencies due to poor compatibility with yarn PNP: storybookjs/builder-vite#141 (comment)
  • Loading branch information
acusti committed Oct 14, 2022
1 parent ea19a3f commit d33a874
Show file tree
Hide file tree
Showing 72 changed files with 2,510 additions and 193 deletions.
1,594 changes: 1,445 additions & 149 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 0 additions & 6 deletions packages/docs/.storybook/main.js
@@ -1,5 +1,3 @@
const path = require('path');

module.exports = {
stories: [
'../stories/Introduction.stories.mdx',
Expand All @@ -10,8 +8,4 @@ module.exports = {
typescript: {
reactDocgen: 'react-docgen',
},
webpackFinal: (config, { configType }) => {
config.resolve.alias['core-js'] = path.dirname(require.resolve('core-js'));
return config;
},
};
16 changes: 15 additions & 1 deletion packages/docs/package.json
Expand Up @@ -8,11 +8,24 @@
"@babel/core": "^7.19.3",
"@mdx-js/react": "^1.6.22",
"@storybook/addon-actions": "^6.5.12",
"@storybook/addon-backgrounds": "^6.5.12",
"@storybook/addon-docs": "^6.5.12",
"@storybook/addon-essentials": "^6.5.12",
"@storybook/addon-interactions": "^6.5.12",
"@storybook/addon-links": "^6.5.12",
"@storybook/addon-measure": "^6.5.12",
"@storybook/addon-outline": "^6.5.12",
"@storybook/addons": "^6.5.12",
"@storybook/builder-vite": "^0.2.4",
"@storybook/channel-postmessage": "^6.5.12",
"@storybook/channel-websocket": "^6.5.12",
"@storybook/client-api": "^6.5.12",
"@storybook/client-logger": "^6.5.12",
"@storybook/core-common": "^6.5.12",
"@storybook/node-logger": "^6.5.12",
"@storybook/preview-web": "^6.5.12",
"@storybook/react": "^6.5.12",
"@storybook/testing-library": "^0.0.13",
"@types/react": "^18.0.15",
"@types/storybook__addon-info": "^5.2.5",
"@types/storybook__react": "^5.2.1",
Expand All @@ -21,7 +34,8 @@
"react": "^18.2.0",
"react-docgen": "next",
"react-dom": "^18.2.0",
"typescript": "^4.8.4"
"typescript": "^4.8.4",
"vite": "^3.1.8"
},
"dependencies": {
"@acusti/css-value-input": "*",
Expand Down
File renamed without changes.
File renamed without changes.
@@ -1,7 +1,7 @@
import React from 'react';

import { Page } from './Page.tsx';
import * as HeaderStories from './Header.stories.js';
import * as HeaderStories from './Header.stories.jsx';

export default {
title: 'Example/Page',
Expand Down

0 comments on commit d33a874

Please sign in to comment.