CLI templates: rename load => configure

This commit is contained in:
Michael Shilman 2019-07-27 02:21:49 +08:00
parent 6ddcde7e03
commit cc8c06718b
16 changed files with 32 additions and 32 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
import { load, addParameters } from '@storybook/rax';
import { configure, addParameters } from '@storybook/rax';
addParameters({
options: {
@ -16,4 +16,4 @@ addParameters({
});
// automatically import all story js files that end with *.stories.js
load(require.context('../stories', true, /\.stories\.js$/), module);
configure(require.context('../stories', true, /\.stories\.js$/), module);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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