A workflow for creating re-usable Polymer elements
This guide takes you through setting up the boilerplate for working on a re-usable Polymer element. It also covers the tooling to deploy a version of your package such that the master
branch of your repository can be easily consumed by other apps or elements (e.g through Bower) and the gh-pages
branch can be used for sharing the demo and documentation for your element.
Note: We assume you have git and Bower installed and use Scott Miles' Polymer boilerplate for getting started.
Getting setup
- Create a new directory on your system for working on Polymer elements (e.g
development
). - Clone the untitled-element boilerplate inside this directory:
git clone git://github.com/polymerlabs/untitled-element.git
. Rename the element and it's files accordingly. For example, if your element was calledtest-element
, your file list would look a little like this: