changed watcher, project struct
This commit is contained in:
parent
8f48b29950
commit
1dc951616e
|
@ -26,15 +26,18 @@ type Project struct {
|
||||||
c.Settings `yaml:"-"`
|
c.Settings `yaml:"-"`
|
||||||
LastChangedOn time.Time `yaml:"-"`
|
LastChangedOn time.Time `yaml:"-"`
|
||||||
base string
|
base string
|
||||||
Name string `yaml:"name,omitempty"`
|
Name string `yaml:"name"`
|
||||||
Path string `yaml:"path,omitempty"`
|
Path string `yaml:"path"`
|
||||||
Run bool `yaml:"run,omitempty"`
|
Run bool `yaml:"run"`
|
||||||
Bin bool `yaml:"bin,omitempty"`
|
Bin bool `yaml:"bin"`
|
||||||
Build bool `yaml:"build,omitempty"`
|
Generate bool `yaml:"generate"`
|
||||||
Fmt bool `yaml:"fmt,omitempty"`
|
Build bool `yaml:"build"`
|
||||||
Test bool `yaml:"test,omitempty"`
|
Fmt bool `yaml:"fmt"`
|
||||||
Params []string `yaml:"params,omitempty"`
|
Test bool `yaml:"test"`
|
||||||
Watcher Watcher `yaml:"watcher,omitempty"`
|
Params []string `yaml:"params"`
|
||||||
|
Watcher Watcher `yaml:"watcher"`
|
||||||
|
Cli Cli `yaml:"cli"`
|
||||||
|
File File `yaml:"file"`
|
||||||
Buffer Buffer `yaml:"-"`
|
Buffer Buffer `yaml:"-"`
|
||||||
parent *Blueprint
|
parent *Blueprint
|
||||||
path string
|
path string
|
||||||
|
@ -43,13 +46,22 @@ type Project struct {
|
||||||
// Watcher struct defines the livereload's logic
|
// Watcher struct defines the livereload's logic
|
||||||
type Watcher struct {
|
type Watcher struct {
|
||||||
// different before and after on re-run?
|
// different before and after on re-run?
|
||||||
Before []string `yaml:"before,omitempty"`
|
Before []string `yaml:"before"`
|
||||||
After []string `yaml:"after,omitempty"`
|
After []string `yaml:"after"`
|
||||||
Paths []string `yaml:"paths,omitempty"`
|
Paths []string `yaml:"paths"`
|
||||||
Ignore []string `yaml:"ignore_paths,omitempty"`
|
Ignore []string `yaml:"ignore_paths"`
|
||||||
Exts []string `yaml:"exts,omitempty"`
|
Exts []string `yaml:"exts"`
|
||||||
Preview bool `yaml:"preview,omitempty"`
|
Preview bool `yaml:"preview"`
|
||||||
Output map[string]bool `yaml:"output,omitempty"`
|
}
|
||||||
|
|
||||||
|
type Cli struct {
|
||||||
|
Streams bool `yaml:"streams"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type File struct {
|
||||||
|
Streams bool `yaml:"streams"`
|
||||||
|
Logs bool `yaml:"logs"`
|
||||||
|
Errors bool `yaml:"errors"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Buffer struct for buffering outputs
|
// Buffer struct for buffering outputs
|
||||||
|
|
Loading…
Reference in New Issue