| Index: app/views/doc/pub-build.html
|
| diff --git a/app/views/doc/pub-build.html b/app/views/doc/pub-build.html
|
| deleted file mode 100644
|
| index 1797fb5f8ffc393e8bba1ef205cf1d8ec272d0f0..0000000000000000000000000000000000000000
|
| --- a/app/views/doc/pub-build.html
|
| +++ /dev/null
|
| @@ -1,51 +0,0 @@
|
| -<pre><code>$ pub build [--mode=<mode>]
|
| -</code></pre>
|
| -
|
| -<p>Use <code>pub build</code> when you’re ready to deploy your web app. When you run
|
| -<code>pub build</code>, it generates the <a href="glossary.html#asset">assets</a> for the current
|
| -package and all of its dependencies, putting them into a new directory
|
| -named <code>build</code>.</p>
|
| -
|
| -<p>To use <code>pub build</code>, just run it in your package’s root directory. For example:</p>
|
| -
|
| -<pre><code>$ cd ~/dart/helloworld
|
| -$ pub build
|
| -Building helloworld......
|
| -Built 5 files!
|
| -</code></pre>
|
| -
|
| -<p>If the build directory already exists, <code>pub build</code> deletes it and then creates
|
| -it again.</p>
|
| -
|
| -<p>To generate assets, <code>pub build</code> uses
|
| -<a href="glossary.html#transformer">transformers</a>. Any source assets that aren’t
|
| -transformed are copied, as is, into the build directory or one of its
|
| -subdirectories. Pub also automatically compiles your Dart application to
|
| -JavaScript using dart2js.</p>
|
| -
|
| -<p>See <a href="assets-and-transformers.html">Assets and Transformers</a> for information on:</p>
|
| -
|
| -<ul>
|
| - <li>Where in your package to put assets.</li>
|
| - <li>What URLs to use when referring to assets.</li>
|
| - <li>How to use <code>pubspec.yaml</code> to specify which transformers run, and in
|
| -what order.</li>
|
| -</ul>
|
| -
|
| -<p>Also see <a href="pub-serve.html"><code>pub serve</code></a>. With <code>pub serve</code>, you can run a
|
| -development server that continuously generates and serves assets.</p>
|
| -
|
| -<h2 id="options">Options</h2>
|
| -
|
| -<h3 id="modemode"><code>--mode=<mode></code></h3>
|
| -
|
| -<p>Specifies a transformation mode. Typical values are “debug” and “release”, but
|
| -any word is allowed. Transformers may use this to change how they behave.</p>
|
| -
|
| -<p>If set to “release” pub will generate minified JavaScript using dart2js.
|
| -Otherwise, it generates it unminified. Also, in release mode, Pub will not
|
| -include any source .dart files in the resulting build output since they have
|
| -been compiled to JavaScript. In any other mode, the raw Dart files will be
|
| -included.</p>
|
| -
|
| -<p>If omitted, it defaults to “release”.</p>
|
|
|