Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1192)

Unified Diff: src/site/docs/pub-package-manager/index.markdown

Issue 10891023: add a name: and mark it as required (Closed) Base URL: git@github.com:dart-lang/dartlang.org.git@master
Patch Set: tweak to instructions Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/site/docs/pub-package-manager/pubspec.markdown » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/site/docs/pub-package-manager/index.markdown
diff --git a/src/site/docs/pub-package-manager/index.markdown b/src/site/docs/pub-package-manager/index.markdown
index c5a9f25b07825d46ae1e7e8b2605aed8ca090583..db8ba48c41e321677816e8e70059cbd215b08c73 100644
--- a/src/site/docs/pub-package-manager/index.markdown
+++ b/src/site/docs/pub-package-manager/index.markdown
@@ -85,18 +85,16 @@ package" or "application package".
To turn your app into an application package so it can use other packages, you
just need to give it a **pubspec**. This file is written using the
[YAML language](http://yaml.org) and is named `pubspec.yaml`. The simplest
-possible pubspec contains nothing, so just create an empty file and save it as
+possible pubspec just contains the name of the package. Save the pubspec file as
`pubspec.yaml` in the root directory of your app.
- $ cd path/to/your_app
- $ touch pubspec.yaml
+Behold, the most simple `pubspec.yaml`:
-<aside class="alert alert-info">
-If you're on Windows or don't rock the command line, just make an empty file
-and save it as <tt>pubspec.yaml</tt> in the root directory of your app.
-</aside>
+{% highlight yaml %}
+name: my_app
+{% endhighlight %}
-Now `your_app` is a pub package!
+Now `my_app` is a pub package!
<a href="pubspec.html">
<i class="icon-hand-right icon-white">&nbsp;</i>
@@ -112,9 +110,11 @@ on the `handle_stache` package.
<!-- TODO(rnystrom): Use a real package here when we have one. -->
-You specify your package's dependencies in the pubspec, like so:
+You specify your package's dependencies in the pubspec file immediately after
+your package name. For example:
{% highlight yaml %}
+name: my_app
dependencies:
handle_stache:
git: git://github.com/munificent/handle_stache.git
« no previous file with comments | « no previous file | src/site/docs/pub-package-manager/pubspec.markdown » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698