| Index: app/views/doc/pub-serve.html
|
| diff --git a/app/views/doc/pub-serve.html b/app/views/doc/pub-serve.html
|
| deleted file mode 100644
|
| index 8f669a38f70ae5ced61295d3d117cb27ef34bd87..0000000000000000000000000000000000000000
|
| --- a/app/views/doc/pub-serve.html
|
| +++ /dev/null
|
| @@ -1,66 +0,0 @@
|
| -<pre><code>$ pub serve [--port <number>]
|
| -</code></pre>
|
| -
|
| -<p>This command starts up a <em>development server</em>, or <em>dev server</em>,
|
| -for your Dart web app. The dev server is an HTTP server on localhost
|
| -that serves up your web app’s <a href="glossary.html#asset">assets</a>.</p>
|
| -
|
| -<p>Start the dev server from the directory that contains your web app’s
|
| -<code>pubspec.yaml</code> file:</p>
|
| -
|
| -<pre><code>$ cd ~/dart/helloworld
|
| -$ pub serve
|
| -Serving helloworld on http://localhost:8080
|
| -</code></pre>
|
| -
|
| -<p>The dev server doesn’t just serve up assets, it produces them by running
|
| -<a href="glossary.html#transformer">transformers</a>. A transformer converts input
|
| -assets (such as Dart files or Polymer-formatted HTML) into output assets
|
| -(such as JavaScript and HTML).</p>
|
| -
|
| -<p>These output assets aren’t in the file system; they exist only in the dev
|
| -server. When you’re ready to deploy, generate output files by running
|
| -<a href="pub-build.html"><code>pub build</code></a>.</p>
|
| -
|
| -<p>Pub automatically includes a dart2js transformer that compiles your Dart code
|
| -to JavaScript. With this, you can change some Dart code, refresh your
|
| -non-Dartium browser, and immediately see the changes.</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>
|
| -
|
| -<h2 id="options">Options</h2>
|
| -
|
| -<h3 id="port"><code>--port</code></h3>
|
| -
|
| -<p>By default the dev server uses <code>http://localhost:8080</code>. To change the port
|
| -number, use the <code>--port</code> option:</p>
|
| -
|
| -<pre><code>$ pub serve --port 9080
|
| -Serving helloworld on http://localhost:9080
|
| -</code></pre>
|
| -
|
| -<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 “debug”.</p>
|
| -
|
| -<h2 id="what-about-dart-editors-server">What about Dart Editor’s server?</h2>
|
| -
|
| -<p>Dart Editor has its own dev server. We plan to unify it with the
|
| -pub dev server soon.</p>
|
|
|