pub build example
works fine for me but not yet for Polymer projects (this is work in progress)
Polymer doesn't like when it has a transformer configuration in the package where elements are imported from.
I maintain two polymer elements packages (polymer_elements/polymer_ui_elements).
I have the example files in example
but use another package (e.g. polymer_elements_examples
) to build the examples to JavaScript.
This polymer_elements_examples
has a pubspec.yaml
file with a dependency to polymer_elements
, a transformer configuration for the entry pages, and example
as a symbolic link to polymer_elements_examples
I then build the examples in polymer_elements_examples
with pub build example
.