Consider the following dart web app:
import "dart:html";
// assume this is a custom library hosted somewhere on github, i.e.
// there is a pubspec.yaml entry
//
// dependencies:
// my_hello:
// git: http://github.com/foo/my_hello.git
//
import "package:my_hello/my_hello.dart" as hello;
main() {
query("#message").innerHtml = hello.message;
}
How to deploy it somewhere on a web server (for example as github pages), such that it can be used as dart based web app in Dartium?
- Do I have to create a directory
packages
on the web server? Do I have to copy the package
my_hello.dart
to the web server?packages/my_hello/...
Or is Dartium able to resolve the dependencies given a
pubspec.yaml
?