Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ npm-debug.log*
node_modules
.npm
/coverage
/.vscode
/.vscode

# The static storybook build created by build-storybook
storybook-static
4 changes: 3 additions & 1 deletion .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { configure } from '@kadira/storybook';
import { configure, getStorybook } from '@kadira/storybook';

// automatically import all story.js files, excluding buffer components
const req = require.context('../', true, /^(?!.*@bufferapp\/components).*(story\.jsx)$/);
Expand All @@ -8,3 +8,5 @@ function loadStories() {
}

configure(loadStories, module);

if (typeof window === 'object') window.__storybook_stories__ = getStorybook();
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"start": "start-storybook -p 9002",
"deploy-storybook": "storybook-to-ghpages",
"lint": "./node_modules/eslint/bin/eslint.js . --ignore-pattern coverage .storybook node_modules",
"percy-snapshot": "build-storybook && percy-storybook",
"test": "npm run lint && jest --coverage",
"test-watch": "jest --watch",
"test-update": "jest -u"
Expand Down Expand Up @@ -49,6 +50,7 @@
"@kadira/storybook": "2.35.3",
"@kadira/storybook-addon-links": "1.0.1",
"@kadira/storybook-deployer": "1.2.0",
"@percy-io/react-percy-storybook": "0.1.4",
"babel-cli": "6.24.0",
"babel-eslint": "7.2.1",
"babel-jest": "19.0.0",
Expand Down