diff --git a/v2/cmd/wails/internal/commands/initialise/templates/base/README.md b/v2/cmd/wails/internal/commands/initialise/templates/base/README.md index 520cbe7e..abd8b9cd 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/base/README.md +++ b/v2/cmd/wails/internal/commands/initialise/templates/base/README.md @@ -4,11 +4,15 @@ This is the official Wails $NAME template. +You can configure the project by editing `wails.json`. More information about the project settings can be found +here: https://wails.io/docs/reference/project-config + ## Live Development -To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` -directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your -browser and connect to your application. +To run in live development mode, run `wails dev` in the project directory. This will run a Vite development +server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser +and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect +to this in your browser, and you can call your Go code from devtools. ## Building diff --git a/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.d.ts b/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.d.ts index 1e6994b7..14f322e4 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.d.ts +++ b/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.d.ts @@ -193,3 +193,11 @@ export function Environment(): Promise; // [Quit](https://wails.io/docs/reference/runtime/intro#quit) // Quits the application. export function Quit(): void; + +// [Hide](https://wails.io/docs/reference/runtime/intro#hide) +// Hides the application. +export function Hide(): void; + +// [Show](https://wails.io/docs/reference/runtime/intro#show) +// Shows the application. +export function Show(): void; diff --git a/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.js b/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.js index cdd0dfa6..26dbb224 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.js +++ b/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.js @@ -164,3 +164,11 @@ export function Environment() { export function Quit() { window.runtime.Quit(); } + +export function Hide() { + window.runtime.Hide(); +} + +export function Show() { + window.runtime.Show(); +} diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/lit-ts/README.md b/v2/cmd/wails/internal/commands/initialise/templates/templates/lit-ts/README.md index 6b7ae9fb..98d4d044 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/lit-ts/README.md +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/lit-ts/README.md @@ -4,11 +4,15 @@ This is the official Wails Lit-TS template. +You can configure the project by editing `wails.json`. More information about the project settings can be found +here: https://wails.io/docs/reference/project-config + ## Live Development -To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` -directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your -browser and connect to your application. +To run in live development mode, run `wails dev` in the project directory. This will run a Vite development +server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser +and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect +to this in your browser, and you can call your Go code from devtools. ## Building diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/lit/README.md b/v2/cmd/wails/internal/commands/initialise/templates/templates/lit/README.md index 282541b9..dc8efed6 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/lit/README.md +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/lit/README.md @@ -4,11 +4,15 @@ This is the official Wails Lit template. +You can configure the project by editing `wails.json`. More information about the project settings can be found +here: https://wails.io/docs/reference/project-config + ## Live Development -To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` -directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your -browser and connect to your application. +To run in live development mode, run `wails dev` in the project directory. This will run a Vite development +server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser +and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect +to this in your browser, and you can call your Go code from devtools. ## Building diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/plain/README.md b/v2/cmd/wails/internal/commands/initialise/templates/templates/plain/README.md index 9fcd85bd..3a71c4e9 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/plain/README.md +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/plain/README.md @@ -9,10 +9,11 @@ here: https://wails.io/docs/reference/project-config ## Live Development -To run in live development mode, run `wails dev` in the project directory. The frontend dev server will run -on http://localhost:34115. Open this in your browser to connect to your application. +To run in live development mode, run `wails dev` in the project directory. This will run a Vite development +server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser +and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect +to this in your browser, and you can call your Go code from devtools. ## Building -For a production build, use `wails build`. - +To build a redistributable, production mode package, use `wails build`. diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/preact-ts/README.md b/v2/cmd/wails/internal/commands/initialise/templates/templates/preact-ts/README.md index 2841bc40..923ecb00 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/preact-ts/README.md +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/preact-ts/README.md @@ -4,11 +4,15 @@ This is the official Wails Preact-TS template. +You can configure the project by editing `wails.json`. More information about the project settings can be found +here: https://wails.io/docs/reference/project-config + ## Live Development -To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` -directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your -browser and connect to your application. +To run in live development mode, run `wails dev` in the project directory. This will run a Vite development +server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser +and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect +to this in your browser, and you can call your Go code from devtools. ## Building diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/preact/README.md b/v2/cmd/wails/internal/commands/initialise/templates/templates/preact/README.md index 3d4e791d..8a354d53 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/preact/README.md +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/preact/README.md @@ -4,11 +4,15 @@ This is the official Wails Preact template. +You can configure the project by editing `wails.json`. More information about the project settings can be found +here: https://wails.io/docs/reference/project-config + ## Live Development -To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` -directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your -browser and connect to your application. +To run in live development mode, run `wails dev` in the project directory. This will run a Vite development +server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser +and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect +to this in your browser, and you can call your Go code from devtools. ## Building diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/react-ts/README.md b/v2/cmd/wails/internal/commands/initialise/templates/templates/react-ts/README.md index f6a89af9..d2169cc4 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/react-ts/README.md +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/react-ts/README.md @@ -4,11 +4,15 @@ This is the official Wails React-TS template. +You can configure the project by editing `wails.json`. More information about the project settings can be found +here: https://wails.io/docs/reference/project-config + ## Live Development -To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` -directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your -browser and connect to your application. +To run in live development mode, run `wails dev` in the project directory. This will run a Vite development +server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser +and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect +to this in your browser, and you can call your Go code from devtools. ## Building diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/react/README.md b/v2/cmd/wails/internal/commands/initialise/templates/templates/react/README.md index 2bfc2a51..4db88f69 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/react/README.md +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/react/README.md @@ -4,11 +4,15 @@ This is the official Wails React template. +You can configure the project by editing `wails.json`. More information about the project settings can be found +here: https://wails.io/docs/reference/project-config + ## Live Development -To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` -directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your -browser and connect to your application. +To run in live development mode, run `wails dev` in the project directory. This will run a Vite development +server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser +and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect +to this in your browser, and you can call your Go code from devtools. ## Building diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte-ts/README.md b/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte-ts/README.md index 84dfec0e..2e62a374 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte-ts/README.md +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte-ts/README.md @@ -6,9 +6,10 @@ This is the official Wails Svelte-TS template. ## Live Development -To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` -directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your -browser and connect to your application. +To run in live development mode, run `wails dev` in the project directory. This will run a Vite development +server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser +and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect +to this in your browser, and you can call your Go code from devtools. ## Building diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/README.md b/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/README.md index d5d83793..eefcd5c4 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/README.md +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/README.md @@ -6,9 +6,10 @@ This is the official Wails Svelte template. ## Live Development -To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` -directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your -browser and connect to your application. +To run in live development mode, run `wails dev` in the project directory. This will run a Vite development +server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser +and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect +to this in your browser, and you can call your Go code from devtools. ## Building diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla-ts/README.md b/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla-ts/README.md index 4a4045bd..4d7bcd37 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla-ts/README.md +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla-ts/README.md @@ -4,11 +4,15 @@ This is the official Wails Vanilla-TS template. +You can configure the project by editing `wails.json`. More information about the project settings can be found +here: https://wails.io/docs/reference/project-config + ## Live Development -To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` -directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your -browser and connect to your application. +To run in live development mode, run `wails dev` in the project directory. This will run a Vite development +server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser +and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect +to this in your browser, and you can call your Go code from devtools. ## Building diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/README.md b/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/README.md index e3470d50..397b08b9 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/README.md +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/README.md @@ -4,11 +4,15 @@ This is the official Wails Vanilla template. +You can configure the project by editing `wails.json`. More information about the project settings can be found +here: https://wails.io/docs/reference/project-config + ## Live Development -To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` -directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your -browser and connect to your application. +To run in live development mode, run `wails dev` in the project directory. This will run a Vite development +server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser +and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect +to this in your browser, and you can call your Go code from devtools. ## Building diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/vue-ts/README.md b/v2/cmd/wails/internal/commands/initialise/templates/templates/vue-ts/README.md index b3d7053c..f0eaef09 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/vue-ts/README.md +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/vue-ts/README.md @@ -4,11 +4,15 @@ This is the official Wails Vue-TS template. +You can configure the project by editing `wails.json`. More information about the project settings can be found +here: https://wails.io/docs/reference/project-config + ## Live Development -To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` -directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your -browser and connect to your application. +To run in live development mode, run `wails dev` in the project directory. This will run a Vite development +server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser +and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect +to this in your browser, and you can call your Go code from devtools. ## Building diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/vue/README.md b/v2/cmd/wails/internal/commands/initialise/templates/templates/vue/README.md index 87a9d8ac..d27aaeec 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/vue/README.md +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/vue/README.md @@ -4,11 +4,15 @@ This is the official Wails Vue template. +You can configure the project by editing `wails.json`. More information about the project settings can be found +here: https://wails.io/docs/reference/project-config + ## Live Development -To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` -directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your -browser and connect to your application. +To run in live development mode, run `wails dev` in the project directory. This will run a Vite development +server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser +and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect +to this in your browser, and you can call your Go code from devtools. ## Building