You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#565 introduced the usage of Storybook in Boosted as a link between Boosted documentation and the Design System Manager (DSM).
In some DSM "Develop" tabs, an iframe shows some components in action that are in fact Storybook stories from our "hidden" URL https://boosted.orange.com/storybook/.
However, the integration of Storybook within Boosted can be improved. This story is an epic one listing independent micro-tasks that should be tackled in different PRs. No need to create sub-issues.
Enhancements
Introducing new dependencies ended up having some vulnerable dependencies in our package-lock.json
Error message when running npm run storybook-build and then npm run storybook
...
> [email protected] docs-vnu
> node build/vnu-jar.js
"file:/Users/ju/Orange-Boosted-Bootstrap/_site/storybook/index.html":1.38-1.60: info warning: Self-closing tag syntax in text/html documents is widely discouraged; it's unnecessary and interacts badly with other HTML features (e.g., unquoted attribute values). If you're using a tool that injects self-closing tag syntax into all void elements, without any option to prevent it from doing so, then consider switching to a different tool.
"file:/Users/ju/Orange-Boosted-Bootstrap/_site/storybook/index.html":1.87-^C
vnu-jar.js doesn't like things generated in Storybook build. rm -rf site/storybook _site/storybook/ can help to reset the environment but a fix should be found to avoid having this error.
Fix deprecation warning displayed when running npm run storybook
(node:24011) DeprecationWarning: Default PostCSS plugins are deprecated. When switching to '@storybook/addon-postcss',
you will need to add your own plugins, such as 'postcss-flexbugs-fixes' and 'autoprefixer'.
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-default-postcss-plugins for details.
(Use `node --trace-deprecation ...` to show where the warning was created)
Bump sass-loader dep to the latest version
Right now if we do npm i sass-loader@latest and run npm run storybook we end up with the following error:
Go through each items in Add Storybook to the project #565 (comment) and create sub-tasks here to improve the rendering and manipulations of the components in Storybook. It is possibily linked to what's been done already for StackBlitz.
Context
#565 introduced the usage of Storybook in Boosted as a link between Boosted documentation and the Design System Manager (DSM).
In some DSM "Develop" tabs, an iframe shows some components in action that are in fact Storybook stories from our "hidden" URL https://boosted.orange.com/storybook/.
However, the integration of Storybook within Boosted can be improved. This story is an epic one listing independent micro-tasks that should be tackled in different PRs. No need to create sub-issues.
Enhancements
package-lock.json
trim-newlines
that is patched in 3.0.1glob-parent
that is patched in 5.1.2trim
(because of@storybook/[email protected]
and@storybook/[email protected]
) that is patched in 0.0.3Tackled by #2103 ?
npm run storybook-build
and thennpm run storybook
vnu-jar.js
doesn't like things generated in Storybook build.rm -rf site/storybook _site/storybook/
can help to reset the environment but a fix should be found to avoid having this error.npm run storybook
sass-loader
dep to the latest versionRight now if we do
npm i sass-loader@latest
and runnpm run storybook
we end up with the following error:Tackled by #2103.
babel-loader
dep to the latest versionRight now,
npm run storybook
crashes after the generation of all stories.Tackled by #2103.
@storybook/addon-actions
,@storybook/addon-interaction
and@storybook/addon-links
Tackled by #2103.
Might be tackled by #2103. See https://deploy-preview-2103--boosted.netlify.app/storybook/?path=/docs/components-tooltips--docs.
Reproducible by going to https://boosted.orange.com/storybook/?path=/docs/components-tooltips--tooltips-0 and trying to play with the tooltips. Even if the JS code is embedded in the corresponding story, JS code isn't executed.
create-stories-from-doc.js
. SeeOrange-Boosted-Bootstrap/stories/create-stories-from-doc.js
Lines 41 to 78 in 3dfb87c
Tackled via #2130.
Tackled via #2130.
Orange-Boosted-Bootstrap/stories/create-stories-from-doc.js
Lines 72 to 77 in 3dfb87c
We could probably use the same technic that is used for StackBlitz
Tackled by #2130.
Tackled by #2130.
Tackled by #2130.
The text was updated successfully, but these errors were encountered: