Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
standardize storybook config
Browse files Browse the repository at this point in the history
  • Loading branch information
boygirl committed Apr 27, 2018
1 parent 79455dc commit 4793f87
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "@storybook/addon-options/register";
11 changes: 11 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
import { configure } from '@storybook/react';
import React from "react";
import 'react-chromatic/storybook-addon';
import { setOptions } from '@storybook/addon-options';

setOptions({
name: "Victory",
url: "https://formidable.com/open-source/victory",
goFullScreen: false,
showLeftPanel: true,
showDownPanel: false,
sortStoriesByKind: true,
hierarchySeparator: /\./
});

function loadStories() {
require("../stories/victory-pie");
Expand Down
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
},
"devDependencies": {
"@storybook/addon-actions": "^3.2.13",
"@storybook/addon-options": "^3.1.2",
"@storybook/react": "^3.2.13",
"babel-plugin-lodash": "^3.1.2",
"babel-preset-react": "^6.5.0",
Expand Down

0 comments on commit 4793f87

Please sign in to comment.