| OLD | NEW | 
|   1 --- |   1 --- | 
|   2 # WARNING: GENERATED FILE. DO NOT EDIT. |   2 # WARNING: GENERATED FILE. DO NOT EDIT. | 
|   3 # WANT TO CONTRIBUTE? SEE https://github.com/dart-lang/dart-up-and-running-book |   3 # WANT TO CONTRIBUTE? SEE https://github.com/dart-lang/dart-up-and-running-book | 
|   4 layout: book |   4 layout: book | 
|   5 title: "Chapter 4. Tools from Dart: Up and Running" |   5 title: "Chapter 4. Tools from Dart: Up and Running" | 
|   6 description: "Read Chapter 4. Tools of Dart: Up and Running, published by O'Reil
    ly." |   6 description: "Read Chapter 4. Tools of Dart: Up and Running, published by O'Reil
    ly." | 
|   7 --- |   7 --- | 
|   8 <div class="navheader"><table width="100%" summary="Navigation header"><tr><th c
    olspan="3" align="center">Chapter 4. Tools</th></tr><tr><td width="20%" align="l
    eft"><a accesskey="p" href="ch03.html">Prev</a> </td><th width="60%" align="cent
    er"> </th><td width="20%" align="right"> <a accesskey="n" href="ch04-tools-pub.h
    tml">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlep
    age"><div><div><h1 class="title"><a name="ch04"></a>Chapter 4. Tools</h1></div><
    /div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><
    span class="sect1"><a href="ch04-tools-pub.html">pub: The Dart Package Manager</
    a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04-tools-pub.html#ch04-
    tools-pub-pubspec">Creating a Pubspec</a></span></dt><dt><span class="sect2"><a 
    href="ch04-tools-pub.html#ch04-tools-pub-install">Installing Packages</a></span>
    </dt><dt><span class="sect2"><a href="ch04-tools-pub.html#ch04-tools-pub-import"
    >Importing Libraries from Packages</a></span></dt><dt><span class="sect2"><a hre
    f="ch04-tools-pub.html#ch04-tools-pub-more-options">More Information</a></span><
    /dt></dl></dd><dt><span class="sect1"><a href="ch04-tools-editor.html">Dart Edit
    or</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04-tools-editor.htm
    l#ch04-editor-view-samples">Viewing Samples</a></span></dt><dt><span class="sect
    2"><a href="ch04-tools-editor.html#ch04-editor-apps">Managing the Files View</a>
    </span></dt><dt><span class="sect2"><a href="ch04-tools-editor.html#ch04-editor-
    create-app">Creating Apps</a></span></dt><dt><span class="sect2"><a href="ch04-t
    ools-editor.html#ch04-editor-edit">Editing Apps</a></span></dt><dt><span class="
    sect2"><a href="ch04-tools-editor.html#ch04-editor-run">Running Apps</a></span><
    /dt><dt><span class="sect2"><a href="ch04-tools-editor.html#ch04-editor-debug">D
    ebugging Apps</a></span></dt><dt><span class="sect2"><a href="ch04-tools-editor.
    html#ch04-editor-dart2js">Compiling to JavaScript</a></span></dt><dt><span class
    ="sect2"><a href="ch04-tools-editor.html#ch04-editor-more">Other Features</a></s
    pan></dt></dl></dd><dt><span class="sect1"><a href="ch04-tools-dartium.html">Dar
    tium: Chromium with the Dart VM</a></span></dt><dd><dl><dt><span class="sect2"><
    a href="ch04-tools-dartium.html#ch04-dartium-download">Downloading and Installin
    g the Browser</a></span></dt><dt><span class="sect2"><a href="ch04-tools-dartium
    .html#ch04-dartium-launch">Launching the Browser</a></span></dt><dt><span class=
    "sect2"><a href="ch04-tools-dartium.html#ch04-dartium-bug">Filing Bugs</a></span
    ></dt><dt><span class="sect2"><a href="ch04-tools-dartium.html#ch04-dartium-link
    ing">Linking to Dart Source</a></span></dt><dt><span class="sect2"><a href="ch04
    -tools-dartium.html#ch04-dartium-detect">Detecting Dart Support</a></span></dt><
    dt><span class="sect2"><a href="ch04-tools-dartium.html#ch04-dartium-command">La
    unching from the Command Line</a></span></dt></dl></dd><dt><span class="sect1"><
    a href="ch04-tools-dart2js.html">dart2js: The Dart-to-JavaScript Compiler</a></s
    pan></dt><dt><span class="sect1"><a href="ch04-tools-dart-vm.html">dart: The Sta
    ndalone VM</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04-tools-da
    rt-vm.html#ch04-tools-dart-vm-basic-usage">Basic Usage</a></span></dt><dt><span 
    class="sect2"><a href="ch04-tools-dart-vm.html#ch04-tools-dart-vm-options">Optio
    ns</a></span></dt><dt><span class="sect2"><a href="ch04-tools-dart-vm.html#ch04-
    tools-dart-vm-type-checks">Enabling Checked Mode</a></span></dt></dl></dd><dt><s
    pan class="sect1"><a href="ch04-tools-dart_analyzer.html">dartanalyzer: The Stat
    ic Analyzer</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04-tools-d
    art_analyzer.html#ch04-tools-dart_analyzer-basic-usage">Basic Usage</a></span></
    dt><dt><span class="sect2"><a href="ch04-tools-dart_analyzer.html#ch04-tools-dar
    t_analyzer-options">Options</a></span></dt></dl></dd><dt><span class="sect1"><a 
    href="ch04-summary.html">Summary</a></span></dt></dl></div><p>Dart provides seve
    ral tools to help you write and deploy your web and |   8 <div class="navheader"><table width="100%" summary="Navigation header"><tr><th c
    olspan="3" align="center">Chapter 4. Tools</th></tr><tr><td width="20%" align="l
    eft"><a accesskey="p" href="ch03.html">Prev</a> </td><th width="60%" align="cent
    er"> </th><td width="20%" align="right"> <a accesskey="n" href="ch04-tools-pub.h
    tml">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlep
    age"><div><div><h1 class="title"><a name="ch04"></a>Chapter 4. Tools</h1></div><
    /div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><
    span class="sect1"><a href="ch04-tools-pub.html">pub: The Dart Package Manager</
    a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04-tools-pub.html#ch04-
    tools-pub-pubspec">Creating a Pubspec</a></span></dt><dt><span class="sect2"><a 
    href="ch04-tools-pub.html#ch04-tools-pub-install">Installing Packages</a></span>
    </dt><dt><span class="sect2"><a href="ch04-tools-pub.html#ch04-tools-pub-import"
    >Importing Libraries from Packages</a></span></dt><dt><span class="sect2"><a hre
    f="ch04-tools-pub.html#ch04-tools-pub-more-options">More Information</a></span><
    /dt></dl></dd><dt><span class="sect1"><a href="ch04-tools-editor.html">Dart Edit
    or</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch04-tools-editor.htm
    l#ch04-editor-view-samples">Viewing Samples</a></span></dt><dt><span class="sect
    2"><a href="ch04-tools-editor.html#ch04-editor-apps">Managing the Files View</a>
    </span></dt><dt><span class="sect2"><a href="ch04-tools-editor.html#ch04-editor-
    create-app">Creating Apps</a></span></dt><dt><span class="sect2"><a href="ch04-t
    ools-editor.html#ch04-editor-edit">Editing Apps</a></span></dt><dt><span class="
    sect2"><a href="ch04-tools-editor.html#ch04-editor-run">Running Apps</a></span><
    /dt><dt><span class="sect2"><a href="ch04-tools-editor.html#ch04-editor-debug">D
    ebugging Apps</a></span></dt><dt><span class="sect2"><a href="ch04-tools-editor.
    html#ch04-editor-dart2js">Compiling to JavaScript</a></span></dt><dt><span class
    ="sect2"><a href="ch04-tools-editor.html#ch04-editor-more">Other Features</a></s
    pan></dt></dl></dd><dt><span class="sect1"><a href="ch04-tools-dartium.html">Dar
    tium: Chromium with the Dart VM</a></span></dt><dd><dl><dt><span class="sect2"><
    a href="ch04-tools-dartium.html#ch04-dartium-download">Downloading and Installin
    g the Browser</a></span></dt><dt><span class="sect2"><a href="ch04-tools-dartium
    .html#ch04-dartium-launch">Launching the Browser</a></span></dt><dt><span class=
    "sect2"><a href="ch04-tools-dartium.html#ch04-dartium-bug">Filing Bugs</a></span
    ></dt><dt><span class="sect2"><a href="ch04-tools-dartium.html#ch04-dartium-link
    ing">Linking to Dart Source</a></span></dt><dt><span class="sect2"><a href="ch04
    -tools-dartium.html#ch04-dartium-detect">Detecting Dart Support</a></span></dt><
    dt><span class="sect2"><a href="ch04-tools-dartium.html#ch04-dartium-command">La
    unching from the Command Line</a></span></dt></dl></dd><dt><span class="sect1"><
    a href="ch04-tools-dart2js.html">dart2js: The Dart-to-JavaScript Compiler</a></s
    pan></dt><dt><span class="sect1"><a href="ch04-tools-dart-vm.html">dart: The Sta
    ndalone VM</a></span></dt><dt><span class="sect1"><a href="ch04-tools-dart_analy
    zer.html">dartanalyzer: The Static Analyzer</a></span></dt><dd><dl><dt><span cla
    ss="sect2"><a href="ch04-tools-dart_analyzer.html#ch04-tools-dart_analyzer-basic
    -usage">Basic Usage</a></span></dt><dt><span class="sect2"><a href="ch04-tools-d
    art_analyzer.html#ch04-tools-dart_analyzer-options">Options</a></span></dt></dl>
    </dd><dt><span class="sect1"><a href="ch04-summary.html">Summary</a></span></dt>
    </dl></div><p>Dart provides several tools to help you write and deploy your web 
    and | 
