We move demo sources into their own folder for a couple reasons:
-
It better groups them (we should feel free to add various demos in separate files).
-
It makes it much easier to bower ignore.
-
/demo/index.html
becomes the demo "root", making for more natural URLs. -
Dependencies for the demo should be
--save-dev
'd todevDependencies
.
Same rationale as /demo
. Dependencies should also be --save-dev
'd.
-
Even though
version
is not honored by Bower, we include to help someone disambiguate which version they have checked out. -
main
contains all primary.html
sources (i.e. element definitions). This should match the imports you declare inmetadata.html
. -
authors
is a handy place for us to annotate element owners.- The list should always include
"The Polymer Authors (http://polymer.github.io/AUTHORS.txt)"
to provide a common value to search for when filtering to all our projects.
- The list should always include
-
repository
is helpful metadata for anyone who is retrieving the package via some means other than bower (such as our zip).