Documentation
¶
Index ¶
- func ClearDir(dir string)
- func CopyDir(dirA, dirB string)
- func CopyFile(pathA, pathB string)
- func DeleteFile(path string)
- func ErrorMsg(msg string)
- func Exists(name string) bool
- func FilesByPattern(dir string, pattern string) ([]string, error)
- func GetWASMExecScript() string
- func GrepStyles() ([]string, error)
- func GrepStylesCustom(dir string, already map[string]bool) ([]string, error)
- func InArrayString(a string, arr []string) bool
- func Log(msg string)
- func Must(err error)
- func NewFile(path, body string)
- func RunCommand(command string)
- func StartWatcher(onUpdate func(name string), ...) error
- func UniteFilesByPaths(paths []string) (string, error)
- type BlockCompiler
- type BlockInfo
- type Builder
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearDir ¶
func ClearDir(dir string)
ClearDir reacreate directory or create if it doesn't exists
func FilesByPattern ¶
FilesByPattern return files path matched by mattern in directory
func GetWASMExecScript ¶
func GetWASMExecScript() string
GetWASMExecScript return wasm execution script
func GrepStyles ¶
GrepStyles grep styles files path in deps by their styles.gas
func GrepStylesCustom ¶
GrepStylesCustom grep styles files path in deps (for custom dir) by their styles.gas
func InArrayString ¶
InArrayString return is string in array of strings
func StartWatcher ¶
func UniteFilesByPaths ¶
Types ¶
type BlockCompiler ¶
BlockCompiler node for render pipeline
type BlockInfo ¶
type BlockInfo struct { // Name File name Name string // Value special block value Value string // FileInfo isExternal, file path, extension, e.t.c. FileInfo File // FileBytes full GOS file value FileBytes string }
BlockInfo information about special block
type Builder ¶
type Builder struct { // BlockCompilers pipeline of special blocks compilers BlockCompilers []BlockCompiler }
Builder GOS files builder
func (*Builder) CompileFile ¶
ParseFile compile GOS file to pure golang
func (*Builder) ParseFiles ¶
ParseFiles parse and compile GOS files
Click to show internal directories.
Click to hide internal directories.