nodejs

package
v0.0.0-...-52b1b20 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackageScripts

type PackageScripts struct {
	mg.ReducerType

	// Cmd is the command to run i.e. `yarn` or `npm`
	// if not set and `yarn.lock` in found in the package root, `yarn` will be used,
	// otherwise `npm` is use.
	Cmd string
}

PackageScripts adds UserCmd entries for each script defined in package.json

func (*PackageScripts) RCond

func (ps *PackageScripts) RCond(mx *mg.Ctx) bool

func (*PackageScripts) Reduce

func (ps *PackageScripts) Reduce(mx *mg.Ctx) *mg.State

Jump to

Keyboard shortcuts

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