How to deploy a Polymer dart application
Right now, it's a two step process. I suspect this will get easier. In the meantime:
Create a build.dart that looks like this:
import 'package:polymer/builder.dart';main() { build(entryPoints: ['web/index.html'], options: parseOptions(['--deploy']));}
Take note, currently, a lot of warnings and hints are produced. You can ignore them for right now.
For the current version i have done these steps :
type on your console: dart build.dart --deploy dart2js out/web/index.html_bootstrap.dart -oout/web/index.html_bootstrap.dart.js
index.html:
<!DOCTYPE html><html> <head> ... <link rel="import" href="clickcounter.html"> <script type="application/dart">export 'package:polymer/init.dart';</script> <script src="packages/browser/dart.js"></script> </head> <body> ... <div id="sample_container_id"> <click-counter count="5"></click-counter> </div> </body></html>
build.dart:
import 'package:polymer/builder.dart'; main(args) { build(entryPoints: ['web/aaa.html'], options: parseOptions(args));}