【发布时间】:2019-09-15 20:02:29
【问题描述】:
我在企业存储库中工作,需要按分支名称而不是版本来安装存储库。 我能够通过以下方式做到这一点:
npm install git+ssh://git@gitlab.mydomain.com:user/repo.git#yourBranchName
这也适用于https url from git
安装后,虽然看起来 build 和 dist 目录不包括在内。
如何通过 branchName 安装 repo 并在安装时仍然构建它?
One approach I've tried is building the repo and then removing the dist
and lib directories form the .gitignore. This works but requires committing those directories
to github.
有没有更好的办法?
【问题讨论】:
标签: git npm enterprise