Documentation ¶
Overview ¶
Package gode runs a sandboxed node installation to run node code and install npm packages.
Index ¶
- Constants
- func DebugScript(script string) *exec.Cmd
- func InstallPackage(packages ...string) error
- func IsSetup() bool
- func NeedsUpdate() bool
- func RemovePackage(name string) error
- func RunScript(script string) *exec.Cmd
- func SetRootPath(root string)
- func Setup() error
- func UpdatePackage(name string) (string, error)
- func UpdatePackages() (string, error)
- type Package
- type Target
Constants ¶
View Source
const NpmVersion = "2.14.4"
NpmVersion is the requested npm version
View Source
const Version = "4.1.1"
Version is the requested node version
Variables ¶
This section is empty.
Functions ¶
func DebugScript ¶
DebugScript is the same as RunScript except it launches with node-inspector
func InstallPackage ¶
InstallPackage installs an npm package.
func NeedsUpdate ¶
func NeedsUpdate() bool
NeedsUpdate returns true if it is using a node that isn't the latest version
func UpdatePackage ¶
UpdatePackage updates a package.
Types ¶
Click to show internal directories.
Click to hide internal directories.