mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
28
lib/stories/.storybook/main.js
Normal file
28
lib/stories/.storybook/main.js
Normal 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;
|
||||
},
|
||||
};
|
3
lib/stories/.storybook/preview.js
Normal file
3
lib/stories/.storybook/preview.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export const parameters = {
|
||||
docs: { inlineStories: true }
|
||||
}
|
10
lib/stories/.storybook/tsconfig.json
Normal file
10
lib/stories/.storybook/tsconfig.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"emitDecoratorMetadata": true
|
||||
|
||||
},
|
||||
|
||||
"exclude": ["../**/*.spec.ts" ],
|
||||
"include": ["../src/**/*", "*.js"]
|
||||
}
|
8
lib/stories/src/index.ts
Normal file
8
lib/stories/src/index.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
* Copyright © 2005 - 2021 Alfresco Software, Ltd. All rights reserved.
|
||||
*
|
||||
* License rights for this program may be obtained from Alfresco Software, Ltd.
|
||||
* pursuant to a written agreement and any use of this program without such an
|
||||
* agreement is prohibited.
|
||||
*/
|
||||
|
10
lib/stories/tsconfig.json
Normal file
10
lib/stories/tsconfig.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
}
|
||||
]
|
||||
}
|
19
lib/stories/tsconfig.lib.json
Normal file
19
lib/stories/tsconfig.lib.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"target": "es2015",
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"inlineSources": true,
|
||||
"types": [],
|
||||
"lib": ["dom", "es2018"]
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"skipTemplateCodegen": true,
|
||||
"strictMetadataEmit": true,
|
||||
"enableResourceInlining": true
|
||||
},
|
||||
"exclude": [],
|
||||
"include": ["**/*.ts"]
|
||||
}
|
Reference in New Issue
Block a user