fxpio / composer-asset-plugin

NPM/Bower Dependency Manager for Composer
MIT License
893 stars 156 forks source link

Exclude packages by provide config #243

Closed mplescano closed 7 years ago

mplescano commented 8 years ago

Hi guys, I have this use case, I'd like to install the package "npm-asset/jquery.appendgrid": "1.6.2" but without their dependencies ("npm-asset/jquery", "npm-asset/jquery-ui"), I tested this:

"require": {
        "yiisoft/yii2": ">=2.0.7",
        "yiisoft/yii2-jui": ">=2.0.4",
        "fxp/composer-asset-plugin": "~1.1",
        "npm-asset/jquery.appendgrid": "1.6.2"
    },
"provide": {
        "npm-asset/jquery": "*",
        "npm-asset/jquery-ui": "*"
    }

But composer and composer-asset still are installing "npm-asset/jquery" and "npm-asset/jquery-ui" at my vendor folder. So, is it possible to exclude these packages from the principal package?. As you know yii's assets already provide the packages of jquery and jquery-ui by bower.

Regards