How to compile a dart polymer project -
i written website using dart , polymer, runs in chromium, cannot compiled js.
the directory layout like:
my_proj/ pubspec.yaml (contents below) lib/ some_code.dart ... (used index.dart, app.dart , custom_elem_x.dart) asset/ 3rd-party codes ... (css, js lib, etc.) web/ index.html (traditional html, no polymer stuff) app.html (use lots of custom elements written in polymer) script/ index.dart (pure dart, nothing fancy, has main()) app.dart (has main(), in initpolymer() called) polymer/ custom_elem_1.html (imported app.html via \ custom_elem_1.dart <link rel="import" href="polymer/custom_elem_1.html">) ... custom_elem_n.html custom_elem_n.dart
pubspec.yaml:
name: blah dependencies: browser: polymer: ... transformers: - polymer: entry_points: web/app.html - $dart2js: minify: true
if run pub build
under my_proj/
, there no error far can tell, (lots of warnings, though). index.html static (just contents, no actions), , custom element in app.html not rendering. idea caused this?
i using dart-sdk 1.2.1 (pub --version) on debian 7 32bit.
thanks.
edit
managed fix deleting packages/
in project dir, , running pub get
again. custom_element, shadow_dom, html5lib updated 0.9.2, seems these updates got fixed, because put get
several times before, , nothing worked.
Comments
Post a Comment