Skip to content

Commit

Permalink
CLI: Add component meta to framework templates (#8462)
Browse files Browse the repository at this point in the history
CLI: Add component meta to framework templates
  • Loading branch information
shilman committed Oct 17, 2019
2 parents 552ea06 + 1f6ce87 commit 157cf12
Show file tree
Hide file tree
Showing 35 changed files with 36 additions and 13 deletions.
Expand Up @@ -2,6 +2,7 @@ import { Welcome } from '@storybook/angular/demo';

export default {
title: 'Welcome',
component: Welcome,
};

export const toStorybook = () => ({
Expand Down
Expand Up @@ -5,6 +5,7 @@ import { Button } from '@storybook/angular/demo';

export default {
title: 'Button',
component: Button,
};

export const text = () => ({
Expand Down
@@ -1,7 +1,7 @@
import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
import { Welcome } from '@storybook/angular/demo';

<Meta title="Welcome" />
<Meta title="Welcome" component={Welcome} />

# Welcome

Expand Down
Expand Up @@ -4,7 +4,7 @@ import { linkTo } from '@storybook/addon-links';

import { Button } from '@storybook/angular/demo';

<Meta title="Button" />
<Meta title="Button" component={Button} />

# Button

Expand Down
Expand Up @@ -2,6 +2,7 @@ import Welcome from './components/welcome/index.marko';

export default {
title: 'Welcome',
component: Welcome,
};

export const welcome = () => ({ component: Welcome });
Expand Up @@ -4,6 +4,7 @@ import { Welcome } from '@storybook/react/demo';

export default {
title: 'Welcome',
component: Welcome,
};

export const toStorybook = () => <Welcome showApp={linkTo('Button')} />;
Expand Down
Expand Up @@ -4,6 +4,7 @@ import { Button } from '@storybook/react/demo';

export default {
title: 'Button',
component: Button,
};

export const text = () => <Button onClick={action('clicked')}>Hello Button</Button>;
Expand Down
Expand Up @@ -4,6 +4,7 @@ import Welcome from './Welcome';

export default {
title: 'Welcome',
component: Welcome,
};

export const toStorybook = () => ({
Expand Down
Expand Up @@ -4,6 +4,7 @@ import Button from './Button';

export default {
title: 'Button',
component: Button,
};

export const text = () => ({
Expand Down
Expand Up @@ -6,6 +6,7 @@ import Welcome from './Welcome';

export default {
title: 'Welcome',
component: Welcome,
};

export const toStorybook = () => <Welcome showApp={linkTo('Button')} />;
Expand Down
Expand Up @@ -6,6 +6,7 @@ import Button from './Button';

export default {
title: 'Button',
component: Button,
};

export const text = () => <Button onClick={action('clicked')}>Hello Button</Button>;
Expand Down
Expand Up @@ -5,6 +5,7 @@ import Welcome from './Welcome';

export default {
title: 'Welcome',
component: Welcome,
};

export const toStorybook = () => <Welcome showApp={linkTo('Button', 'with text')} />;
Expand Down
Expand Up @@ -4,6 +4,7 @@ import { Welcome } from '@storybook/react/demo';

export default {
title: 'Welcome',
component: Welcome,
};

export const toStorybook = () => <Welcome showApp={linkTo('Button')} />;
Expand Down
Expand Up @@ -4,6 +4,7 @@ import { Button } from '@storybook/react/demo';

export default {
title: 'Button',
component: Button,
};

export const text = () => <Button onClick={action('clicked')}>Hello Button</Button>;
Expand Down
Expand Up @@ -2,7 +2,7 @@ import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
import { linkTo } from '@storybook/addon-links';
import { Welcome } from '@storybook/react/demo';

<Meta title="Welcome" />
<Meta title="Welcome" component={Welcome} />

# Welcome

Expand Down
Expand Up @@ -2,7 +2,7 @@ import { action } from '@storybook/addon-actions';
import { Button } from '@storybook/react/demo';
import { Meta, Story } from '@storybook/addon-docs/blocks';

<Meta title="Button" />
<Meta title="Button" component={Button} />

# Button

Expand Down
Expand Up @@ -4,6 +4,7 @@ import { Welcome } from '@storybook/react/demo';

export default {
title: 'Welcome',
component: Welcome,
};

export const toStorybook = () => <Welcome showApp={linkTo('Button')} />;
Expand Down
Expand Up @@ -4,6 +4,7 @@ import { Button } from '@storybook/react/demo';

export default {
title: 'Button',
component: Button,
};

export const text = () => <Button onClick={action('clicked')}>Hello Button</Button>;
Expand Down
Expand Up @@ -4,6 +4,7 @@ import { Welcome } from '@storybook/react/demo';

export default {
title: 'Welcome',
component: Welcome,
};

export const toStorybook = () => <Welcome showApp={linkTo('Button')} />;
Expand Down
Expand Up @@ -4,6 +4,7 @@ import { Button } from '@storybook/react/demo';

export default {
title: 'Button',
component: Button,
};

export const text = () => <Button onClick={action('clicked')}>Hello Button</Button>;
Expand Down
Expand Up @@ -2,7 +2,7 @@ import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
import { linkTo } from '@storybook/addon-links';
import { Welcome } from '@storybook/react/demo';

<Meta title="Welcome" />
<Meta title="Welcome" component={Welcome} />

# Welcome

Expand Down
Expand Up @@ -2,7 +2,7 @@ import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
import { action } from '@storybook/addon-actions';
import { Button } from '@storybook/react/demo';

<Meta title="Button" />
<Meta title="Button" component={Button} />

# Button

Expand Down
Expand Up @@ -4,6 +4,7 @@ import Welcome from './Welcome.vue';

export default {
title: 'Welcome',
component: Welcome,
};

export const toStorybook = () => ({
Expand Down
Expand Up @@ -5,6 +5,7 @@ import MyButton from './MyButton.vue';

export default {
title: 'Button',
component: MyButton,
};

export const text = () => ({
Expand Down
Expand Up @@ -2,7 +2,7 @@ import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
import { linkTo } from '@storybook/addon-links';
import Welcome from './Welcome.vue';

<Meta title="Welcome" />
<Meta title="Welcome" component={Welcome} />

# Welcome

Expand Down
Expand Up @@ -3,7 +3,7 @@ import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import MyButton from './MyButton.vue';

<Meta title="Button" />
<Meta title="Button" component={MyButton} />

# Button

Expand Down
Expand Up @@ -4,6 +4,7 @@ import Button from './button.svelte';

export default {
title: 'Button',
component: Button,
};

export const text = () => ({
Expand Down
Expand Up @@ -4,6 +4,7 @@ import Welcome from './Welcome';

export default {
title: 'Welcome',
component: Welcome,
};

export const toStorybook = () => ({
Expand Down
Expand Up @@ -5,6 +5,7 @@ import MyButton from './MyButton';

export default {
title: 'Button',
component: MyButton,
};

export const text = () => ({
Expand Down
Expand Up @@ -2,7 +2,7 @@ import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
import { linkTo } from '@storybook/addon-links';
import Welcome from './Welcome';

<Meta title="Welcome" />
<Meta title="Welcome" component={Welcome} />

# Welcome

Expand Down
Expand Up @@ -3,7 +3,7 @@ import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import MyButton from './MyButton';

<Meta title="Button" />
<Meta title="Button" component={MyButton} />

# Button

Expand Down
Expand Up @@ -4,6 +4,7 @@ import { Welcome } from '@storybook/react/demo';

export default {
title: 'Welcome',
component: Welcome,
};

export const toStorybook = () => <Welcome showApp={linkTo('Button')} />;
Expand Down
Expand Up @@ -5,6 +5,7 @@ import { Button } from '@storybook/react/demo';

export default {
title: 'Button',
component: Button,
};

export const text = () => <Button onClick={action('clicked')}>Hello Button</Button>;
Expand Down
Expand Up @@ -2,7 +2,7 @@ import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
import { linkTo } from '@storybook/addon-links';
import { Welcome } from '@storybook/react/demo';

<Meta title="Welcome" />
<Meta title="Welcome" component={Welcome} />

# Welcome

Expand Down
@@ -1,8 +1,8 @@
import { Meta, Story } from '@storybook/addon-docs/blocks';
import { action } from '@storybook/addon-actions';
import { Button } from '@storybook/react/demo';
import { Meta, Story } from '@storybook/addon-docs/blocks';

<Meta title="Button" />
<Meta title="Button" component={Button} />

# Button

Expand Down

0 comments on commit 157cf12

Please sign in to comment.