generators

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitignore

func NewGitignore(service *projector.Service, config *configuration.Config) *projector.GeneratorTemplated

NewGitignore generator

func NewMakefile

func NewMakefile(service *projector.Service, config *configuration.Config) *projector.GeneratorTemplated

NewMakefile generator

Types

type Dockerfile

type Dockerfile struct {
	Port   int
	Target string
	Custom bool
}

Dockerfile generator

func (*Dockerfile) Generate

func (dockerfile *Dockerfile) Generate(service *projector.Service) error

Generate the config file

type EslintConfig

type EslintConfig struct {
	Env     map[string]bool     `json:"env"`
	Extends []string            `json:"extends"`
	Rules   map[string][]string `json:"rules"`
}

EslintConfig is the file format for the eslintrc.json

type EslintGenerator

type EslintGenerator struct{}

EslintGenerator generates the .php_cs config file

func (EslintGenerator) Generate

func (p EslintGenerator) Generate(service *projector.Service) error

Generate the config

type GithubWorkflow

type GithubWorkflow struct{}

GithubWorkflow generator

func (*GithubWorkflow) Generate

func (githubWorkflow *GithubWorkflow) Generate(service *projector.Service) error

Generate the config file

type PHPConfig

type PHPConfig struct{}

PHPConfig generates the .php_cs config file

func (PHPConfig) Generate

func (p PHPConfig) Generate(service *projector.Service) error

Generate the config

type TemplateGitignoreSection

type TemplateGitignoreSection struct {
	Name   string
	Values []string
}

TemplateGitignoreSection is a section of gitignore

type TemplateMakefileTarget

type TemplateMakefileTarget struct {
	Name       string
	Comment    string
	PreTargets []string
	Commands   []string
}

TemplateMakefileTarget is a target of Makefile

type TemplatePayloadGitignore

type TemplatePayloadGitignore struct {
	Sections []TemplateGitignoreSection
}

TemplatePayloadGitignore template payload

type TemplatePayloadMakefile

type TemplatePayloadMakefile struct {
	Variables map[string]string
	Targets   []*TemplateMakefileTarget
}

TemplatePayloadMakefile template payload

Jump to

Keyboard shortcuts

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