5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 19:50:15 +08:00

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
commit c823215eb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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" {