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

Side by Side 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: Created 8 years, 3 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 unified diff | Download patch
OLDNEW
1 --- 1 ---
2 layout: default 2 layout: default
3 title: "Pub: Getting Started" 3 title: "Pub: Getting Started"
4 description: "How to get up and running with pub." 4 description: "How to get up and running with pub."
5 has-permalinks: true 5 has-permalinks: true
6 --- 6 ---
7 7
8 # {{ page.title }} 8 # {{ page.title }}
9 9
10 <!-- TODO(rnystrom): Link **terms** to glossary when that exists. --> 10 <!-- TODO(rnystrom): Link **terms** to glossary when that exists. -->
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 One of pub's main jobs is managing **dependencies**. A dependency is just 108 One of pub's main jobs is managing **dependencies**. A dependency is just
109 another package that your package relies on. If your app is using some 109 another package that your package relies on. If your app is using some
110 templating framework called "handle_stache", then your app package will depend 110 templating framework called "handle_stache", then your app package will depend
111 on the `handle_stache` package. 111 on the `handle_stache` package.
112 112
113 <!-- TODO(rnystrom): Use a real package here when we have one. --> 113 <!-- TODO(rnystrom): Use a real package here when we have one. -->
114 114
115 You specify your package's dependencies in the pubspec, like so: 115 You specify your package's dependencies in the pubspec, like so:
116 116
117 {% highlight yaml %} 117 {% highlight yaml %}
118 name: double_rainbows
118 dependencies: 119 dependencies:
119 handle_stache: 120 handle_stache:
120 git: git://github.com/munificent/handle_stache.git 121 git: git://github.com/munificent/handle_stache.git
121 {% endhighlight %} 122 {% endhighlight %}
122 123
123 Here, we are declaring a dependency on some (fictional) `handle_stache` package 124 Here, we are declaring a dependency on some (fictional) `handle_stache` package
124 that we want to install from [Git](http://git-scm.com/) using the given URL. 125 that we want to install from [Git](http://git-scm.com/) using the given URL.
125 126
126 <!-- TODO(rnystrom): Use a pub.dartlang.org dep when that's live. --> 127 <!-- TODO(rnystrom): Use a pub.dartlang.org dep when that's live. -->
127 128
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 <aside class="alert alert-info"> 230 <aside class="alert alert-info">
230 In the future, you'll be able to set this per project, instead of globally. 231 In the future, you'll be able to set this per project, instead of globally.
231 </aside> 232 </aside>
232 233
233 ## Learning more 234 ## Learning more
234 235
235 <a href="versioning.html"> 236 <a href="versioning.html">
236 <i class="icon-hand-right icon-white">&nbsp;</i> 237 <i class="icon-hand-right icon-white">&nbsp;</i>
237 Learn more about pub's approach to versioning 238 Learn more about pub's approach to versioning
238 </a> 239 </a>
OLDNEW
« no previous file with comments | « no previous file | src/site/docs/pub-package-manager/pubspec.markdown » ('j') | src/site/docs/pub-package-manager/pubspec.markdown » ('J')

Powered by Google App Engine
This is Rietveld 408576698