Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace bower-asset with npm-asset #20067

Open
karelvasicek opened this issue Nov 13, 2023 · 2 comments
Open

Replace bower-asset with npm-asset #20067

karelvasicek opened this issue Nov 13, 2023 · 2 comments
Milestone

Comments

@karelvasicek
Copy link

Related f.ex. to hiqdev/asset-packagist#163 and especially to hiqdev/asset-packagist#163 (comment) .

composer update results to some packages downgrade.

Question is if/how it's related to https://bower.io/, it (as stated there) is maintained, but f.ex.

  • it's officially stated that "...we recommend using Yarn and Vite..."
  • package search on https://bower.io/search/ does not work at all

All packages required by Yii2 are available as npm-asset/package and versions seem to be correct in that case.

@schmunk42
Copy link
Contributor

Just replacing bower with npm might lead to problems, since both services work very differently.
In a nutshell: Bower was actually made in a way how we use it in Yii 2 for (pre-bundled) frontend assets, npm is more meant to be build with ie. webpack, although most packages have dist files, but it's not required. Also the dependencies may vary a lot.

I'd strongly recommend to wait for a fix in asset-packagist.

@bizley @terabytesoftw A change from bower to npm might be an option for 2.2, but please not for 2.0.

@samdark samdark added this to the 2.2.0 milestone Nov 23, 2023
@r-simlinger
Copy link

Is there any workaround?
Does not look like there will be someone wo will fix it from the asset-packagist side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants