Skip to content

Commit

Permalink
[Cloud Security] Move @kbn/cloud-security-posture-storybook-config fo…
Browse files Browse the repository at this point in the history
…r Kibana sustainability (elastic#204500)

## Summary

Move @kbn/cloud-security-posture-storybook-config package to
`x-pack/solutions/security/packages/kbn-cloud-security-posture/.storybook`

Renamed removed the `config` folder to align with the `.storybook`
[naming
convention](https://github.com/elastic/kibana/pull/204500/files#diff-91918a63f6365a8f40f674ab54a8df7ce9aeb313f77fe8eda76284d712ef5425R21).

![Screenshot 2024-12-16 at 5 50
53 PM](https://github.com/user-attachments/assets/de1d0a81-353f-434c-bb2d-989210b35b43)

### Related Issues
- elastic#202862

---------

Co-authored-by: Brad White <[email protected]>
  • Loading branch information
seanrathier and Ikuni17 authored Dec 18, 2024
1 parent 759b9dc commit d6cb398
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 23 deletions.
3 changes: 2 additions & 1 deletion src/dev/storybook/aliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export const storybookAliases = {
canvas: 'x-pack/plugins/canvas/storybook',
cases: 'packages/kbn-cases-components/.storybook',
cell_actions: 'src/platform/packages/shared/kbn-cell-actions/.storybook',
cloud_security_posture_packages: 'x-pack/packages/kbn-cloud-security-posture/storybook/config',
cloud_security_posture_packages:
'x-pack/solutions/security/packages/kbn-cloud-security-posture/.storybook',
cloud: 'packages/cloud/.storybook',
coloring: 'packages/kbn-coloring/.storybook',
language_documentation_popover:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { defaultConfig } from '@kbn/storybook';

module.exports = {
...defaultConfig,
stories: ['../../**/*.stories.+(tsx|mdx)'],
stories: ['../**/*.stories.+(tsx|mdx)'],
reactOptions: {
strictMode: true,
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": ["jest", "node", "@kbn/ambient-storybook-types"]
},
"include": ["**/*.ts"],
"kbn_references": ["@kbn/storybook"],
"exclude": ["target/**/*"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
rootDir: '../../../../../..',
transform: {
'^.+\\.(js|tsx?)$':
'<rootDir>/x-pack/packages/kbn-cloud-security-posture/storybook/config/babel_with_emotion.ts',
'<rootDir>/x-pack/solutions/security/packages/kbn-cloud-security-posture/.storybook/babel_with_emotion.ts',
},
setupFiles: ['jest-canvas-mock'],
setupFilesAfterEnv: [
Expand Down

0 comments on commit d6cb398

Please sign in to comment.