Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Document usage #613

@nex3

Description

@nex3

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 #614 (comment)).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions