This repo provides a simple template for keeping a collection of Polymer elements in one github repository, so that they can be shared between multiple private projects.
The existing toolware (e.g. yo polymer) can generate:
- a private project with its own elements that can live in one github repository
- a public element that lives in its own github repository
I needed somewhere to keep a library of my own elements that I could share between my own projects. I don't particularly want to publish it and I didn't want to keep each element in it's own private repository.
I also wanted to be able to:
- test all my elements with the polymer-test-tools
- use my elements in Polymer Designer
There's nothing fancy here, just a directory structure and a few files. It's crude, but if you need to do the same thing that I do, it may save you a couple of hours.
- clone the repo
- run 'bower install'
- start a server in the root directory
- point your browser at tests/runner.html
- there's no Karma, so you may want to use livereload to refresh the page
- duplicate the my-element-template directory and edit according to your needs. Note: metadata.html is what adds your element to the designer palette.
- add a test to the tests directory by duplicating my-element-template.test.html
- duplicate the htmlsuite function in tests/tests.html and point it to your test from 2. above
- duplicate the link in the root directory's metadata.html and point the link at the metadata.html file from 1. above
- publish your branch to github
- follow the instructions under Adding your own components to designer on the Polymer/designer github page