Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AssetMin ¶
type AssetMin struct {
*Config
WriteOnDisk bool // Indica si se debe escribir en disco
// contains filtered or unexported fields
}
func NewAssetMin ¶ added in v0.0.5
func (*AssetMin) EnsureOutputDirectoryExists ¶ added in v0.0.5
func (c *AssetMin) EnsureOutputDirectoryExists()
crea el directorio de salida si no existe
func (*AssetMin) NewFileEvent ¶
event: create, remove, write, rename
func (*AssetMin) UnobservedFiles ¶
type TestEnvironment ¶ added in v0.0.3
type TestEnvironment struct {
BaseDir string
ThemeDir string
PublicDir string
ModulesDir string
MainJsPath string
StyleCssPath string
AssetsHandler *AssetMin
// contains filtered or unexported fields
}
TestEnvironment holds all the paths and components needed for asset tests
func (*TestEnvironment) CleanDirectory ¶ added in v0.0.3
func (env *TestEnvironment) CleanDirectory()
CleanDirectory removes all content from the test directory but keeps the directory itself
func (*TestEnvironment) CreateModulesDir ¶ added in v0.0.4
func (env *TestEnvironment) CreateModulesDir() *TestEnvironment
CreateModulesDir creates the modules directory if it doesn't exist
func (*TestEnvironment) CreatePublicDir ¶ added in v0.0.4
func (env *TestEnvironment) CreatePublicDir() *TestEnvironment
CreatePublicDir creates the public directory if it doesn't exist
func (*TestEnvironment) CreateThemeDir ¶ added in v0.0.4
func (env *TestEnvironment) CreateThemeDir() *TestEnvironment
CreateThemeDir creates the theme directory if it doesn't exist
Click to show internal directories.
Click to hide internal directories.