tag:blogger.com,1999:blog-581197352358126527.post3888633734913495547..comments2024-03-28T00:32:25.959-07:00Comments on japh(r) by Chris Strom: Experimenting with Dart Application LocationsAnonymoushttp://www.blogger.com/profile/00135361916531185929noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-581197352358126527.post-63385121826897177182012-12-16T02:34:45.791-08:002012-12-16T02:34:45.791-08:00Oops, the content of the 'web' directory i...Oops, the content of the 'web' directory is shown badly. But I guess you understand the point :-)Ladislav Thonhttps://www.blogger.com/profile/12670125767406592087noreply@blogger.comtag:blogger.com,1999:blog-581197352358126527.post-1021540653148823032012-12-16T02:32:32.689-08:002012-12-16T02:32:32.689-08:00I believe that the intent is a little bit differen...I believe that the intent is a little bit different. The 'web' directory should be the document root of the web site, while the application code should lie in the 'lib' directory, as with ordinary libraries or standalone applications. Like this:<br /><br />.<br />├── app<br />│ ├── lib<br />│ │ ├── Collections.Comics.dart<br />│ │ ├── main.dart<br />│ │ ├── ModalDialog.dart<br />│ │ ├── Models.ComicBook.dart<br />│ │ ├── packages -> /home/chris/repos/dart-comics/app/packages<br />│ │ ├── Views.AddComic.dart<br />│ │ ├── Views.AddComicForm.dart<br />│ │ └── Views.Comics.dart<br />│ ├── packages<br />│ │ ├── hipster_mvc -> /home/chris/.pub-cache/hosted/pub.dartlang.org/hipster_mvc-0.2.0/lib<br />│ │ └── unittest -> /home/chris/.pub-cache/hosted/pub.dartlang.org/unittest-0.2.8+2/lib<br />│ ├── pubspec.lock<br />│ ├── pubspec.yaml<br />│ ├── test<br />│ │ ├── index.html<br />│ │ ├── packages -> /home/chris/repos/dart-comics/app/packages<br />│ │ └── Views.AddComicForm_test.dart<br />│ └── web<br />│ ├── images<br />│ ├── index.html<br />│ ├── ModalDialog.dart<br />│ ├── packages -> /home/chris/repos/dart-comics/app/packages<br />│ ├── scripts<br />│ └── stylesheets<br /><br />Note that there is a 'packages' symlink in the 'web' directory.<br /><br />Actually, when you do 'pub install', Pub will create add a symlink to the root-level 'packages' directory inside all these subdirectories: 'bin', 'example', 'test', 'tool' and 'web'.<br /><br />And now, you probably understand that from the 'web' directory, you will refer to your application code using 'package:app/...'.<br /><br />But this is likely to change, application deployment isn't a finished story yet.Ladislav Thonhttps://www.blogger.com/profile/12670125767406592087noreply@blogger.com