dom

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodeModules

func NodeModules(module *gomod.Module) budfs.FileGenerator

Serve node_modules TODO: migrate to it's own package

Types

type Compiler

type Compiler struct {
	// contains filtered or unexported fields
}

func New

func New(module *gomod.Module, transformer transformrt.Transformer) *Compiler

func (*Compiler) Compile

func (c *Compiler) Compile(ctx context.Context, fsys fs.FS) ([]esbuild.OutputFile, error)

Compile into a list of views for embedding

func (*Compiler) GenerateDir

func (c *Compiler) GenerateDir(fsys budfs.FS, dir *budfs.Dir) error

GenerateDir generates a directory of compiled files

func (*Compiler) GenerateFile added in v0.2.5

func (c *Compiler) GenerateFile(fsys budfs.FS, file *budfs.File) error

GenerateFile generates a single file, used in development

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL