proget-universal-bower-resolver

0.5.4 • Public • Published

dependencies Status Build Status Coverage Status

ProGet Universal Bower Resolver

This Bower resolver allows you to download and install archives from a ProGet Universal Feed like any Bower package.

Install

This tool can be installed globally

npm install -g proget-universal-bower-resolver

or locally

npm install proget-universal-bower-resolver

How To Use

Add/modify the .bowerrc file:

{
    /* [...] */
    "registry": {
      "search": [
        "<add your upack feed here>",
        /* [...] */
      ]
    },
    "proget": {
        "apiKeyMapping": [
            {
                "server": "<string>",
                "key" : "<string>"
            }
            /* [...] */
        ]
    },
    "resolvers": [
        "proget-universal-bower-resolver"
    ]
}

Where:

Key Description Require
proget.apiKeyMapping.server A string use to associate the ApiKey with a server use as registry. Yes
proget.apiKeyMapping.Key Is the API_Key use to communicate with the API of the above server. Yes

And the way to create your dependencies is like you normally will do:

{
    [...],
    "dependencies": {
        "<package>": "<version>",
        [...]
    }
}

Or you can directly specify the URL of the file to download (formatted like the link under the download button of the ProGet package web page)

ex:

{
    [...],
    "dependencies": {
        "somePackage": "https://your.proget.server/upack/yourFeed/download/bower/yourPackage/package.version.wanted",
        [...]
    }
}

Rename packages

If you want to rename your packages write the dependence as normal:

{
    [...],
    "dependencies": {
        "<new_package_name>": "<pkg_name>#<version>",
        [...]
    }
}

Readme

Keywords

Package Sidebar

Install

npm i proget-universal-bower-resolver

Weekly Downloads

0

Version

0.5.4

License

MIT

Last publish

Collaborators

  • ofrogon