Bower resolutions

De Basef
Ir para: navegação, pesquisa

Para que o bower não fique perguntando qual versão deseja instalar toda vez que o bower install é rodado, pode-se criar uma `resolution`.

Para isto, ao escolher a versão quando perguntado, basta adicionar o caractere "!" após a opção. Exemplo:

Unable to find a suitable version for moment, please choose one by typing one of the numbers below:
    1) moment#~2.9.0 which resolved to 2.9.0 and is required by angular-timer#1.3.4
    2) moment#^2.17.1 which resolved to 2.20.1 and is required by my-project, another-project#2.16.3
 
Prefix the choice with ! to persist it to bower.json
 
? Answer 2!