GitBucket
Toggle navigation
Pull requests
Issues
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Fork
: 0
johnpearcey
/
dub_jkp
Browse code
dub init will create a package.json with a valid package name, i.e. a name with all lowercase characters.
master
1 parent
2934290
commit
1f57ce8bb8353d62b2390543e25e221f84a21de6
Matthias Dondorff
authored
on 18 Sep 2013
Patch
Unified
Split
Showing
1 changed file
+1
-1
■
■
■■■
source/dub/dub.d
Ignore Space
Show notes
View
2
■
■
■■■
source/dub/dub.d
//raw strings must be unindented.
immutable packageJson
=
`{
"name": "`
~(
path
.
empty
?
"my-project"
:
path
.
head
.
toString
())~
`",
"name": "`
~(
path
.
empty
?
"my-project"
:
path
.
head
.
toString
().
toLower
())~
`",
"description": "An example project skeleton",
"homepage": "http://example.org",
"copyright": "Copyright © 2000, Your Name",
"authors": [
Show line notes below