|   9   command-line apps. These tools include:</p><div class="variablelist"><dl class
    ="variablelist"><dt><span class="term"><a class="link" href="ch04-tools-pub.html
    " title="pub: The Dart Package Manager">pub: The Dart package |   9   command-line apps. These tools include:</p><div class="variablelist"><dl class
    ="variablelist"><dt><span class="term"><a class="link" href="ch04-tools-pub.html
    " title="pub: The Dart Package Manager">pub: The Dart package | 
|  10       manager</a></span></dt><dd><p>Download and install packages of libraries.<
    /p></dd><dt><span class="term"><a class="link" href="ch04-tools-editor.html" tit
    le="Dart Editor">Dart Editor</a></span></dt><dd><p>Edit, run, and debug web and 
    command-line apps.</p></dd><dt><span class="term"><a class="link" href="ch04-too
    ls-dartium.html" title="Dartium: Chromium with the Dart VM">Dartium: Chromium wi
    th the Dart |  10       manager</a></span></dt><dd><p>Download and install packages of libraries.<
    /p></dd><dt><span class="term"><a class="link" href="ch04-tools-editor.html" tit
    le="Dart Editor">Dart Editor</a></span></dt><dd><p>Edit, run, and debug web and 
    command-line apps.</p></dd><dt><span class="term"><a class="link" href="ch04-too
    ls-dartium.html" title="Dartium: Chromium with the Dart VM">Dartium: Chromium wi
    th the Dart | 
