newapp

package
v0.13.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2018 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const GopkgTomlTmpl = `` /* 463-byte string literal not displayed */

GopkgTomlTmpl is the default dep Gopkg.toml

Variables

View Source
var ErrNotInGoPath = errors.New("currently not in a $GOPATH")

ErrNotInGoPath can be asserted against

View Source
var ErrTemplatesNotFound = errors.New("templates are missing")

ErrTemplatesNotFound means that the `buffalo` binary can't find the template files it needs to complete a task. This usually occurs when building `buffalo` locally and/or when using multipath GOPATHs.

View Source
var Templates = packr.NewBox("../newapp/templates")

Templates are the templates needed by this generator

Functions

This section is empty.

Types

type Generator added in v0.10.1

type Generator struct {
	meta.App
	Version     string `json:"version"`
	Force       bool   `json:"force"`
	Verbose     bool   `json:"verbose"`
	DBType      string `json:"db_type"`
	CIProvider  string `json:"ci_provider"`
	AsWeb       bool   `json:"as_web"`
	AsAPI       bool   `json:"as_api"`
	Docker      string `json:"docker"`
	SkipPop     bool   `json:"skip_pop"`
	SkipWebpack bool   `json:"skip_webpack"`
	SkipYarn    bool   `json:"skip_yarn"`
	Bootstrap   int    `json:"bootstrap"`
}

Generator is the representation of a new Buffalo application

func New added in v0.10.1

func New(name string) (Generator, error)

New app generator

func (Generator) Run added in v0.10.1

func (a Generator) Run(root string, data makr.Data) error

Run returns a generator to create a new application

func (Generator) Validate added in v0.10.1

func (g Generator) Validate() error

Validate that the app generator is good

Jump to

Keyboard shortcuts

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