[AAE-6202] Create a stories lib to make all the adf stories available (#7314)

* Create a stories lib to make all the adf stories available

* Run the test with a diff ext type

* sunc nx file
This commit is contained in:
Maurizio Vitale
2021-10-22 14:48:48 +01:00
committed by GitHub
parent 0270608bb0
commit a31f86f57b
11 changed files with 124 additions and 4 deletions

View File

@@ -0,0 +1,28 @@
const rootMain = require('../../../.storybook/main');
module.exports = {
...rootMain,
core: { ...rootMain.core, builder: 'webpack4' },
stories: [
...rootMain.stories,
'../../core/**/*.stories.@(js|jsx|ts|tsx)',
'../../content-services/**/*.stories.@(js|jsx|ts|tsx)',
'../../process-services-cloud/**/*.stories.@(js|jsx|ts|tsx)'
],
addons: [...rootMain.addons ],
webpackFinal: async (config, { configType }) => {
// apply any global webpack configs that might have been specified in .storybook/main.js
if (rootMain.webpackFinal) {
config = await rootMain.webpackFinal(config, { configType });
}
// add your own webpack tweaks if needed
return config;
},
};