class

MStrap::Runtimes::Node

Inherits MStrap::Runtime / MStrap::DSL / MStrap::DSL::System / MStrap::DSL::Logging / Reference / Object

Node runtime management implmentation. It contains methods for interacting with Node via the chosen runtime manager and bootstrapping a Node project based on conventions.

Instance methods

bootstrap

Bootstrap the current directory for the runtime

Source
install_packages(packages : Array(Defs::PkgDef), runtime_version : String | Nil = nil) : Bool

Installs global packages for the runtime with an optional version specification, and optional runtime version.

NOTE: The version specification is dependent upon the underlying package manager and is passed verbatim.

Source
matches?

Returns whether the project uses the runtime

Source