hiqdev / asset-packagist

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

NPM version conflicts & SASS import scoped package problem #71

Closed phuczeero closed 4 years ago

phuczeero commented 7 years ago

1/ Using fxp/composer-asset-plugin, i can Solve the conflicts of asset dependencies, does this repository support it?

2/ When i install individual components package and use scss file, it throw an error Error: File to import not found or unreadable: @material/button/mdc-button.

All scoped components were installed in vendor named material--\<package>, not @material/\<package>

My composer.json

"require": {
    "php": ">=5.4.0",
    "yiisoft/yii2": "~2.0.6",
    "npm-asset/material-components-web": "~0.21.1"
}
hiqsol commented 7 years ago
  1. No, I'm afraid it's impossible to force resolutions without fxp plugin. I don't know if composer supports such function.
  2. Composer doesn't support @ and / symbols in package names so fxp plugin (and asset-packagist) does this conversion: @scope/package -> scope--package. See https://github.com/fxpio/composer-asset-plugin/blob/master/Resources/doc/index.md#work-with-the-npm-scopes
github-actions[bot] commented 4 years ago

Stale issue message