Skip to content

Commit

Permalink
build(sb): 👷 update sb storystore and remove react docgen plugin #376
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy authored Jun 29, 2022
2 parents e76721c + f397110 commit 6b7bf37
Show file tree
Hide file tree
Showing 4 changed files with 258 additions and 130 deletions.
5 changes: 3 additions & 2 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
module.exports = {
framework: "@storybook/react",
core: { builder: "webpack5" },
features: { babelModeV7: true },
// storyStoreV7 removes the circular dependency issue with Webpack 5
// So, we added ThemeProvider in preview.jsx and so src/theme should work for HMR
features: { storyStoreV7: true, babelModeV7: true },
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"storybook-addon-preview",
"storybook-addon-react-docgen",
"@storybook/addon-essentials",
"@storybook/addon-a11y",
{
Expand Down
4 changes: 0 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React from "react";
import { kebabCase } from "lodash";
import { addDecorator } from "@storybook/react";
import { withPropsTable } from "storybook-addon-react-docgen";

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
Expand All @@ -21,5 +19,3 @@ export const decorators = [
return <Story />;
},
];

addDecorator(withPropsTable);
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,10 @@
"react-test-renderer": "18.2.0",
"react-transition-group": "4.4.2",
"react-virtual": "2.10.4",
"release-it": "15.1.0",
"release-it": "15.1.1",
"rimraf": "3.0.2",
"sort-package-json": "1.57.0",
"storybook-addon-preview": "2.2.0",
"storybook-addon-react-docgen": "1.2.42",
"strip-comments": "2.0.1",
"tailwindcss": "3.1.4",
"ts-jest": "28.0.5",
Expand Down
Loading

1 comment on commit 6b7bf37

@vercel
Copy link

@vercel vercel bot commented on 6b7bf37 Jun 29, 2022

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:

react – ./

react-timelessco.vercel.app
react-git-main-timelessco.vercel.app
adaptui-react.vercel.app

Please sign in to comment.