-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Refactor: Move code of lib/manager-api
into ui/manager
#23389
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ndelangen
added
ci: do not merge
ci:daily
Run the CI jobs that normally run in the daily job.
labels
Jul 10, 2023
No top level dependency changes detected. Learn more about Socket for GitHub ↗︎ |
ndelangen
changed the base branch from
release/7.2
to
norbert/remove-references-to-api
July 10, 2023 19:49
ndelangen
changed the base branch from
norbert/remove-references-to-api
to
release/7.2
July 10, 2023 19:49
This is interesting, looks good. Is the long term plan that we'd then remove the I don't quite understand what you mean by the following:
|
@JReinhold what it means is:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
ci:daily
Run the CI jobs that normally run in the daily job.
ci: do not merge
maintenance
User-facing maintenance tasks
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
hyper experimental: move the actual code into
ui/manager
but keeplib/manager-api
a real package with types.Long term strategy: move all code into a single package.
This has upside of making building
manager-api
unnecessary during storybookmaintenance.the downside is that building
manager
is slower.But it's a step into the right direction, I think.
Importantly this does not mean
manager-api
gets deprecated as a package.It's still a package users depend on and use.
What's novel about this approach is that it doesn't need a builder to globalize
manager-api
! It's builder independent, because the package itself gets the implementation from the global scope.This has a big downside:
It will only work within the browser, and only when the prebundles code is pre-injected.
You can see the effects of this in some of the tests I had to adjust.
So this is a proof of concept of the idea that we could make packages be externalised without needing to set this up in builders.