Closed
Description
From @nex3 on July 28, 2016 1:7
Currently there's very little documentation describing how to use the dev compiler. The usage doc that exists is very sparse and has been marked as out-of-date for three months.
Some information that would be useful:
- How to compile a simple application. In particular, it's not obvious that every source file needs to be provided explicitly.
- How to use package imports.
- What comprises a module—the relationship between the generated JS and the summary.
- How to use a summary when compiling, and the benefit of doing so.
- What the
--build-root
and--module-root
flags do and when they're needed. - How to embed compiled JS into a web page, especially if the same page needs multiple modules.
- How to choose which library's main method is invoked.
- How to pass a file containing entrypoints (see Allow sources to be provided as a file dart-archive/dev_compiler#614 (comment)).
Copied from original issue: dart-archive/dev_compiler#613