How can we clone a git repository when we install our dependency in npm.
"dependencies": {
"<Mydependency>": "<some git url>",
"promise": "^7.0.3",
"react": "^0.14.8",
"react-addons-pure-render-mixin": "^0.14.0",
"react-dom": "^0.14.8",
"react-mixin": "^2.0.2"
},
Use this: in the package.json
Without password:
"Mydependency": "git+https://<somegiturl.git>#<branch>"
with password:
"Mydependency": "git+https://<userName>:<password>@bitbucket.org/myrepo.git#<branch>"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With