mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 05:11:08 +08:00
ADD basics storybook in example/polymer-cli
This commit is contained in:
parent
75f0c9e59d
commit
b4ed3c6257
7
examples/polymer-cli/.storybook/config.js
Normal file
7
examples/polymer-cli/.storybook/config.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import { configure } from '@storybook/polymer';
|
||||||
|
|
||||||
|
function loadStories() {
|
||||||
|
require('../src/stories');
|
||||||
|
}
|
||||||
|
|
||||||
|
configure(loadStories, module);
|
5
examples/polymer-cli/src/stories/index.js
Normal file
5
examples/polymer-cli/src/stories/index.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { storiesOf } from '@storybook/polymer';
|
||||||
|
|
||||||
|
storiesOf('Welcome', module).add('Welcome', () =>
|
||||||
|
console.log('TODO', 'we do not know what to do here yet!')
|
||||||
|
);
|
Loading…
x
Reference in New Issue
Block a user