CLI: MDX configuration fixes

This commit is contained in:
Michael Shilman 2019-10-13 17:08:43 +08:00
parent 57d73317e8
commit 08458640a4
7 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import { configure } from '@storybook/angular';
// automatically import all files ending in *.stories.ts
configure(require.context('../src/stories', true, /\.stories\.ts$/), module);
configure(require.context('../src/stories', true, /\.stories\.(ts|mdx)$/), module);

View File

@ -1,4 +1,4 @@
import { configure } from '@storybook/html';
// automatically import all files ending in *.stories.js
configure(require.context('../stories', true, /\.stories\.js$/), module);
configure(require.context('../stories', true, /\.stories\.(js|mdx)$/), module);

View File

@ -1,4 +1,4 @@
import { configure } from '@storybook/react';
// automatically import all files ending in *.stories.js
configure(require.context('../stories', true, /\.stories\.js$/), module);
configure(require.context('../stories', true, /\.stories\.(js|mdx)$/), module);

View File

@ -1,4 +1,4 @@
import { configure } from '@storybook/vue';
// automatically import all files ending in *.stories.js
configure(require.context('../src/stories', true, /\.stories\.js$/), module);
configure(require.context('../src/stories', true, /\.stories\.(js|mdx)$/), module);

View File

@ -1,4 +1,4 @@
import { configure } from '@storybook/vue';
// automatically import all files ending in *.stories.js
configure(require.context('../stories', true, /\.stories\.js$/), module);
configure(require.context('../stories', true, /\.stories\.(js|mdx)$/), module);

View File

@ -0,0 +1 @@
module.exports = ['@storybook/addon-docs/vue/preset'];

View File

@ -1,4 +1,4 @@
import { configure } from '@storybook/react';
// automatically import all files ending in *.stories.js
configure(require.context('../stories', true, /\.stories\.js$/), module);
configure(require.context('../stories', true, /\.stories\.(js|mdx)$/), module);