Addon-docs: Process framework configs in babel

This commit is contained in:
Michael Shilman 2019-08-02 23:40:13 +08:00
parent f72bca8f16
commit 690b490227
8 changed files with 32 additions and 28 deletions

View File

@ -1,7 +1 @@
/* eslint-disable import/no-extraneous-dependencies */
const { addParameters } = require('@storybook/angular');
const { DocsPage } = require('@storybook/addon-docs/blocks');
addParameters({
docs: DocsPage,
});
module.exports = require('../dist/frameworks/angular/config');

View File

@ -1,7 +1 @@
/* eslint-disable import/no-extraneous-dependencies */
const { addParameters } = require('@storybook/html');
const { DocsPage } = require('@storybook/addon-docs/blocks');
addParameters({
docs: DocsPage,
});
module.exports = require('../dist/frameworks/html/config');

View File

@ -1,7 +1 @@
/* eslint-disable import/no-extraneous-dependencies */
const { addParameters } = require('@storybook/react');
const { DocsPage } = require('@storybook/addon-docs/blocks');
addParameters({
docs: DocsPage,
});
module.exports = require('../dist/frameworks/react/config');

View File

@ -0,0 +1,7 @@
/* eslint-disable import/no-extraneous-dependencies */
import { addParameters } from '@storybook/angular';
import { DocsPage } from '@storybook/addon-docs/blocks';
addParameters({
docs: DocsPage,
});

View File

@ -0,0 +1,7 @@
/* eslint-disable import/no-extraneous-dependencies */
import { addParameters } from '@storybook/html';
import { DocsPage } from '@storybook/addon-docs/blocks';
addParameters({
docs: DocsPage,
});

View File

@ -0,0 +1,7 @@
/* eslint-disable import/no-extraneous-dependencies */
import { addParameters } from '@storybook/react';
import { DocsPage } from '@storybook/addon-docs/blocks';
addParameters({
docs: DocsPage,
});

View File

@ -0,0 +1,7 @@
/* eslint-disable import/no-extraneous-dependencies */
import { addParameters } from '@storybook/vue';
import { DocsPage } from '@storybook/addon-docs/blocks';
addParameters({
docs: DocsPage,
});

View File

@ -1,7 +1 @@
/* eslint-disable import/no-extraneous-dependencies */
const { addParameters } = require('@storybook/vue');
const { DocsPage } = require('@storybook/addon-docs/blocks');
addParameters({
docs: DocsPage,
});
module.exports = require('../dist/frameworks/vue/config');