to enable custom port (#782)

* to enable custom port

current validator doesn't enable port config, with this patch would have allow the config, however this doesn't include the runner changes... runner might need changes too.

* Update config.schema.json

* Update config.validator.ts
This commit is contained in:
Ken Chong
2020-07-09 20:06:04 +08:00
committed by GitHub
parent 460ac25269
commit 02df2bfea5
4 changed files with 12 additions and 2 deletions

View File

@@ -31,7 +31,8 @@ const getTauriConfig = (cfg: Partial<TauriConfig>): TauriConfig => {
ctx: {},
tauri: {
embeddedServer: {
active: true
active: true,
port: "3000"
},
bundle: {
active: true,

View File

@@ -399,6 +399,10 @@
"active": {
"description": "whether we should use the embedded-server or the no-server mode",
"type": "boolean"
},
"port": {
"description": "enable custom port, instead of using random port",
"type": "string"
}
},
"type": "object"
@@ -486,4 +490,4 @@
"tauri"
],
"type": "object"
}
}

View File

@@ -223,6 +223,7 @@ export interface TauriConfig {
* whether we should use the embedded-server or the no-server mode
*/
active?: boolean
port?: string
}
/**
* tauri bundler configuration

View File

@@ -409,6 +409,10 @@ export const TauriConfigSchema = {
"active": {
"description": "whether we should use the embedded-server or the no-server mode",
"type": "boolean"
},
"port": {
"description": "enable custom port, instead of using random port",
"type": "string"
}
},
"type": "object"