MIGRATE ember-example to triconfig

This commit is contained in:
Norbert de Langen 2019-11-25 14:27:30 +01:00
parent 662d0a5676
commit 6ffad2a6d3
6 changed files with 35 additions and 32 deletions

View File

@ -1,9 +0,0 @@
import '@storybook/addon-a11y/register';
import '@storybook/addon-storysource/register';
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
import '@storybook/addon-notes/register';
import '@storybook/addon-knobs/register';
import '@storybook/addon-viewport/register';
import '@storybook/addon-options/register';
import '@storybook/addon-backgrounds/register';

View File

@ -1,11 +0,0 @@
import { configure, addParameters, addDecorator } from '@storybook/ember';
import { withA11y } from '@storybook/addon-a11y';
addDecorator(withA11y);
addParameters({
options: {
showRoots: true,
},
});
configure(require.context('../stories', true, /\.stories\.js$/), module);

View File

@ -0,0 +1,25 @@
const path = require('path');
module.exports = {
addons: [
'@storybook/addon-a11y/register',
'@storybook/addon-storysource/register',
'@storybook/addon-actions/register',
'@storybook/addon-links/register',
'@storybook/addon-notes/register',
'@storybook/addon-knobs/register',
'@storybook/addon-viewport/register',
'@storybook/addon-options/register',
'@storybook/addon-backgrounds/register',
],
stories: ['../stories/**/*.stories.js'],
webpack: async config => {
config.module.rules.push({
test: [/\.stories\.js$/, /index\.js$/],
loaders: [require.resolve('@storybook/source-loader')],
include: [path.resolve(__dirname, '../')],
enforce: 'pre',
});
return config;
},
};

View File

@ -0,0 +1,9 @@
import { addParameters, addDecorator } from '@storybook/ember';
import { withA11y } from '@storybook/addon-a11y';
addDecorator(withA11y);
addParameters({
options: {
showRoots: true,
},
});

View File

@ -1,11 +0,0 @@
const path = require('path');
module.exports = async ({ config }) => {
config.module.rules.push({
test: [/\.stories\.js$/, /index\.js$/],
loaders: [require.resolve('@storybook/source-loader')],
include: [path.resolve(__dirname, '../')],
enforce: 'pre',
});
return config;
};

View File

@ -1 +1 @@
export const version = '5.3.0-beta.3';
export const version = '5.3.0-beta.6';