This repo contains examples for the core and paper polymer elements.
If you download or fork the repo from
https://github.com/dart-lang/polymer-core-and-paper-examples,
then you can use the pub
command to run demos.
If you only want to run a few examples, then you can edit pubspec.yaml
and add
them to the entry_points
list. This will greatly reduce your build times.
To run a demo:
-
From the top directory, use the
pub serve
command. -
In a browser, visit
http://localhost:8080/element_name.html).
Note that you use an underscore (
_
) instead of the dash (-
) in the element name. For example, to see the core-icons demo, browse to http://localhost:8080/core_icons.html.For a full list of demos, you can just visit the index.html.
To create a deployable build of one or more demos:
-
From the top directory, use the pub build
command:
pub build
-
Copy the files from the resulting build
directory to
where you want to serve the files.
Note: Building the demos might take a few minutes.