Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
SpicyPete committed Jan 18, 2019
1 parent 2d4d3cb commit acb702e
Show file tree
Hide file tree
Showing 26 changed files with 13,270 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-flow" ],
"plugins": ["@babel/plugin-proposal-class-properties"]
}
8 changes: 8 additions & 0 deletions .browserlistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"browserslist": [
"last 1 version",
"> 1%",
"maintained node versions",
"not dead"
]
}
11 changes: 11 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[ignore]

[include]

[libs]

[lints]

[options]

[strict]
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
dist

storybook-static/
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parser": "babylon",
"printWidth": 80,
"useTabs": true,
"tabWidth": 2,
"singleQuote": true,
"semi": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always"
}
4 changes: 4 additions & 0 deletions .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import '@storybook/addon-knobs/register';
import '@storybook/addon-notes/register';
import '@storybook/addon-actions/register';
import '@storybook/addon-storysource/register';
14 changes: 14 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { configure, addDecorator } from '@storybook/react';
import { withNotes } from '@storybook/addon-notes';
import { withKnobs } from '@storybook/addon-knobs'

// automatically import all files ending in *.stories.js
const req = require.context('../src/components', true, /[^/]+\/stories.js$/);
function loadStories() {
req.keys().forEach(filename => req(filename));
}

addDecorator(withNotes);
addDecorator(withKnobs);

configure(loadStories, module);
13 changes: 13 additions & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = function (baseConfig, env, defaultConfig) {
defaultConfig.module.rules.push({
test: /\.stories\.jsx?$/,
loaders: [
{
loader: require.resolve('@storybook/addon-storysource/loader'),
}
],
enforce: 'pre',
});

return defaultConfig;
};
Loading

0 comments on commit acb702e

Please sign in to comment.