From cbdcd9f63e7704a1740de3b041cdb8341a46e28d Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Tue, 9 Nov 2021 20:31:31 +1100 Subject: [PATCH] [v2] Add default wailsjsdir to templates --- .../initialise/templates/templates/svelte/wails.tmpl.json | 1 + .../initialise/templates/templates/vanilla/wails.tmpl.json | 1 + 2 files changed, 2 insertions(+) diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/wails.tmpl.json b/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/wails.tmpl.json index b8d08108d..5bf6b2a9b 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/wails.tmpl.json +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/wails.tmpl.json @@ -4,6 +4,7 @@ "assetdir": "frontend/dist", "frontend:install": "npm install", "frontend:build": "npm run build", + "wailsjsdir": "./frontend", "author": { "name": "{{.AuthorName}}", "email": "{{.AuthorEmail}}" diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/wails.tmpl.json b/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/wails.tmpl.json index 0f6a23103..a4f2bc2dd 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/wails.tmpl.json +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/wails.tmpl.json @@ -2,6 +2,7 @@ "name": "{{.ProjectName}}", "outputfilename": "{{.BinaryName}}", "assetdir": "frontend/src", + "wailsjsdir": "./frontend", "author": { "name": "{{.AuthorName}}", "email": "{{.AuthorEmail}}"