Documentation
¶
Index ¶
- Constants
- Variables
- func MergeConfig(def *RunConfig, o *RunConfig)
- func ReadConfig(loc string) *[]byte
- func SetRunConfigFromToml(c *RunConfig, t *fiptoml.Toml)
- type CfgMapT
- type Config
- type OutExtT
- type OutType
- type RunConfig
- func (c *RunConfig) Bundle() bool
- func (c *RunConfig) Format() api.Format
- func (c *RunConfig) Inputs() []string
- func (c *RunConfig) MakeESBOptions(watchAll bool, smap string) *api.BuildOptions
- func (c *RunConfig) Minify() bool
- func (c *RunConfig) OutEx() OutExtT
- func (c *RunConfig) OutPath() *string
- func (c *RunConfig) OutType() OutType
- func (c *RunConfig) Platform() api.Platform
- func (c *RunConfig) Target() api.Target
- func (c *RunConfig) TsConfig() *string
- func (c *RunConfig) Watch() bool
- func (c *RunConfig) Write() bool
Constants ¶
View Source
const ( DefaultConfigName = "default" EmptyConfigName = "empty" )
Variables ¶
View Source
var AllowedOptions = tateru.StructKeys(reflect.ValueOf(*ConfigPresets[EmptyConfigName]), "global_preset")
View Source
var ConfigPresets = CfgMapT{ EmptyConfigName: &RunConfig{name: EmptyConfigName}, DefaultConfigName: &RunConfig{ extends: tateru.String(EmptyConfigName), write: true, platform: tateru.String("node"), target: tateru.String("esnext"), tsconfig: tateru.String("tsconfig.json"), name: DefaultConfigName, }, }
View Source
var WatchOpts *api.WatchMode
Functions ¶
func MergeConfig ¶
func ReadConfig ¶
func SetRunConfigFromToml ¶
Types ¶
type Config ¶
type Config struct {
RunConfig
// contains filtered or unexported fields
}
func FromTomlFile ¶
func (*Config) ExposeBuilds ¶
type RunConfig ¶
type RunConfig struct {
// contains filtered or unexported fields
}
func MakeRunConfigFromToml ¶
func (*RunConfig) MakeESBOptions ¶
func (c *RunConfig) MakeESBOptions(watchAll bool, smap string) *api.BuildOptions
Click to show internal directories.
Click to hide internal directories.