What are dart polymer transformer entry_points actually for? -
dart apps using polymer.dart have pubspec.yaml file looking (from polymer.dart code lab):
class="lang-yaml prettyprint-override">name: polymer_and_dart description: sample app built polymer.dart bundle environment: sdk: '>=1.2.0 <2.0.0' dependencies: polymer: '>=0.12.0 <0.13.0' dev_dependencies: unittest: '>=0.10.0 <0.11.0' transformers: - polymer: entry_points: - web/begin/index.html - web/end/index.html
what entry_points
mean? declaring entry point do?
this file transformer starts looking polymer related files needs code generation , other modifications. transformer follows html imports , dart script tags.
an entry point main html files of polymer application (like index.html
). other files custom elements found automatically through imports.
for normal applications might have 1 entry point illustration bundle of polymer elements core_elements
or paper_elements
have demo application page each custom element in package. each such demo application entry point (normally in example
folder instead of web
.
dart dart-polymer
No comments:
Post a Comment