Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

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

Open
gregorwolf opened this issue Apr 27, 2023 · 2 comments
Open

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

gregorwolf opened this issue Apr 27, 2023 · 2 comments

Comments

@gregorwolf
Copy link

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
Copy link
Member

@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
Copy link
Contributor

wridgeu commented Apr 29, 2023

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. ^^

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants