dart-archive / polymer-core-and-paper-examples

This repo contains examples for the core and paper polymer elements, from Dart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Polymer core and paper elements examples

This repo contains examples for the core and paper polymer elements.

Running examples

The core examples are available here and the paper examples are available here.

Building examples

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:

  1. From the top directory, use the pub serve command.

  2. 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:

  1. From the top directory, use the pub build command:

    pub build

  2. 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.

About

This repo contains examples for the core and paper polymer elements, from Dart


Languages

Language:HTML 81.8%Language:Dart 18.2%