nextcloud-files icon indicating copy to clipboard operation
nextcloud-files copied to clipboard

RFC: Restructure package into modules

Open susnux opened this issue 1 year ago • 1 comments

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 avatar Jul 11 '24 17:07 susnux

Looks like a good idea!! :)

skjnldsv avatar Jul 12 '24 14:07 skjnldsv