Merge pull request #21 from wailsapp/Fix-npm-project-name

Fix npm package name
This commit is contained in:
Lea Anthony
2019-01-13 18:04:39 +11:00
committed by GitHub

View File

@@ -249,7 +249,7 @@ func (po *ProjectOptions) PromptForInputs() error {
}
// Setup NPM Project name
po.NPMProjectName = strings.Replace(po.Name, " ", "_", -1)
po.NPMProjectName = strings.ToLower(strings.Replace(po.Name, " ", "_", -1))
// If we selected custom, prompt for framework
if po.Template == "custom - Choose your own CSS Framework" {