-
Notifications
You must be signed in to change notification settings - Fork 14k
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(generator-superset): migrate to monorepo #17829
chore(generator-superset): migrate to monorepo #17829
Conversation
Codecov Report
@@ Coverage Diff @@
## master #17829 +/- ##
==========================================
- Coverage 67.17% 67.15% -0.02%
==========================================
Files 1609 1608 -1
Lines 64796 64801 +5
Branches 6855 6851 -4
==========================================
- Hits 43528 43519 -9
- Misses 19412 19423 +11
- Partials 1856 1859 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
@@ -0,0 +1,20 @@ | |||
const { getConfig } = require('@airbnb/config-babel'); |
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 possible to use babel config without airbnb/config-babel
?
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.
It seems to bring in a bunch of good defaults (would otherwise have to do lots of other configs here), so I think it's a good idea to use it.
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.
LGTM!
* chore(generator-superset): migrate to monorepo * add todo and remove webpack reference from template * fix linting errors * remove redundant test file
* chore(generator-superset): migrate to monorepo * add todo and remove webpack reference from template * fix linting errors * remove redundant test file
SUMMARY
Currently the
generator-superset
Yeoman generator template generates plugins that require the oldsuperset-ui
monorepo. This is a first-pass at fixing the generator by changing the following:superset-ui
package - now the generator only supports creating pluginsSCREENSHOT
This plugin has been generated with the updated template:
TESTING INSTRUCTIONS
superset-frontend/packages/generator-superset
folder and runnpm i
~/src
and runmkdir superset-plugin-chart-hello-world
yo @superset-ui/superset
and answer all questionsnpm i --force && npm run build && npm run test && npm pack
and see that the new package works and can be packaged for npmMainPreset.js
and see it workADDITIONAL INFORMATION