-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add storybook, basic story and documentation example #1
Conversation
|
.storybook/preview.js
Outdated
@@ -0,0 +1,77 @@ | |||
|
|||
import React from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Configuration derived from https://dev.to/aaronksaunders/how-to-use-storybook-with-ionic-and-reactjs-57f3 and ionic-team/ionic-framework#25409
"danger": "^11.0.7", | ||
"eslint": "^8.19.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-config-standard": "^17.0.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-n": "^15.2.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only this import was added manually, storybook threw an error since eslint-config-standard
depended on it but it was never imported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you do ts main and preview?
Can try but it's .js in core |
@@ -0,0 +1,38 @@ | |||
// Imports the Storybook's configuration API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"include": ["src"] | ||
"include": ["src"], | ||
|
||
"ts-node": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To fix typescript issue with storybook main
Currently I've created only a basic IonWrapper which wraps pages in .
We may later discover a need for an IconPageWrapper which also includes for smaller components.
I've modified the default introduction but kept it just as an example for how to write documentation
Will add Chromatic separately