如何安装/下载完整的 Polymer 元素包?

How to install / download complete package of Polymer elements?

我正在尝试开发聚合物网 pages.We 必须参考项目下 bower_components 的聚合物元素才能使用它们。但是我在 there.Is 上没有可用的文件,那里有任何可用的库,其中包含所有组件(例如 paper/iron 等)html 文件,以便我可以将它们引用到我的项目中。?

GoTo 然后单击下载按钮或从 github 获取他们的项目,他们所有的源都属于你;)

推荐的组件安装方式是使用bower。 Bower 为您管理依赖项并处理更新。

You can read about installing components from bower, ZIP, and GitHub here.

如果您想要一个包含所有当前可用组件的 ZIP,您可以阅读我对 的回答。


http://element-party.xyz/还有一个项目可以参考最新版本的组件。

You can import all the latest polymer elements easily into your jsbin (or otherwise) by simply doing:

<base href="http://element-party.xyz/" />
<script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="all-elements.html" />

组件可以像上图那样集体引用,也可以单独引用。单击 http://element-party.xyz/Usage 选项卡了解更多信息。 http://element-party.xyz/ 经常更新到 前沿 ,因此我不建议在生产中使用它。


你也可以看看 http://polygit.org/.

The Magic Server serves files directly from github (via cdn.rawgit.com) in a manner that is compatible with HTML Imports natural deduplication feature.

This server concept is primarily for hit-and-run testing, jsbins, etc. The performance is less than ideal and there is very little error reporting or other niceties.

http://polygit.org/ 确实具有指定 自定义配置 的有趣功能,允许指定文件的特定版本。 <component>[+<org>]+<ver>|:<branch>|*