Answer the question
In order to leave comments, you need to log in
How to separate UI component library from applications?
There are two react-applications, then there will be two more and they all use the same set of self-written UI-controls on react.
To avoid code duplication, the task is to isolate all controls into a separate library, and in applications, accordingly, add references.
I would like the code of this library to live its own cycle, i.e. this would be a separate git submodule or repo. So that it has its own bundler, with tests and other things. But I don't want to post it as an npm package to the public (the customer will not approve).
I heard / read that Facebook refers to its react not as an npm package, but using relative paths to a separate repository (maybe I'm wrong).
The question is how to organize it correctly? Are there any articles with step by step instructions?
Thank you!
Answer the question
In order to leave comments, you need to log in
npm can connect a private repository. ( rtfm )
{
"dependencies": {
"acme-ui-kit": "git+ssh://[email protected]/acme/ui-kit.git#v1.2.7",
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question