forked from strimzi/strimzi-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Storybook info to Architecture doc and add initial support (s…
…trimzi#26) * feat: Add Storybook info to Architecture doc and add initial support - This commit adds information about Storybook to the Architecture.md doc and also adds initial project support for Storybook. Contributes to: strimzi#14 Signed-off-by: Andrew Borley <[email protected]> * fix: Address review comments Contributes to: strimzi#14 Signed-off-by: Andrew Borley <[email protected]>
- Loading branch information
Showing
8 changed files
with
15,113 additions
and
6,906 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,39 @@ | ||
/* | ||
* Copyright Strimzi authors. | ||
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
*/ | ||
|
||
const devWebpackConfig = require('../utils/build/webpack.dev.js'); | ||
|
||
module.exports = { | ||
stories: ['../client/**/*.stories.@(js|jsx|ts|tsx)'], | ||
addons: [ | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-knobs', | ||
'@storybook/addon-actions', | ||
'@storybook/addon-storysource', | ||
'@storybook/addon-links', | ||
'storybook-readme', | ||
], | ||
webpackFinal: (storybookWebpackConfig) => ({ | ||
// Merge dev webpack config and storybook webpack config, with storybook | ||
// taking precedence, and ensuring module rules, plugins and resolve aliases | ||
// include the dev webpack settings. | ||
...devWebpackConfig, | ||
...storybookWebpackConfig, | ||
module: { | ||
rules: [ | ||
...devWebpackConfig.module.rules, | ||
...storybookWebpackConfig.module.rules, | ||
], | ||
}, | ||
plugins: [...devWebpackConfig.plugins, ...storybookWebpackConfig.plugins], | ||
resolve: { | ||
...storybookWebpackConfig.resolve, | ||
alias: { | ||
...devWebpackConfig.resolve.alias, | ||
...storybookWebpackConfig.resolve.alias, | ||
}, | ||
}, | ||
}), | ||
}; |
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,7 @@ | ||
/* | ||
* Copyright Strimzi authors. | ||
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
*/ | ||
export const parameters = { | ||
actions: { argTypesRegex: '^on[A-Z].*' }, | ||
}; |
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
Oops, something went wrong.