Skip to content
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

RFC: Restructure package into modules #1015

Open
susnux opened this issue Jul 11, 2024 · 1 comment
Open

RFC: Restructure package into modules #1015

susnux opened this issue Jul 11, 2024 · 1 comment
Labels
question Further information is requested

Comments

@susnux
Copy link
Contributor

susnux commented Jul 11, 2024

Currently everything is exported from the main (and only) entry point.
But this library of helpers keeps growing.

So we could structure this package into different modules, to have a logical structure.
It would also benefit the tree shaking as e.g. dependencies with global state would be removed if not needed (for example the webdav client would completly removed if only orderBy is used).

So I could imagine to split off dav tools into @nextcloud/files/dav, we could then also remove the dav prefix for all of those functions.

Other module could be @nextcloud/files/utils for our various general purpose file utils.

This would also benefit the Typedoc documentation by splitting it into multiple modules (better overview).

@susnux susnux added the question Further information is requested label Jul 11, 2024
@skjnldsv
Copy link
Contributor

Looks like a good idea!! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants