Skip to content

Commit

Permalink
update chromatic config
Browse files Browse the repository at this point in the history
  • Loading branch information
adnan-td committed Jul 1, 2023
1 parent 1db09f4 commit 75ec13a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import type { StorybookConfig } from "@storybook/react-vite";
import type { StorybookConfig } from '@storybook/react-vite';
const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
],
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-interactions'],
framework: {
name: "@storybook/react-vite",
name: '@storybook/react-vite',
options: {},
},
docs: {
autodocs: "tag",
autodocs: 'tag',
},
refs: {
'chromatic-published-Storybook': {
title: 'react-mouse-follower',
url: 'https://react-mouse-follower.chromatic.com',
},
},
};
export default config;
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"dist"
],
"private": false,
"storybook": {
"url": "https://react-mouse-follower.chromatic.com"
},
"scripts": {
"build": "rimraf dist && rollup -c",
"storybook": "storybook dev -p 6006",
Expand Down

0 comments on commit 75ec13a

Please sign in to comment.