cli

package
v0.0.0-...-6248caf Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Types

type ChangeTracker

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

func NewChangeTracker

func NewChangeTracker() *ChangeTracker

func (*ChangeTracker) DidFileChange

func (ct *ChangeTracker) DidFileChange(path string) bool

func (*ChangeTracker) Init

func (ct *ChangeTracker) Init()

func (*ChangeTracker) InitFile

func (ct *ChangeTracker) InitFile(path string)

type CompilerPool

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

func NewCompilerPool

func NewCompilerPool(changeTracker *ChangeTracker) *CompilerPool

func (*CompilerPool) BuildGo

func (p *CompilerPool) BuildGo()

func (*CompilerPool) CompileDirectory

func (p *CompilerPool) CompileDirectory(directory string) error

func (*CompilerPool) GenerateAssetsAndTempl

func (p *CompilerPool) GenerateAssetsAndTempl()

func (*CompilerPool) GenerateTempl

func (p *CompilerPool) GenerateTempl() error

func (*CompilerPool) RunGo

func (p *CompilerPool) RunGo()

type ScssCompiler

type ScssCompiler func(string) (string, error)

type ScssCompilerPool

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

func NewScssCompilerPool

func NewScssCompilerPool() ScssCompilerPool

func (ScssCompilerPool) CompileFile

func (p ScssCompilerPool) CompileFile(path string) ([]byte, error)

func (ScssCompilerPool) CompileString

func (p ScssCompilerPool) CompileString(scss string) (string, error)

func (ScssCompilerPool) GetCompiler

func (p ScssCompilerPool) GetCompiler() ScssCompiler

func (ScssCompilerPool) PutCompiler

func (p ScssCompilerPool) PutCompiler(compiler ScssCompiler)

type ScssFile

type ScssFile struct {
	Contents string `json:"contents"`
	Syntax   string `json:"syntax"`
}

type Watcher

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

func NewWatcher

func NewWatcher() *Watcher

func (*Watcher) Run

func (w *Watcher) Run() error

Jump to

Keyboard shortcuts

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