Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Update to include required 'name' parameter #3

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions src/site/docs/pub-package-manager/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<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: your_app
{% endhighlight %}

Now `your_app` is a pub package!

Expand All @@ -112,9 +113,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, like so:

{% highlight yaml %}
name: your_app
dependencies:
handle_stache:
git: git://github.com/munificent/handle_stache.git
Expand Down