hiqdev / asset-packagist

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

How could I composer require npm-asset/xxx without the dependencies #111

Closed whatcq closed 4 years ago

whatcq commented 4 years ago

I have search a lot,but haven't find solved approach.

Because we require the npm-asset just for using,not for debug or editable. We can download less packages, save time and space! So I want to composer require npm-asset/admin-lte without the dependencies under it. How could I skip/ignore package.json? Or is there a param for this requirement?

thx.

whatcq commented 4 years ago

I have to use composer replace+conflict to skip the dependencies. @see cebe/assetfree-yii2

hiqsol commented 4 years ago

This package is available directly at packagist:

https://packagist.org/packages/almasaeed2010/adminlte

You can use it directly without asset-packagist

whatcq commented 4 years ago

What about other packages?The question is still there.

thanks @hiqsol , it works for admin-lte.

hiqsol commented 4 years ago

What about other packages? The question is still there

Unfortunately, I don't see an easy solution inside of Asset Packagist.

The best solution would be to add the package in question to the Packagist :)

whatcq commented 4 years ago

Ok,I see. Thank you again.