mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-21 19:39:29 +08:00
[v2] Add .gitignore to templates
This commit is contained in:
parent
a641deb388
commit
6bc26aa669
@ -274,6 +274,10 @@ func Install(options *Options) (bool, *Template, error) {
|
|||||||
}
|
}
|
||||||
templateData.AuthorNameAndEmail = strings.TrimSpace(templateData.AuthorNameAndEmail)
|
templateData.AuthorNameAndEmail = strings.TrimSpace(templateData.AuthorNameAndEmail)
|
||||||
|
|
||||||
|
installer.RenameFiles(map[string]string{
|
||||||
|
"gitignore.txt": ".gitignore",
|
||||||
|
})
|
||||||
|
|
||||||
// Extract the template
|
// Extract the template
|
||||||
err = installer.Extract(options.TargetDir, templateData)
|
err = installer.Extract(options.TargetDir, templateData)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
# Wails bin directory
|
||||||
|
build/bin
|
||||||
|
|
||||||
|
# IDEs
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
|
||||||
|
# The black hole that is...
|
||||||
|
node_modules
|
@ -0,0 +1,9 @@
|
|||||||
|
# Wails bin directory
|
||||||
|
build/bin
|
||||||
|
|
||||||
|
# IDEs
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
|
||||||
|
# The black hole that is...
|
||||||
|
node_modules
|
Loading…
Reference in New Issue
Block a user