Files
alfresco-ng2-components/lib/content-services/.storybook/main.ts

27 lines
750 B
TypeScript

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: '../src/lib/i18n', to: 'assets/adf-core/i18n' },
{ from: '../src/lib/assets/images', to: 'assets/images' }
],
framework: {
name: getAbsolutePath('@storybook/angular'),
options: {}
},
core: {
disableTelemetry: true
}
};
export default config;
function getAbsolutePath(value: string): any {
return dirname(fileURLToPath(import.meta.resolve(`${value}/package.json`)));
}