Documentation
¶
Overview ¶
Package project owns trbconfig.jsonc discovery, validation, and persistence.
Index ¶
Constants ¶
View Source
const ( ManagedPackages = "managed" ExternalPackages = "external" )
View Source
const ConfigName = "trbconfig.jsonc"
View Source
const DefaultRubyVersion = "4.0.6"
DefaultRubyVersion is the current Ruby toolchain supported by TypeRB.
View Source
const DefaultTypeScriptVersion = "latest"
DefaultTypeScriptVersion tracks the current TypeScript release.
Variables ¶
View Source
var ErrConfigNotFound = errors.New(ConfigName + " not found")
ErrConfigNotFound reports that discovery reached the filesystem root.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Schema string `json:"$schema,omitempty"`
Name string `json:"name"`
Version string `json:"version,omitempty"`
Mode string `json:"mode"`
SourceDir string `json:"sourceDir,omitempty"`
OutDir string `json:"outDir,omitempty"`
CopyFiles *bool `json:"copyFiles,omitempty"`
PackageManagement string `json:"packageManagement,omitempty"`
Dependencies map[string]string `json:"dependencies,omitempty"`
DevDependencies map[string]string `json:"devDependencies,omitempty"`
LocalPackages map[string]string `json:"localPackages,omitempty"`
Ruby *RubyConfig `json:"ruby,omitempty"`
Go *GoConfig `json:"go,omitempty"`
TypeScript *TypeScriptConfig `json:"typescript,omitempty"`
Root string `json:"-"`
Path string `json:"-"`
}
func (*Config) ManagesPackages ¶
func (*Config) OutputPath ¶
func (*Config) ShouldCopyFiles ¶
func (*Config) SourcePath ¶
type RubyConfig ¶
type SqldefConfig ¶
Click to show internal directories.
Click to hide internal directories.