Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Add component meta to framework templates #8462

Merged
merged 1 commit into from Oct 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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