diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates.go b/v2/cmd/wails/internal/commands/initialise/templates/templates.go index a584486d1..e01fecfb4 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates.go +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates.go @@ -274,6 +274,10 @@ func Install(options *Options) (bool, *Template, error) { } templateData.AuthorNameAndEmail = strings.TrimSpace(templateData.AuthorNameAndEmail) + installer.RenameFiles(map[string]string{ + "gitignore.txt": ".gitignore", + }) + // Extract the template err = installer.Extract(options.TargetDir, templateData) if err != nil { diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/gitignore.txt b/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/gitignore.txt new file mode 100644 index 000000000..da44b7c53 --- /dev/null +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/gitignore.txt @@ -0,0 +1,9 @@ +# Wails bin directory +build/bin + +# IDEs +.idea +.vscode + +# The black hole that is... +node_modules diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/gitignore.txt b/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/gitignore.txt new file mode 100644 index 000000000..da44b7c53 --- /dev/null +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/gitignore.txt @@ -0,0 +1,9 @@ +# Wails bin directory +build/bin + +# IDEs +.idea +.vscode + +# The black hole that is... +node_modules