Spea / SpBowerBundle

Symfony2 Bundle to handle asset dependencies with bower
231 stars 44 forks source link

Add more commands to the Bundle #113

Closed reypm closed 9 years ago

reypm commented 9 years ago

Hi @Spea I'm just wondering if it will be possible to add more commands for this bundle since right now for example I'm having a upset issue and I can't find what is causing it since the only commands I have through the bundle are: update,install and list (this one never worked for me). Could be possible to add them?

For example I'm running sp:bower:install and I'm getting this output:

bower jquery#>=1.6                        validate 2.1.1 against git://github.com/jquery/jquery.git#>=1.6
bower jquery-1.11.0#1.11.0                  cached git://github.com/jquery/jquery.git#1.11.0
bower jquery-1.11.0#1.11.0                validate 1.11.0 against git://github.com/jquery/jquery.git#1.11.0
bower bootstrap#~3.2.0                      cached git://github.com/twbs/bootstrap.git#3.2.0
bower bootstrap#~3.2.0                    validate 3.2.0 against git://github.com/twbs/bootstrap.git#~3.2.0
bower requirejs#~2.1.11                     cached git://github.com/jrburke/requirejs-bower.git#2.1.15
bower requirejs#~2.1.11                   validate 2.1.15 against git://github.com/jrburke/requirejs-bower.git#~2.1.11
bower moment#2.7.0                          cached git://github.com/moment/moment.git#2.7.0
bower moment#2.7.0                        validate 2.7.0 against git://github.com/moment/moment.git#2.7.0
bower blueimp-load-image#>=1.13.0           cached git://github.com/blueimp/JavaScript-Load-Image.git#1.13.0
bower blueimp-load-image#>=1.13.0         validate 1.13.0 against git://github.com/blueimp/JavaScript-Load-Image.git#>=1.13.0
bower blueimp-tmpl#>=2.5.4                  cached git://github.com/blueimp/JavaScript-Templates.git#2.5.4
bower blueimp-tmpl#>=2.5.4                validate 2.5.4 against git://github.com/blueimp/JavaScript-Templates.git#>=2.5.4
bower blueimp-canvas-to-blob#>=2.1.1        cached git://github.com/blueimp/JavaScript-Canvas-to-Blob.git#2.1.1
bower blueimp-canvas-to-blob#>=2.1.1      validate 2.1.1 against git://github.com/blueimp/JavaScript-Canvas-to-Blob.git#>=2.1.1
bower                                    ECONFLICT Unable to find suitable version for bootstrap

So, something is failing but what? Did you get my point?

Spea commented 9 years ago

Hey there, yeah I get your point. I think it would be a good idea to implement a command which only passes the command you want to execute to bower - something like app/console sp:bower:execute info. But some commands might not make sense in this context at all, so we should restrict this to commands which are really needed.

Right now I can't say when I have time to implement this, since I have some other things to do. If you want to add something like this, I would really appreciate it, if you can create a PR

Spea commented 9 years ago

Should be fixed in the latest master version