ui5-community / ui5-library-showcase

[DEPRECATED] Libraries have been incorporated in the ui5-ecosystem-showcase!
https://github.com/ui5-community/ui5-ecosystem-showcase/
Other
13 stars 2 forks source link

Naming convention: ui5-lib- or ui5-cc-? #6

Open gregorwolf opened 1 year ago

gregorwolf commented 1 year ago

Hi @petermuessig,

in docs/howto.md it is mentioned to use ui5-lib- as a prefix. But when looking at https://www.npmjs.com/search?q=ui5-cc- and compare it with the search results for https://www.npmjs.com/search?q=ui5-lib- it seems that ui5-cc- is the more common prefix. Could it be that the howto is not up-to-date?

CU Gregor

marianfoo commented 1 year ago

@vobu suggest to use ui5-cc-$name.space: https://blogs.sap.com/2021/02/10/distribute-and-reuse-ui5-custom-controls-via-npm/#naming-convention-ui5-cc-namespace

I guess lib is from a time when controls where only imported via library. Since vobu is the godfather in the UI5 environment, we follow his words and deeds. Since then I actually only use ui5-cc for my controls

wridgeu commented 1 year ago

Hey there!

I was under the assumption that there is still a distinction between the two, isn't it? Where the ui5-cc namespace (proposed by the community which @vobu also mentioned in his blog post) is for direct distribution of individual notepad controls (custom controls) as singular modules the lib simply coexists for the purpose of distributing - for lack of better phrasing - a buch of controls (or even themes) and things these controls might need bundled together as, well, a library. ^^