Say I have an existing git repo I am working on named - b2c, give it an URL https://github.com/XXX/angular-portal-b2c.git
I have another git repo called b2c-library, which contains the useful pre-build library. URL: https://github.com/XXX/angular-portal-library.git
I want to be able to use b2c-library in my b2c project, just like a dependency, which in node_modules, it should have a folder called b2c-library.
What steps should I follow?
Thanks.
As I said, it should just like a dependency which should appear in your node_modules. when you do npm install, the b2c-library should be installed in node_modules, git status should not track anything you did in b2c-library even you are in that repo.
via Xinrui Ma
No comments:
Post a Comment