mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
[v2] Add .gitignore to templates
This commit is contained in:
parent
a641deb388
commit
6bc26aa669
3 changed files with 22 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue