From 15d52caea6335b049c7c9b9c1cbdd705b0f0615c Mon Sep 17 00:00:00 2001 From: cdaringe Date: Thu, 9 Mar 2017 18:33:11 -0800 Subject: [PATCH] fix(pkg): drop storybook, add missing deps --- .storybook/addons.js | 2 - .storybook/config.js | 13 - .../styleguidist/styleguidist.stories.js | 8 - .storybook/styles.css | 3 - .storybook/webpack.config.js | 55 - .storybook/welcome/Welcome.js | 36 - .storybook/welcome/Welcome.stories.js | 6 - package.json | 25 +- scripts/builder.js | 13 +- src/components/charts/AreaChart/AreaChart.jsx | 3 +- src/components/charts/BarChart/BarChart.jsx | 3 +- styleguide.config.js | 2 +- yarn.lock | 1373 +++++------------ 13 files changed, 426 insertions(+), 1116 deletions(-) delete mode 100644 .storybook/addons.js delete mode 100644 .storybook/config.js delete mode 100644 .storybook/styleguidist/styleguidist.stories.js delete mode 100644 .storybook/styles.css delete mode 100644 .storybook/webpack.config.js delete mode 100644 .storybook/welcome/Welcome.js delete mode 100644 .storybook/welcome/Welcome.stories.js diff --git a/.storybook/addons.js b/.storybook/addons.js deleted file mode 100644 index d441359..0000000 --- a/.storybook/addons.js +++ /dev/null @@ -1,2 +0,0 @@ -import '@kadira/storybook-addon-knobs/register' -import '@kadira/storybook-addon-notes/register' diff --git a/.storybook/config.js b/.storybook/config.js deleted file mode 100644 index 0ce19fc..0000000 --- a/.storybook/config.js +++ /dev/null @@ -1,13 +0,0 @@ -import '../lib/styles/semantic.css' -import './styles.css' -import { configure } from '@kadira/storybook' - -const styleLoader = require.context(`${__dirname}/styleguidist`, true, /.stories.js$/) -const welcomeLoader = require.context(`${__dirname}/welcome`, true, /.stories.js$/) - -function loadStories () { - welcomeLoader.keys().forEach(f => welcomeLoader(f)) - styleLoader.keys().forEach(f => styleLoader(f)) -} - -configure(loadStories, module) diff --git a/.storybook/styleguidist/styleguidist.stories.js b/.storybook/styleguidist/styleguidist.stories.js deleted file mode 100644 index 362812c..0000000 --- a/.storybook/styleguidist/styleguidist.stories.js +++ /dev/null @@ -1,8 +0,0 @@ -import React from 'react' -import { storiesOf } from '@kadira/storybook' - -const sgURI = process.env.NODE_ENV.match(/devel/) ? 'http://localhost:3000' : '/styleguide' -console.log(`env: ${process.env.NODE_ENV}`) -console.log(`sourcing styleguide from: ${sgURI}`) -export default storiesOf('components', module) -.add('via styleguidist', () =>