tateru

package
v0.0.0-...-5b87796 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 MergeConfig(def *RunConfig, o *RunConfig)

func ReadConfig

func ReadConfig(loc string) *[]byte

func SetRunConfigFromToml

func SetRunConfigFromToml(c *RunConfig, t *fiptoml.Toml)

Types

type CfgMapT

type CfgMapT = map[string]*RunConfig

type Config

type Config struct {
	RunConfig
	// contains filtered or unexported fields
}

func FromToml

func FromToml(t *fiptoml.Toml, modules []string) *Config

func FromTomlFile

func FromTomlFile(loc string, modules []string) *Config

func (*Config) ExposeBuilds

func (c *Config) ExposeBuilds() CfgMapT

func (*Config) GetBuilds

func (c *Config) GetBuilds(watchAll bool, smap string) ([]*api.BuildOptions, int, []string)

type OutExtT

type OutExtT = map[string]string

type OutType

type OutType = bool
const (
	File OutType = false
	Dir          = !File
)

type RunConfig

type RunConfig struct {
	// contains filtered or unexported fields
}

func MakeRunConfigFromToml

func MakeRunConfigFromToml(preset *RunConfig, t *fiptoml.Toml) *RunConfig

func (*RunConfig) Bundle

func (c *RunConfig) Bundle() bool

func (*RunConfig) Format

func (c *RunConfig) Format() api.Format

func (*RunConfig) Inputs

func (c *RunConfig) Inputs() []string

func (*RunConfig) MakeESBOptions

func (c *RunConfig) MakeESBOptions(watchAll bool, smap string) *api.BuildOptions

func (*RunConfig) Minify

func (c *RunConfig) Minify() bool

func (*RunConfig) OutEx

func (c *RunConfig) OutEx() OutExtT

func (*RunConfig) OutPath

func (c *RunConfig) OutPath() *string

func (*RunConfig) OutType

func (c *RunConfig) OutType() OutType

func (*RunConfig) Platform

func (c *RunConfig) Platform() api.Platform

func (*RunConfig) Target

func (c *RunConfig) Target() api.Target

func (*RunConfig) TsConfig

func (c *RunConfig) TsConfig() *string

func (*RunConfig) Watch

func (c *RunConfig) Watch() bool

func (*RunConfig) Write

func (c *RunConfig) Write() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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