packers

package
v2.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSSPacker

type CSSPacker struct {
	CleanCSS bool
}

CSSPacker defines an implementation for parsing css files.

func (CSSPacker) Pack

func (csp CSSPacker) Pack(statements []assets.FileStatement, dir assets.DirStatement) ([]assets.WriteDirective, error)

Pack process all files present in the FileStatment slice and returns WriteDirectives which contains expected outputs for these files.

type CleanCSSPacker

type CleanCSSPacker struct {
	Args []string
}

CleanCSSPacker defines an implementation for parsing css files. WARNING: Requires Nodejs to be installed.

func (CleanCSSPacker) Pack

Pack process all files present in the FileStatment slice and returns WriteDirectives which conta ins expected outputs for these files.

type JSPacker

type JSPacker struct {
	Exceptions []string
}

JSPacker defines an implementation for parsing css files.

func (JSPacker) Pack

func (less JSPacker) Pack(statements []assets.FileStatement, dir assets.DirStatement) ([]assets.WriteDirective, error)

Pack process all files present in the FileStatment slice and returns WriteDirectives which contains expected outputs for these files.

type LessPacker

type LessPacker struct {
	MainFile string
	Options  map[string]string
}

LessPacker defines an implementation for parsing .less files into css files using the less compiler in nodejs. WARNING: Requires Nodejs to be installed.

func (LessPacker) Pack

func (less LessPacker) Pack(statements []assets.FileStatement, dir assets.DirStatement) ([]assets.WriteDirective, error)

Pack process all files present in the FileStatment slice and returns WriteDirectives which conta ins expected outputs for these files.

type RawPacker

type RawPacker struct{}

RawPacker defines an implementation for parsing css files.

func (RawPacker) Pack

func (less RawPacker) Pack(statements []assets.FileStatement, dir assets.DirStatement) ([]assets.WriteDirective, error)

Pack process all files present in the FileStatment slice and returns WriteDirectives which contains expected outputs for these files.

type StaticMarkupPacker

type StaticMarkupPacker struct {
	PackageName     string
	DestinationFile string
}

StaticMarkupPacker defines a struct which implements the assets.Packer interface and will convert all .static files into go files with the file html content turned into type-safe trees.Markup structures(see github.com/gu-io/gu/tree/master/trees).

func (StaticMarkupPacker) Pack

Pack process all '.static.html' files present in the FileStatment slice and returns WriteDirectives which conta ins expected outputs for these files.

Jump to

Keyboard shortcuts

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