Versions in this module Expand all Collapse all v0 v0.5.7 Nov 30, 2023 Changes in this version + const DEFAULT_PORT_V2 + const DEFAULT_PORT_V3 + const DEFAULT_VITE_VERSION + var ErrManifestBadlyFormed = errors.New("manifest has unexpected format") + var ErrManifestDNF = errors.New("vue distribution directory not found") + var ErrNoEntryPoint = errors.New("manifest lacked entry point") + var ErrNoInputFile = errors.New("expected import file name") + type JSAppParams struct + EntryPoint string + HasTypeScript bool + IsVanilla bool + JSHash string + LitVersion string + MajorVer string + PackageType string + PreactVersion string + ReactVersion string + SvelteVersion string + ViteMajorVer string + ViteVersion string + VueVersion string + type PackageJSON struct + Dependencies map[string]string + DevDependencies map[string]string + Name string + Scripts map[string]string + Type string + Version string + type ViteConfig struct + AssetsPath string + DevDefaults *JSAppParams + DevServerDomain string + DevServerPort string + EntryPoint string + Environment string + FS fs.FS + HTTPS bool + JSInExternalDir bool + JSProjectPath string + Platform string + URLPrefix string + ViteVersion string + func (vc *ViteConfig) SetDevelopmentDefaults() error + func (vc *ViteConfig) SetProductionDefaults() error + type VueGlue struct + AssetPath string + BaseURL string + CSSModule []string + Debug bool + DevServer string + DistFS fs.FS + Environment string + Imports []string + JSProjectPath string + MainModule string + Platform string + func NewVueGlue(config *ViteConfig) (*VueGlue, error) + func ParseManifest(contents []byte) (*VueGlue, error) + func (vg *VueGlue) DevServerRedirector() http.Handler + func (vg *VueGlue) FileServer() (http.Handler, error) + func (vg *VueGlue) RenderTags() (template.HTML, error) + type WriterWrapper struct + RetCode int + Writer http.ResponseWriter + func NewRespWriter(w http.ResponseWriter) *WriterWrapper + func (w *WriterWrapper) Header() http.Header + func (w *WriterWrapper) Write(buf []byte) (int, error) + func (w *WriterWrapper) WriteHeader(status int)