5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-19 02:19:31 +08:00

Improve template README

This commit is contained in:
Lea Anthony 2022-07-30 12:31:19 +10:00
parent 57f506fa66
commit c58071be92
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
16 changed files with 106 additions and 43 deletions

View File

@ -4,11 +4,15 @@
This is the official Wails $NAME template. 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 ## Live Development
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
browser and connect to your application. 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 ## Building

View File

@ -193,3 +193,11 @@ export function Environment(): Promise<EnvironmentInfo>;
// [Quit](https://wails.io/docs/reference/runtime/intro#quit) // [Quit](https://wails.io/docs/reference/runtime/intro#quit)
// Quits the application. // Quits the application.
export function Quit(): void; 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;

View File

@ -164,3 +164,11 @@ export function Environment() {
export function Quit() { export function Quit() {
window.runtime.Quit(); window.runtime.Quit();
} }
export function Hide() {
window.runtime.Hide();
}
export function Show() {
window.runtime.Show();
}

View File

@ -4,11 +4,15 @@
This is the official Wails Lit-TS template. 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 ## Live Development
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
browser and connect to your application. 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 ## Building

View File

@ -4,11 +4,15 @@
This is the official Wails Lit template. 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 ## Live Development
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
browser and connect to your application. 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 ## Building

View File

@ -9,10 +9,11 @@ here: https://wails.io/docs/reference/project-config
## Live Development ## Live Development
To run in live development mode, run `wails dev` in the project directory. The frontend dev server will run To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
on http://localhost:34115. Open this in your browser to connect to your application. 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 ## Building
For a production build, use `wails build`. To build a redistributable, production mode package, use `wails build`.

View File

@ -4,11 +4,15 @@
This is the official Wails Preact-TS template. 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 ## Live Development
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
browser and connect to your application. 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 ## Building

View File

@ -4,11 +4,15 @@
This is the official Wails Preact template. 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 ## Live Development
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
browser and connect to your application. 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 ## Building

View File

@ -4,11 +4,15 @@
This is the official Wails React-TS template. 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 ## Live Development
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
browser and connect to your application. 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 ## Building

View File

@ -4,11 +4,15 @@
This is the official Wails React template. 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 ## Live Development
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
browser and connect to your application. 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 ## Building

View File

@ -6,9 +6,10 @@ This is the official Wails Svelte-TS template.
## Live Development ## Live Development
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
browser and connect to your application. 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 ## Building

View File

@ -6,9 +6,10 @@ This is the official Wails Svelte template.
## Live Development ## Live Development
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
browser and connect to your application. 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 ## Building

View File

@ -4,11 +4,15 @@
This is the official Wails Vanilla-TS template. 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 ## Live Development
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
browser and connect to your application. 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 ## Building

View File

@ -4,11 +4,15 @@
This is the official Wails Vanilla template. 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 ## Live Development
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
browser and connect to your application. 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 ## Building

View File

@ -4,11 +4,15 @@
This is the official Wails Vue-TS template. 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 ## Live Development
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
browser and connect to your application. 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 ## Building

View File

@ -4,11 +4,15 @@
This is the official Wails Vue template. 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 ## Live Development
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend` To run in live development mode, run `wails dev` in the project directory. This will run a Vite development
directory and run `npm run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
browser and connect to your application. 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 ## Building