1
votes

In the official Polymer documentation for elements, it's recommended to use Bower in order to install the elements and their dependencies: https://elements.polymer-project.org/guides/using-elements.

To install the major elements, I'm using the following commands:

bower install PolymerElements/iron-elements

bower install PolymerElements/paper-elements

bower install PolymerElements/app-elements

bower install PolymerElements/neon-elements

This is working fine, but the installed versions of the different components are based on the latest tag available from their git repositories.

Some repositories are not often updated, and the tag can be pretty old even if some commits were applied, like for https://github.com/PolymerElements/paper-listbox. In that case, the last tag is nearly one year old!

So, how can Bower be asked to download only the master branch of each dependency?

When using this command:

bower install PolymerElements/iron-elements#master

the "iron-elements" project will be installed from the master branch, but all the dependencies are still installed with their latest tag available from their git repository.

1

1 Answers

0
votes

You can simply give address of the master branch in your bower.json file.

"paper-card": "[email protected]:PolymerElements/paper-card.git#master"

Then anytime you do a bower install bower will fetch from master of that element's code.