-
Notifications
You must be signed in to change notification settings - Fork 13
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
consolidate packages #306
Comments
I would defer to @rweber-esri and @brollison |
@cpgruber I don't believe I have enough expertise here to comment in a helpful way; however, if a package called // @rweber-esri please be more helpful / constructive than me ;-) |
It may help to have a little more context into what the friction is specifically. Is the friction that people are having difficulty finding what they need or more along the lines of build/version bump pains (suspect the latter)? My main concern about consolidating the different type-specific packages into a more generic |
correct, though there's also pain in having to consume so many peer dependencies. re: exporting and collisions, that's already an issue since our UMD builds put all the fns into a single namespace ( |
My takeaway from this discussion is that we should essentially rename |
I've recently noticed that tree shaking of at least the I installed I think we ought to verify that tree shaking of these libraries works outside of |
Here's my revised proposal on how to keep this moving along. Frist, we do the no brainers:
Next, we address #655, which makes dependency management from solution.js and template-js easier. Then, we address #656, which makes dependency management for hub-components easier. That will leave us with the following medium to large packages, but we should wait until we have our lazy loading strategy (i.e. #517) in place before merging them into common:
|
Seems to me that there is unnecessary friction in the development and consumption of this library due the large number of packages.
The strategy of diving up the library into many micro-packages that are peer depenedencies came from rest-js. When we started work on that, tree shaking and code splitting were less reliable, and not available to the Ember apps that were going to use the packages. Neither of those are true any longer. We can now assume that most consumers of this library will use the ESM builds and be able to tree-shake out just the code that their apps need.
I think we could reduce the number of packages by about half if we:
Consolidate downloads and maybe search into contentConsolidate teams into initiatives(?) or members(?)Consolidate sites into initiatives(?)I think packages like events and surveys should independent for now at least.
The text was updated successfully, but these errors were encountered: