-->

Where to download all polymer elements as zip file

2019-04-24 16:53发布

问题:

Polymer 1.0 is released recently and I can download the elements à la carte at the elements.polymer-project.org site, but I can't find an easy link to download everything in one big zip file?

Any idea where they are hiding it?

回答1:

You can download the Polymer Starter Kit for beginners that includes almost all the elements.

And download the missing elements as a ZIP file as suggested here.

Missing elements:

  • Google Web Components
  • Gold Elements


回答2:

If you are using bower run these commands:

bower install --save PolymerElements/iron-elements  
bower install --save PolymerElements/paper-elements  
bower install --save PolymerElements/gold-elements  
bower install --save PolymerElements/neon-elements  
bower install --save PolymerElements/platinum-elements  
bower install --save GoogleWebComponents/google-web-components
bower install --save PolymerElements/app-elements


回答3:

You can download a set of components as a ZIP file as suggested here.

Follow these steps to download all of the current catalog elements as a single ZIP file:

  1. Browse to https://elements.polymer-project.org/browse
  2. Click the ☆ next to each element you wish to download.
    • The ☆ will be filled (★) when selected.
    • All of the elements dependencies will be included in the ZIP file.
    • You can select all the elements if desired.
  3. Click on the at the top of the page.
  4. Select the Download tab.
  5. Select the elements folder radio button.
  6. Click the Download button.

Note: Keep in mind that if you choose this method (ZIP file) you will have to manage dependency updates on your own. It is recommended that you use bower instead.