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 520cbe7e5..abd8b9cd2 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 1e6994b71..14f322e4c 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 cdd0dfa6e..26dbb224c 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 6b7ae9fb0..98d4d0447 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 282541b99..dc8efed65 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 9fcd85bdd..3a71c4e9b 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 2841bc408..923ecb002 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 3d4e791d5..8a354d53b 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 f6a89af92..d2169cc44 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 2bfc2a51e..4db88f690 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 84dfec0e2..2e62a374f 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 d5d837937..eefcd5c4e 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 4a4045bde..4d7bcd378 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 e3470d506..397b08b92 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 b3d7053c2..f0eaef091 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 87a9d8ace..d27aaeecb 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