mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
CLI templates: rename load => configure
This commit is contained in:
parent
6ddcde7e03
commit
cc8c06718b
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user