CHANGE cli generators to triconfig

This commit is contained in:
Norbert de Langen 2019-12-05 13:46:19 +01:00
parent ab16256732
commit 7c5858c7f7
78 changed files with 137 additions and 211 deletions

View File

@ -1,3 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
import '@storybook/addon-notes/register';

View File

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

View File

@ -0,0 +1,8 @@
module.exports = {
stories: ['../src/stories/**/*.stories.ts'],
addons: [
'@storybook/addon-actions/register',
'@storybook/addon-links/register',
'@storybook/addon-notes/register',
],
};

View File

@ -1,3 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
import '@storybook/addon-notes/register';

View File

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

View File

@ -0,0 +1,9 @@
module.exports = {
stories: ['../src/stories/**/*.stories.(ts|mdx)'],
addons: [
'@storybook/addon-actions/register',
'@storybook/addon-links/register',
'@storybook/addon-notes/register',
],
presets: ['@storybook/addon-docs/preset'],
};

View File

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

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

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

View File

@ -0,0 +1,4 @@
module.exports = {
stories: ['../stories/**/*.stories.js'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
};

View File

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

View File

@ -0,0 +1,3 @@
module.exports = {
stories: ['../stories/**/*.stories.js'],
};

View File

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

View File

@ -0,0 +1,4 @@
module.exports = {
stories: ['../stories/**/*.stories.(js|mdx)'],
presets: ['@storybook/addon-docs/preset'],
};

View File

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

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-knobs/register';

View File

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

View File

@ -0,0 +1,4 @@
module.exports = {
stories: ['../stories/**/*.stories.js'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-knobs/register'],
};

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

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

View File

@ -0,0 +1,4 @@
module.exports = {
stories: ['../stories/**/*.stories.js'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-knobs/register'],
};

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

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

View File

@ -0,0 +1,4 @@
module.exports = {
stories: ['../stories/**/*.stories.js'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-knobs/register'],
};

View File

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

View File

@ -0,0 +1,3 @@
module.exports = {
stories: ['../src/stories/**/*.stories.js'],
};

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

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

View File

@ -0,0 +1,4 @@
module.exports = {
stories: ['../stories/**/*.stories.js'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
};

View File

@ -1,14 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
import { create } from '@storybook/theming/create';
import { addons } from '@storybook/addons';
const theme = create({
base: 'light',
brandTitle: 'Rax Kitchen Sink',
brandUrl: 'https://github.com/storybookjs/storybook/tree/master/examples/rax-kitchen-sink',
});
addons.setConfig({ theme });

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

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

View File

@ -0,0 +1,4 @@
module.exports = {
stories: ['../stories/**/*.stories.js'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
};

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

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

View File

@ -0,0 +1,10 @@
module.exports = {
stories: ['../stories/**/*.stories.(js|mdx)'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
presets: [
{
name: '@storybook/addon-docs/preset',
options: { configureJSX: true },
},
],
};

View File

@ -1,6 +0,0 @@
module.exports = [
{
name: '@storybook/addon-docs/preset',
options: { configureJSX: true },
},
];

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

@ -1,4 +0,0 @@
import { configure } from '@storybook/react';
// automatically import all files ending in *.stories.(tsx|jsx)
configure(require.context('../src/stories', true, /\.stories\.[tj]sx?$/), module);

View File

@ -0,0 +1,5 @@
module.exports = {
stories: ['../src/stories/**/*.stories.(ts|tsx|js|jsx)'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
presets: ['@storybook/preset-create-react-app'],
};

View File

@ -1 +0,0 @@
module.exports = ['@storybook/preset-create-react-app'];

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

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

View File

@ -0,0 +1,5 @@
module.exports = {
stories: ['../src/stories/**/*.stories.js'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
presets: ['@storybook/preset-create-react-app'],
};

View File

@ -1 +0,0 @@
module.exports = ['@storybook/preset-create-react-app'];

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

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

View File

@ -0,0 +1,13 @@
module.exports = {
stories: ['../src/stories/**/*.stories.(js|mdx)'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
presets: [
'@storybook/preset-create-react-app',
{
name: '@storybook/addon-docs/preset',
options: {
configureJSX: true,
},
},
],
};

View File

@ -1,9 +0,0 @@
module.exports = [
'@storybook/preset-create-react-app',
{
name: '@storybook/addon-docs/preset',
options: {
configureJSX: true,
},
},
];

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

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

View File

@ -0,0 +1,4 @@
module.exports = {
stories: ['../stories/**/*.stories.js'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
};

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

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

View File

@ -0,0 +1,4 @@
module.exports = {
stories: ['../src/stories/**/*.stories.js'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
};

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

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

View File

@ -0,0 +1,5 @@
module.exports = {
stories: ['../src/stories/**/*.stories.(js|mdx)'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
presets: ['@storybook/addon-docs/preset'],
};

View File

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

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

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

View File

@ -0,0 +1,4 @@
module.exports = {
stories: ['../stories/**/*.stories.js'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
};

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

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

View File

@ -0,0 +1,4 @@
module.exports = {
stories: ['../stories/**/*.stories.js'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
};

View File

@ -1,2 +0,0 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';

View File

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

View File

@ -0,0 +1,5 @@
module.exports = {
stories: ['../stories/**/*.stories.(js|mdx)'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
presets: ['@storybook/addon-docs/preset'],
};

View File

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

View File

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

View File

@ -0,0 +1,3 @@
module.exports = {
stories: ['../stories/**/*.stories.js'],
};

View File

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

View File

@ -0,0 +1,9 @@
module.exports = {
stories: ['../stories/**/*.stories.js'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
webpack: async config => {
// do mutation to the config
return config;
},
};

View File

@ -1,18 +0,0 @@
// you can use this file to add your custom webpack plugins, loaders and anything you like.
// This is just the basic way to add additional webpack configurations.
// For more information refer the docs: https://storybook.js.org/configurations/custom-webpack-config
// IMPORTANT
// When you add this file, we won't add the default configurations which is similar
// to "React Create App". This only has babel loader to load JavaScript.
module.exports = {
plugins: [
// your custom plugins
],
module: {
rules: [
// add your custom rules.
],
},
};

View File

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

View File

@ -0,0 +1,15 @@
module.exports = {
stories: ['../stories/**/*.stories.(js|mdx)'],
addons: ['@storybook/addon-actions/register', '@storybook/addon-links/register'],
presets: [
{
name: '@storybook/addon-docs/preset',
options: { configureJSX: true },
},
],
webpack: async config => {
// do mutation to the config
return config;
},
};

View File

@ -1,6 +0,0 @@
module.exports = [
{
name: '@storybook/addon-docs/preset',
options: { configureJSX: true },
},
];

View File

@ -1,18 +0,0 @@
// you can use this file to add your custom webpack plugins, loaders and anything you like.
// This is just the basic way to add additional webpack configurations.
// For more information refer the docs: https://storybook.js.org/configurations/custom-webpack-config
// IMPORTANT
// When you add this file, we won't add the default configurations which is similar
// to "React Create App". This only has babel loader to load JavaScript.
module.exports = {
plugins: [
// your custom plugins
],
module: {
rules: [
// add your custom rules.
],
},
};