From 74c64c6420d9be7c7fad7f2d184926627d9e23e7 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Mon, 1 Jul 2019 08:57:42 +1000 Subject: [PATCH] chore: misc updates for template --- .../src/app/{app.component.ts => app.component.ts.template} | 2 +- .../frontend/src/{index.html => index.html.template} | 2 +- cmd/templates/angular-template/frontend/src/main.ts | 1 - cmd/templates/angular-template/go.mod.template | 4 ++++ cmd/templates/angular-template/main.go.template | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) rename cmd/templates/angular-template/frontend/src/app/{app.component.ts => app.component.ts.template} (93%) rename cmd/templates/angular-template/frontend/src/{index.html => index.html.template} (91%) diff --git a/cmd/templates/angular-template/frontend/src/app/app.component.ts b/cmd/templates/angular-template/frontend/src/app/app.component.ts.template similarity index 93% rename from cmd/templates/angular-template/frontend/src/app/app.component.ts rename to cmd/templates/angular-template/frontend/src/app/app.component.ts.template index e91b9168..1151c717 100644 --- a/cmd/templates/angular-template/frontend/src/app/app.component.ts +++ b/cmd/templates/angular-template/frontend/src/app/app.component.ts.template @@ -6,7 +6,7 @@ import { Component } from '@angular/core'; styleUrls: ['./app.component.css'] }) export class AppComponent { - title = 'my-app'; + title = '{{.Name}}'; clickMessage = ''; diff --git a/cmd/templates/angular-template/frontend/src/index.html b/cmd/templates/angular-template/frontend/src/index.html.template similarity index 91% rename from cmd/templates/angular-template/frontend/src/index.html rename to cmd/templates/angular-template/frontend/src/index.html.template index 35a46651..cf73b295 100644 --- a/cmd/templates/angular-template/frontend/src/index.html +++ b/cmd/templates/angular-template/frontend/src/index.html.template @@ -2,7 +2,7 @@ -MyApp +{{.Name}} diff --git a/cmd/templates/angular-template/frontend/src/main.ts b/cmd/templates/angular-template/frontend/src/main.ts index 55e9bece..08cb1acb 100644 --- a/cmd/templates/angular-template/frontend/src/main.ts +++ b/cmd/templates/angular-template/frontend/src/main.ts @@ -8,7 +8,6 @@ import 'zone.js' import Bridge from './wailsbridge'; - if (environment.production) { enableProdMode(); } diff --git a/cmd/templates/angular-template/go.mod.template b/cmd/templates/angular-template/go.mod.template index edd5326d..78038106 100644 --- a/cmd/templates/angular-template/go.mod.template +++ b/cmd/templates/angular-template/go.mod.template @@ -1 +1,5 @@ module {{.BinaryName}} + +require ( + github.com/wailsapp/wails {{.WailsVersion}} +) \ No newline at end of file diff --git a/cmd/templates/angular-template/main.go.template b/cmd/templates/angular-template/main.go.template index 64890bd6..592c6b7d 100644 --- a/cmd/templates/angular-template/main.go.template +++ b/cmd/templates/angular-template/main.go.template @@ -17,7 +17,7 @@ func main() { app := wails.CreateApp(&wails.AppConfig{ Width: 1024, Height: 768, - Title: "test22", + Title: "{{.Name}}", JS: js, CSS: css, Colour: "#131313",