/mercurial-bower-resolver

A Mercurial resolver for Bower

Primary LanguageJavaScriptMIT LicenseMIT

mercurial-bower-resolver v0.1.3

A Mercurial resolver for Bower

Requirements:

  • You will need a working version of mercurial installed on your machine. brew install mercurial, apt-get install mercurial, etc.

Usage:

Include "mercurial-bower-resolver" in your .bowerrc:

{
  "resolvers": [
    "mercurial-bower-resolver"
  ]
}

Then add a reference to a hg repo in your bower.json:

"dependencies": {
    "repo": "hg+http://mysite.org/some/repo"
}

Tags/Branches/Revisions:

"dependencies": {
    "some-branch": "hg+http://mysite.org/some/repo#some-branch",
    "some-tag": "hg+http://mysite.org/some/other/repo#some-tag",
    "some-sem-ver-tag": "hg+http://mysite.org/some/other/repo#1.2.3",
    "some-revision":  "hg+http://mysite.org/some/other/repo#432fbee7ecb6"
}

Known issues:

  • Will not resolve tags/branches that look like semver ranges (but aren't actually, like 1234 or 1.0). This is due to how Bower decides whether to check the versions. Not actually sure how to deal with this!