Versions in this module Expand all Collapse all v0 v0.2.0 Jun 5, 2020 v0.1.0 Feb 22, 2020 Changes in this version + func GetFreePort(port int) (int, error) + type AngularDevProxyOptions struct + Dir string + Port int + Production bool + RunnerType RunnerType + ScriptName string + type ReactDevProxyOptions struct + Dir string + Port int + RunnerType RunnerType + ScriptName string + ShowBuildInfo bool + type RunnerType int + const RunnerTypeCustom + const RunnerTypeNpm + const RunnerTypeNpx + const RunnerTypeYarn + type SpaDevProxy interface + DevServerURL func() *url.URL + HandleFunc func(w http.ResponseWriter, r *http.Request) + Start func(ctx context.Context) error + Stop func() error + func NewAngularDevProxy(options *AngularDevProxyOptions) (SpaDevProxy, error) + func NewReactDevProxy(options *ReactDevProxyOptions) (SpaDevProxy, error) + func NewSpaDevProxy(options *SpaDevProxyOptions) (SpaDevProxy, error) + func NewSvelteDevProxy(options *SvelteDevProxyOptions) (SpaDevProxy, error) + func NewVueDevProxy(options *VueDevProxyOptions) (SpaDevProxy, error) + type SpaDevProxyOptions struct + Args []string + Dir string + Env []string + Port int + RunnerType RunnerType + ScriptName string + ShowBuildInfo bool + StartRegexp *regexp.Regexp + type SvelteDevProxyOptions struct + Dir string + Port int + RunnerType RunnerType + ScriptName string + type VueDevProxyOptions struct + Dir string + Mode string + Port int + RunnerType RunnerType + ScriptName string