Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BuildFlags = []cli.Flag{ &cli.StringFlag{ Name: "pkg", Usage: "Set your package manager.", Value: "yarn", }, &cli.StringSliceFlag{ Name: "target", Usage: "Set build targets", Value: cli.NewStringSlice(runtime.GOOS), }, &cli.StringFlag{ Name: "dest", Usage: "Build to a specific destination.", Value: "dist", }, &cli.BoolFlag{ Name: "rm", Usage: "Remove dest path if exists.", }, &cli.BoolFlag{ Name: "keep-tmp", Usage: "Remove dest path if exists.", }, } )
View Source
var (
DevFlags = []cli.Flag{
&cli.StringFlag{
Name: "pkg",
Usage: "Set your package manager.",
Value: "yarn",
},
}
)
View Source
var ( NewFlags = []cli.Flag{ &cli.StringFlag{ Name: "template", Aliases: []string{"from"}, Usage: "init new project from a remote template.", }, &cli.StringFlag{ Name: "dest", Usage: "template destination path.", }, &cli.StringFlag{ Name: "mod", Usage: "Your app module name.", }, &cli.BoolFlag{ Name: "no-setup", Usage: "Do not run template setup commands", }, } )
Functions ¶
Types ¶
type EngineConfig ¶
type EngineConfig struct {
Name string `yaml:"engineName"`
}
type SetupCommands ¶
type SetupCommands struct { Commands []struct { Cmd string `yaml:"cmd"` Dir string `yaml:"dir,omitempty"` Env []string `yaml:"env"` } `yaml:"setup"` }
Setup commands
Click to show internal directories.
Click to hide internal directories.