From 722ecc969bb9bdcee5412e73b34f19506981633f Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Fri, 8 Oct 2021 20:27:10 +1100 Subject: [PATCH] [website] Update docs to v2.0.0-beta.5 --- v2/internal/gomod/gomod_test.go | 8 ++++---- website/docs/gettingstarted/installation.mdx | 2 +- website/docs/reference/cli.mdx | 5 +++-- website/docs/reference/project-config.mdx | 6 ++++-- .../current/gettingstarted/installation.mdx | 2 +- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/v2/internal/gomod/gomod_test.go b/v2/internal/gomod/gomod_test.go index 346ae775e..5c35e0f49 100644 --- a/v2/internal/gomod/gomod_test.go +++ b/v2/internal/gomod/gomod_test.go @@ -10,7 +10,7 @@ const basic string = `module changeme go 1.17 -require github.com/wailsapp/wails/v2 v2.0.0-beta.4 +require github.com/wailsapp/wails/v2 v2.0.0-beta.5 require ( github.com/andybalholm/brotli v1.0.2 // indirect @@ -44,7 +44,7 @@ require ( golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6 // indirect ) -//replace github.com/wailsapp/wails/v2 v2.0.0-beta.4 => C:\Users\leaan\Documents\wails-v2-beta\wails\v2 +//replace github.com/wailsapp/wails/v2 v2.0.0-beta.5 => C:\Users\leaan\Documents\wails-v2-beta\wails\v2 ` func TestGetWailsVersion(t *testing.T) { @@ -54,7 +54,7 @@ func TestGetWailsVersion(t *testing.T) { want *semver.Version wantErr bool }{ - {"basic", []byte(basic), semver.MustParse("v2.0.0-beta.4"), false}, + {"basic", []byte(basic), semver.MustParse("v2.0.0-beta.5"), false}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { @@ -108,7 +108,7 @@ require ( golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6 // indirect ) -//replace github.com/wailsapp/wails/v2 v2.0.0-beta.4 => C:\Users\leaan\Documents\wails-v2-beta\wails\v2 +//replace github.com/wailsapp/wails/v2 v2.0.0-beta.5 => C:\Users\leaan\Documents\wails-v2-beta\wails\v2 ` func TestUpdateGoModVersion(t *testing.T) { diff --git a/website/docs/gettingstarted/installation.mdx b/website/docs/gettingstarted/installation.mdx index ab026e7a3..b4e567a5e 100644 --- a/website/docs/gettingstarted/installation.mdx +++ b/website/docs/gettingstarted/installation.mdx @@ -62,7 +62,7 @@ import TabItem from "@theme/TabItem"; ## Installing Wails -Run `go install github.com/wailsapp/wails/v2/cmd/wails@v2.0.0-beta.4` to install the Wails CLI. +Run `go install github.com/wailsapp/wails/v2/cmd/wails@v2.0.0-beta.5` to install the Wails CLI. ## System Check diff --git a/website/docs/reference/cli.mdx b/website/docs/reference/cli.mdx index 349aa8eb5..644d8dec6 100644 --- a/website/docs/reference/cli.mdx +++ b/website/docs/reference/cli.mdx @@ -133,9 +133,10 @@ Your system is ready for Wails development! | -v | Verbosity level (0 - silent, 1 - standard, 2 - verbose) | 1 | | -wailsjsdir | The directory to generate the generated Wails JS modules | Value in `wails.json` | | -debounce | The time to wait for reload after an asset change is detected | 100 (milliseconds) | +| -devserverurl "url" | Use 3rd party dev server url, EG Vite | "http://localhost:34115" | -If the `-assetdir` or `-wailsjsdir` flags are provided on the command line, they are saved in `wails.json`, and become -the defaults for subsequent invocations. +If the `assetdir`, `wailsjsdir`, `debounce` or `devserverurl` flags are provided on the command line, they are saved in +`wails.json`, and become the defaults for subsequent invocations. Example: diff --git a/website/docs/reference/project-config.mdx b/website/docs/reference/project-config.mdx index e6e9e7aca..ccf9cd9b2 100644 --- a/website/docs/reference/project-config.mdx +++ b/website/docs/reference/project-config.mdx @@ -12,14 +12,16 @@ The project config resides in the `wails.json` file in the project directory. Th "assetdir": "[Relative path to your assets directory]", "frontend:install": "[The command to install node dependencies, run in the frontend directory - often `npm install`]", "frontend:build": "[The command to build the assets, run in the frontend directory - often `npm run build`]", + "frontend:dev": "[This command is run in a separate process on `wails dev`. Useful for 3rd party watchers]", "wailsjsdir": "[Relative path to the directory that the auto-generated JS modules will be created]", "version": "[Project config version]", "outputfilename": "[The name of the binary]", "debounceMS": 100, // The default time the dev server waits to reload when it detects a vhange in assets + "devserverurl": "[URL to the dev server serving local assets. Default: http://localhost:34115]" } ``` This file is read by the Wails CLI when running `wails build` or `wails dev`. -The `assetdir` and `wailsjsdir` flags in `wails build/dev` will update the project config and thus become defaults for -subsequent runs. \ No newline at end of file +The `assetdir`, `wailsjsdir`, `debounceMS` and `devserverurl` flags in `wails build/dev` will update the project config +and thus become defaults for subsequent runs. \ No newline at end of file diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/gettingstarted/installation.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/gettingstarted/installation.mdx index c3823ca0f..0b0b14185 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/gettingstarted/installation.mdx +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/gettingstarted/installation.mdx @@ -63,7 +63,7 @@ import TabItem from "@theme/TabItem"; ## 安装 Wails -运行 `go install github.com/wailsapp/wails/v2/cmd/wails@v2.0.0-beta.4` 安装 Wails CLI。 +运行 `go install github.com/wailsapp/wails/v2/cmd/wails@v2.0.0-beta.5` 安装 Wails CLI。 ## 系统检查