Skip to content

Tool Npm

Roman edited this page Mar 3, 2023 · 2 revisions

This tool is a wrapper for running Npm.

Examples:

// Install
installSettings = &gttools.NpmInstallSettings{
	PackageSpec: "[email protected]",
	SaveDev:     true,
	SaveExact:   true,
}
installSettings.OutputToConsole = true
err := gotaskr.Tools.Npm.Install(installSettings)

// Shortcut for run to simply run a script
err := gotaskr.Tools.Npm.RunScript(true, "cy:build")
Clone this wiki locally