actions

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 21 Imported by: 0

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

func Build

func Build(c *cli.Context) (err error)

func Bundle

func Bundle(c *cli.Context) error

func Dev

func Dev(c *cli.Context) error

func New

func New(c *cli.Context) (err error)

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

Jump to

Keyboard shortcuts

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