AAE-40269 Add storybook v10 (#11401)

This commit is contained in:
Wojciech Duda
2026-01-09 18:17:43 +00:00
committed by GitHub
parent f0c6cc0ff7
commit 5f9de1fde8
119 changed files with 11010 additions and 753 deletions
@@ -0,0 +1,24 @@
import { fileURLToPath } from 'node:url';
import { dirname } from 'node:path';
import type { StorybookConfig } from '@storybook/angular';
import rootMain from '../../../.storybook/main';
const config: StorybookConfig = {
...rootMain,
stories: ['../**/*.stories.@(js|jsx|ts|tsx)'],
staticDirs: [
{ from: '../../core/src/lib/i18n', to: 'assets/adf-core/i18n' },
{ from: '../../process-services/src/lib/i18n', to: 'assets/adf-process-services/i18n' },
{ from: '../src/lib/i18n', to: 'assets/adf-process-services-cloud/i18n' }
],
framework: {
name: getAbsolutePath('@storybook/angular'),
options: {}
}
};
export default config;
function getAbsolutePath(value: string): any {
return dirname(fileURLToPath(import.meta.resolve(`${value}/package.json`)));
}
@@ -0,0 +1,11 @@
import { type Preview } from '@storybook/angular';
const preview: Preview = {
parameters: {
docs: { inlineStories: true },
controls: { expanded: true }
},
tags: ['autodocs']
};
export default preview;
@@ -0,0 +1,9 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"emitDecoratorMetadata": true,
"moduleResolution": "bundler"
},
"exclude": ["../**/*.spec.ts", "../**/test.ts", "../**/*.module.ts" ],
"include": ["../src/**/*", "*.ts"]
}