All Projects → dart-archive → polymer-core-and-paper-examples

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

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

Programming Languages

HTML
75241 projects
dart
5743 projects

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].