Skip to content

Commit

Permalink
Merge pull request #1 from performant-software/feature/storybook
Browse files Browse the repository at this point in the history
Install Storybook
  • Loading branch information
dleadbetter authored May 11, 2020
2 parents f022892 + d307459 commit 34c06a9
Show file tree
Hide file tree
Showing 76 changed files with 19,582 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_GOOGLE_MAPS_API_KEY='AIzaSyD0aqCeWnxKyU4srm6o44hX6nPb74_c2BQ'
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]
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/
node_modules/
10 changes: 10 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
stories: [
'../stories/**/*.stories.js'
],
addons: [
'@storybook/addon-actions',
'@storybook/addon-knobs/register',
'@storybook/addon-links'
],
};
15 changes: 15 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react';
import { I18nextProvider } from 'react-i18next';
import { addDecorator, addParameters } from '@storybook/react';
import i18n from '../src/i18n/i18n';
import 'semantic-ui-css/semantic.min.css';

addDecorator(storyFn => (
<I18nextProvider i18n={i18n}>{storyFn()}</I18nextProvider>
));

addParameters({
options: {
showRoots: true
}
});
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
# react-components
A library of shared React components

## Development

### Building
```
npm run build
```

#### Storybook
```
npm run storybook
```

## Usage

### Install
```
npm install performant-software/react-components
```
Loading

0 comments on commit 34c06a9

Please sign in to comment.