dub init will create a package.json with a valid package name, i.e. a name with all lowercase characters.
1 parent 2934290 commit 1f57ce8bb8353d62b2390543e25e221f84a21de6
@Matthias Dondorff Matthias Dondorff authored on 18 Sep 2013
Showing 1 changed file
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": [