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
Source Files
¶
- packagescripts.go
Click to show internal directories.
Click to hide internal directories.