How to install latest (untagged) state of a repo using bower?

后端 未结 6 714
你的背包
你的背包 2020-11-29 15:35

I have a very small repo in which I do all dev work in the master branch and use tags as \"stable\" points in history.

I guess by default Bower seems to fet

6条回答
  •  时光说笑
    2020-11-29 16:15

    Yes, you can point to the git url, or use name/repo shorthand (for github repos):

    bower.json

    {
      "name": "bower-test",
      "dependencies": {
        "dpm": "git@github.com:okfn/dpm.git",
        "docker-nmpjs": "terinjokes/docker-npmjs"
      }
    }
    

    More in the docs

    As @roi noted in the comments, you can use the --save flag to automatically add dependencies to bower.json, e.g. bower install terinjokes/docker-npmjs --save

提交回复
热议问题