docs: add storybook story for LoginForm

This commit is contained in:
roschaefer 2019-10-15 15:35:03 +02:00
parent fced9ce435
commit 1549ff6c53
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
import { storiesOf } from '@storybook/vue'
import { withA11y } from '@storybook/addon-a11y'
import helpers from '~/storybook/helpers'
import Vue from 'vue'
import LoginForm from './LoginForm.vue'
helpers.init()
storiesOf('LoginForm', module)
.addDecorator(withA11y)
.addDecorator(helpers.layout)
.add('LoginForm', () => ({
components: { LoginForm },
data: () => ({}),
store: helpers.store,
template: `<login-form />`,
}))

View File

@ -12,7 +12,7 @@
"scripts": {
"dev": "nuxt",
"dev:styleguide": "cross-env STYLEGUIDE_DEV=true yarn run dev",
"storybook": "start-storybook -p 3002 -c storybook/",
"storybook": "start-storybook -p 3002 -s ./static -c storybook/",
"build": "nuxt build",
"start": "nuxt start",
"generate:maintenance": "nuxt generate -c nuxt.config.maintenance.js",