|  11       VM </a></span></dt><dd><p>Run Dart web apps. This is a special build of Ch
    romium (the |  11       VM </a></span></dt><dd><p>Run Dart web apps. This is a special build of Ch
    romium (the | 
|  12         project behind Google Chrome).</p></dd><dt><span class="term"><a class="
    link" href="ch04-tools-dart2js.html" title="dart2js: The Dart-to-JavaScript Comp
    iler">dart2js: The Dart-to-JavaScript |  12         project behind Google Chrome).</p></dd><dt><span class="term"><a class="
    link" href="ch04-tools-dart2js.html" title="dart2js: The Dart-to-JavaScript Comp
    iler">dart2js: The Dart-to-JavaScript | 
|  13       compiler</a></span></dt><dd><p>Convert your web app to JavaScript, so it c
    an run in non-Dartium |  13       compiler</a></span></dt><dd><p>Convert your web app to JavaScript, so it c
    an run in non-Dartium | 
|  14         browsers.</p></dd><dt><span class="term"><a class="link" href="ch04-tool
    s-dart-vm.html" title="dart: The Standalone VM">dart: The standalone Dart |  14         browsers.</p></dd><dt><span class="term"><a class="link" href="ch04-tool
    s-dart-vm.html" title="dart: The Standalone VM">dart: The standalone Dart | 
|  15       VM</a></span></dt><dd><p>Run your command-line apps—server-side scripts, p
    rograms, |  15       VM</a></span></dt><dd><p>Run your command-line apps—server-side scripts, p
    rograms, | 
|  16         servers, and any other apps that don’t run in a browser.</p></dd><dt><sp
    an class="term"><a class="link" href="ch04-tools-dart_analyzer.html" title="dart
    analyzer: The Static Analyzer">dartanalyzer: The Static |  16         servers, and any other apps that don’t run in a browser.</p></dd><dt><sp
    an class="term"><a class="link" href="ch04-tools-dart_analyzer.html" title="dart
    analyzer: The Static Analyzer">dartanalyzer: The Static | 
|  17       Analyzer</a></span></dt><dd><p>Analyze your Dart source from the command l
    ine.</p></dd></dl></div><p>All of these tools are in the Dart Editor bundle, sin
    ce the editor |  17       Analyzer</a></span></dt><dd><p>Analyze your Dart source from the command l
    ine.</p></dd></dl></div><p>All of these tools are in the Dart Editor bundle, sin
    ce the editor | 
|  18   uses them. You can also download Dartium separately, and you can download an |  18   uses them. You can also download Dartium separately, and you can download an | 
|  19   SDK that includes pub, dart2js, dart, dartanalyzer, and more. See the <a class
    ="ulink" href="http://www.dartlang.org/tools/" target="_top">Tools page</a> for 
    links and |  19   SDK that includes pub, dart2js, dart, dartanalyzer, and more. See the <a class
    ="ulink" href="http://www.dartlang.org/tools/" target="_top">Tools page</a> for 
    links and | 
|  20   details.</p><p>The tools are in the <code class="literal">dart-sdk/bin</code> 
    directory of your |  20   details.</p><p>The tools are in the <code class="literal">dart-sdk/bin</code> 
    directory of your | 
|  21   Dart installation directory. If you intend to use tools such as pub, |  21   Dart installation directory. If you intend to use tools such as pub, | 
|  22   dart2js, and dart from the command line, add the <code class="literal">bin</co
    de> |  22   dart2js, and dart from the command line, add the <code class="literal">bin</co
    de> | 
|  23   directory to your path.</p></div><div class="navfooter"><hr><table width="100%
    " summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" 
    href="ch03.html">Prev</a> </td><td width="20%" align="center"> </td><td width="4
    0%" align="right"> <a accesskey="n" href="ch04-tools-pub.html">Next</a></td></tr
    ><tr><td width="40%" align="left" valign="top">Chapter 3. A Tour of the Dart Lib
    raries </td><td width="20%" align="center"><a accesskey="h" href="index.html">Ho
    me</a></td><td width="40%" align="right" valign="top"> pub: The Dart Package Man
    ager</td></tr></table></div> |  23   directory to your path.</p></div><div class="navfooter"><hr><table width="100%
    " summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" 
    href="ch03.html">Prev</a> </td><td width="20%" align="center"> </td><td width="4
    0%" align="right"> <a accesskey="n" href="ch04-tools-pub.html">Next</a></td></tr
    ><tr><td width="40%" align="left" valign="top">Chapter 3. A Tour of the Dart Lib
    raries </td><td width="20%" align="center"><a accesskey="h" href="index.html">Ho
    me</a></td><td width="40%" align="right" valign="top"> pub: The Dart Package Man
    ager</td></tr></table></div> | 
| OLD | NEW |