KnpRadBundle
KnpRadBundle copied to clipboard
It should not contain js / css libs in Resources/public folders
Currently, we store 2 or 3 jquery versions :)
It would be cool to delegate this to bower (or any other package manager). The bundle itself doesn't need js/css BTW. an application does. That's why I propose to move all this to rad-edition.
see Knplabs/rad-edition#24
I suggest to use npm/bower for js/css dependencies. ( I love this little class: https://github.com/yohang/dependency-tools )
composer is good for managing php deps, not npm install commands.
you could use the SpBowerBundle as a way to interact with bower. Not sure if that's the best one or not though.
@jrobeson This look like the solution I suggested. But it will not be implemented.
Just a little notice about alternatives: https://github.com/components/components
there's a another solution on the horizon if some composer modifications get merged.
https://github.com/francoispluchino/composer-asset-plugin
I'm not sure if I'm right, but I'm all for a pure frontend solution for frontend assets, and composer for backend.
Separation is the keyword. In an ideal world, front and back would be separated in 2 different projects :)