次のダーツ Web アプリについて考えてみます。
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;
}
Dartium で Dart ベースの Web アプリとして使用できるように、Web サーバーのどこかに (たとえば、github ページとして) デプロイする方法を教えてください。
packages
Web サーバー上にディレクトリを作成する必要がありますか?パッケージ
my_hello.dart
を Web サーバーにコピーする必要がありますか?packages/my_hello/...
または、Dartium は指定された依存関係を解決でき
pubspec.yaml
ますか?