-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
add addon background to monorepo #2220
Conversation
|
||
### Development | ||
|
||
This project is built using typescript and is tested with jest. To get started, clone this repo and run the following command: |
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.
is it still typescript?
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.
good point, will remove it. No we removed the typescript.
Codecov Report
@@ Coverage Diff @@
## master #2220 +/- ##
==========================================
+ Coverage 21.48% 22.16% +0.67%
==========================================
Files 263 268 +5
Lines 5804 5875 +71
Branches 693 706 +13
==========================================
+ Hits 1247 1302 +55
- Misses 4023 4038 +15
- Partials 534 535 +1
Continue to review full report at Codecov.
|
…ooks/storybook into ndelangen/import-addon-background
addons/background/src/index.story.js
Outdated
@@ -0,0 +1,19 @@ | |||
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.
Looks like this file isn't used, I'll delete it
@@ -0,0 +1,17 @@ | |||
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.
does it work with Vue?
getQueryParam: PropTypes.func, | ||
setQueryParams: PropTypes.func, | ||
}).isRequired, | ||
channel: PropTypes.instanceOf(EventEmitter), |
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.
This fails in cra-kitchen-sink
(probably because of different events
package version):
manager.bundle.js:6219 Warning: Failed prop type: Invalid prop `channel` of type `Channel` supplied to `BackgroundPanel`, expected instance of `EventEmitter`
Let's use PropTypes.shape
, like we do in other plugins
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.
ok sure
Issue: storybook-eol/addon-backgrounds#36
What I did
lerna import
How to test