config

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultOutputDirPath = "./generated-packages"
View Source
const DefaultPublishRegistry = "https://registry.npmjs.org/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BinName                string `yaml:"name"`
	InputBinDirPath        string `yaml:"inputPath,omitempty"`
	TryDefaultInputPaths   bool   `yaml:"-"`
	PackageName            string `yaml:"packageName"`
	Description            string `yaml:"description"`
	License                string `yaml:"license"`
	Homepage               string `yaml:"homepage"`
	Repository             string `yaml:"repository"`
	PackageNamePrefix      string `yaml:"packageNamePrefix"`
	NoPrefixForMainPackage bool   `yaml:"noPrefixForMainPackage"`
	PackageVersion         string `yaml:"-"`
	OutputDirPath          string `yaml:"outputPath"`
	PublishRegistry        string `yaml:"publishRegistry"`
	Publish                bool   `yaml:"publish"`
}

func (*Config) Validate added in v1.9.0

func (c *Config) Validate() error

type EnvInfo added in v1.9.0

type EnvInfo struct {
	Repository string
	Homepage   string
	Name       string
}

func GetRepositoryAndHomepageFromEnv added in v1.7.0

func GetRepositoryAndHomepageFromEnv() EnvInfo

Jump to

Keyboard shortcuts

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