From 227255fdd9e3f897b9e05e36482216366e5bc5d7 Mon Sep 17 00:00:00 2001 From: Matthew Butler Date: Wed, 29 Aug 2012 11:39:58 -0300 Subject: [PATCH] Update src/site/docs/pub-package-manager/index.markdown update simple example to include required 'name' parameter. --- .../docs/pub-package-manager/index.markdown | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/site/docs/pub-package-manager/index.markdown b/src/site/docs/pub-package-manager/index.markdown index c5a9f25b0..b913253ef 100644 --- a/src/site/docs/pub-package-manager/index.markdown +++ b/src/site/docs/pub-package-manager/index.markdown @@ -85,16 +85,17 @@ 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 -`pubspec.yaml` in the root directory of your app. +possible pubspec contains only your application's name, so in the editor highlight the +top most folder for your project then right click and click on 'New File...' (or +alternatively click on File > New File... Ensure your top-most folder is selected +as the parent folder. In the **File Name:** field enter in `pubspec.yaml` +and click Finish. - $ cd path/to/your_app - $ touch pubspec.yaml +Enter the following in the new file and save. - +{% highlight yaml %} +name: your_app +{% endhighlight %} Now `your_app` is a pub package! @@ -112,9 +113,11 @@ on the `handle_stache` package. -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, like so: {% highlight yaml %} +name: your_app dependencies: handle_stache: git: git://github.com/munificent/handle_stache.git