Skip to content

Commit dd09b98

Browse files
authored
Merge pull request #13 from Flying-Toast/add-dependency-command
Use the dub 'add' command to add a dependency
2 parents 175db7f + 6c21676 commit dd09b98

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

views/getting_started.dt

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -74,35 +74,7 @@ block body
7474

7575
h2#adding-deps Adding a dependency
7676

77-
p When you find a package to use from the <a href="https://code.dlang.org">DUB registry</a>, add it to the dependency list in your DUB configuration file:
78-
79-
table
80-
tr
81-
th JSON
82-
th SDLang
83-
tr
84-
td
85-
pre.code.lang-json
86-
|{
87-
| "name": "myproject",
88-
| "authors": [
89-
| "My Name"
90-
| ],
91-
| "description": "My first project",
92-
| "copyright": "Copyright © 2017, imadev",
93-
| "license": "Boost",
94-
| "dependencies": {
95-
| "dub": "~>1.3.0"
96-
| }
97-
|}
98-
td
99-
pre.code.lang-sdl.
100-
name "myproject"
101-
description "My first project"
102-
authors "My Name"
103-
copyright "Copyright © 2017, imadev"
104-
license "Boost"
105-
dependency "dub" version="~>1.3.0"
77+
p When you find a package to use from the <a href="https://code.dlang.org">DUB registry</a>, add it to the dependency list in your DUB configuration file by running <code>dub add &lt;packageName&gt;</code>.
10678

10779
p The DUB registry uses git tags to determine application versioning and DUB's dependency management is designed to work best according to <a href="http://semver.org">SemVer</a> rules. Please follow the rules of the SemVer specification for all packages you list on the registry. See the <a href="http://code.dlang.org/package-format?lang=json#version-specs">package documentation</a> for more information on dependency version specification.
10880

0 commit comments

Comments
 (0)