Structure and handling of private modules #1231
Replies: 3 comments 5 replies
-
I can't let the phrase "consensus was to go with option 5" be here without comment. While I don't mind if we go for it, I am not in full agreement that it is the best option. I am not arguing about the
So, my preference is going for option 1 to solve the two listed problems. I'd recommend going for a fixed structure like the the public module has as subfolder So, again, this is my preference for the reasons above BUT I am ok with option 5 |
Beta Was this translation helpful? Give feedback.
-
There is also an option 6 which is being implemented in #1166. For this implementation, the team is facing the same problem as in #1149, some parts of the code need to be transpiled differently. Option 1-5 would all be an option there as well, but it was decided to keep everything in one module but defined sub-folders in @voicis @Jimmy-Joseph19 maybe you could comment why option 6 is not a good idea for #1149 |
Beta Was this translation helpful? Give feedback.
-
@tobiasqueck, the assumption here was, that we are expecting more private modules. If private modules can be avoided, I'm all for it. I'm not really in favor of private modules that are used by one module only. If the same could be achieved with a structure within one module, like done in #1166, I would prefer this. Having that said, I'd still change the scope of existing (and reused) private module |
Beta Was this translation helpful? Give feedback.
-
We are expecting to have more private modules in this repository, e.g. for #1149, where multiple modules might be bundled into one.
The question is, where should we locate those modules or how to handle them. Currently, we have following modules marked as
private: true
inpackage.json
package.json
of this repo@sap-ux/types
at/types
/examples/*
have setprivate: true
inpackage.json
There are several options going forward:
packages
, which means creating sub-folders for modules belonging together@sap-ux-private
, and make sure the name is chosen so modules are name and directory-wise next to each otherWe had a discussion with @devinea, @tobiasqueck @schreckstefan, consensus was to go with option 5. For consistency reasons this would mean, that we rename
@sap-ux/types
to@sap-ux-private/types
and perhaps also root@sap-ux/open-ux-tools-root
to@sap-ux-private/open-ux-tools-root
. Samples might also be renamed.FYI @voicis @kranthie-sap
Any other opinions?
Beta Was this translation helpful? Give feedback.
All reactions