Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable the storybook for process-services-clod (#7286)
- Loading branch information
1 parent
8e9bf9c
commit 3bcc106
Showing
12 changed files
with
35,056 additions
and
12,754 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
stories: [], | ||
addons: ['@storybook/addon-essentials'], | ||
// uncomment the property below if you want to apply some webpack config globally | ||
// webpackFinal: async (config, { configType }) => { | ||
// // Make whatever fine-grained changes you need that should apply to all storybook configs | ||
|
||
// // Return the altered config | ||
// return config; | ||
// }, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "../tsconfig.base.json", | ||
"exclude": [ | ||
"../**/*.spec.js", | ||
"../**/*.spec.ts", | ||
"../**/*.spec.tsx", | ||
"../**/*.spec.jsx" | ||
], | ||
"include": ["../**/*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Export a function. Accept the base config as the only param. | ||
* @param {Object} options | ||
* @param {Required<import('webpack').Configuration>} options.config | ||
* @param {'DEVELOPMENT' | 'PRODUCTION'} options.mode - change the build configuration. 'PRODUCTION' is used when building the static version of storybook. | ||
*/ | ||
module.exports = async ({ config, mode }) => { | ||
// Make whatever fine-grained changes you need | ||
|
||
// Return the altered config | ||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const rootMain = require('../../../.storybook/main'); | ||
|
||
|
||
module.exports = { | ||
...rootMain, | ||
|
||
core: { ...rootMain.core, builder: 'webpack4' }, | ||
|
||
stories: [ | ||
...rootMain.stories, | ||
'../src/lib/**/*.stories.mdx', | ||
'../src/lib/**/task-header-cloud.component.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; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const parameters = { | ||
docs: { inlineStories: true } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "../../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"emitDecoratorMetadata": true | ||
|
||
}, | ||
|
||
"exclude": ["../**/*.spec.ts" ], | ||
"include": ["../src/**/*", "*.js"] | ||
} |
Oops, something went wrong.