Specifying latest revision of a particular branch with bower

前端 未结 3 1092
旧巷少年郎
旧巷少年郎 2020-12-23 11:35

I want to specify the latest revision of a particular branch as a dependency. Specifically, I\'d like to use Bootstrap v3.0 before it is released.

What is the best w

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-23 11:36

    Until bower gets the ability to target a specific commit as @Sindre noted, I am taking advantage of bower's ability to target arbitrary zip files. I specified github's zip of bootstrap's 3.0 branch in my component.json:

    "bootstrap": "https://github.com/twbs/bootstrap/archive/3.0.0-wip.zip"

    I understand this is bad practice to target a branch (rather than a specific commit), but this works for me for now as a stopgap.

提交回复
热议问题