hiqdev / asset-packagist

Asset Packagist
https://asset-packagist.org
BSD 3-Clause "New" or "Revised" License
247 stars 25 forks source link

Adding new bower-asset package? #96

Closed dhaley closed 5 years ago

dhaley commented 5 years ago

Hi, I would like to have a javascript library become available as bower-asset package:

https://github.com/NREL/nrel-iconomatic bower info nrel-iconomatic

How, do I get my package registered as:

https://asset-packagist.org/p/bower-asset/nrel-iconomatic/latest.json ?

Any help you could provide would be great.

Thanks,

Damon

p.s. My goal is to use nrel-iconomatic in composer as follows:

{
    "repositories": {
        "assets": {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    },
    "extra": {
        "installer-types": [
            "bower-asset",
            "npm-asset"
        ],
        "installer-paths": {
            "web/sites/all/libraries/{$name}": [
                "type:bower-asset",
                "type:npm-asset",
            ]
        }
    },
    "require": {
        "bower-asset/nrel-iconomatic": "dev-master"
    }
}
hiqsol commented 5 years ago

It's not documented but it is very simple. It is only necessary to go to the package page:

https://asset-packagist.org/package/bower-asset/nrel-iconomatic

I've already done it and now the package is installable.