-
Notifications
You must be signed in to change notification settings - Fork 404
Allow uikit plugins to be used in multiple uikit definitions in patternlab-config.json. #1137
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
Conversation
packages/core/src/lib/loaduikits.js
Outdated
uikits.forEach(kit => { | ||
const configEntry = _.find(_.filter(patternlab.config.uikits, 'enabled'), { | ||
name: `uikit-${kit.name}`, | ||
_.filter(patternlab.config.uikits, 'enabled').forEach(uikit => { | ||
const kit = _.find(uikitModules, { | ||
name: uikit.name.replace('uikit-', ''), |
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.
Could you please resolve the merge conflict at this position, resulting from dev merge?
It's hard to keep track of everything. This issue has been automatically marked as stale because it has not had recent activity, neither from the team nor the community. It will be closed if no further activity occurs. Please consider adding additional info, volunteering to contribute a fix for this issue, or making a further case that this is important to you, the team, and the project as a whole. Thanks! |
@Hydraner do you have a chance to review the comment by @JosefBredereck? |
I would like another review of this implementation. In #1225 I also have to touch the loading of UI kits and plugins. In the context of Yarn v2 workspaces (monorepo), there isn't a My suggestion for this PR is to use "uikits": [
{
"name": "uikit-workshop",
"package": "@pattern-lab/uikit-workshop",
"outputDir": "",
"enabled": true,
"excludedPatternStates": [],
"excludedTags": []
}
] For backwards compatibility, if In the end, this would mean that you can use the same package multiple times, but under a different uikit name. |
In ceccfd8, I have implemented the same in my branch. You can close this PR in favor of mine. |
@JosefBredereck can you please review my work in #1225. As mentioned before, this PR will conflict with my work which is nearing completion. There are a few more cases where manual |
@Hydraner are you ok with closing this PR in favor of #1225 which is just merged? There is only a difference in the names of the properties we both chose. You chose There is some backwards compatibility included when a |
This is covered by #1225 (which was reverted and redone in #1246). Documentation is added to the https://patternlab.io/docs/editing-the-configuration-options/#heading-uikits |
Closes #1136
Summary of changes: