class Zap::Package::LifecycleScripts

Included Modules

Defined in:

package/lifecycle_scripts.cr

Constant Summary

SELF_LIFECYCLE_SCRIPTS = [:preinstall, :install, :postinstall, :prepublish, :preprepare, :prepare, :postprepare] of ::Symbol

Constructors

Instance Method Summary

Instance methods inherited from class Object

or(other : T) : T | self forall T or, pipe(&) pipe

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(pull : MessagePack::Unpacker) #

[View source]
def self.new #

[View source]

Instance Method Detail

def build : String | Nil #

[View source]
def dependencies : String | Nil #

[View source]
def field(value : Symbol) #

[View source]
def has_install_from_git_related_scripts? #

See https://docs.npmjs.com/cli/v8/configuring-npm/package-json#git-urls-as-dependencies


[View source]
def has_install_script? #

[View source]
def has_prepare_script? #

[View source]
def has_self_install_lifecycle? #

[View source]
def install : String | Nil #

[View source]
def install=(install : String | Nil) #

[View source]
def install_lifecycle_scripts : Array(Symbol) #

[View source]
def no_scripts? #

[View source]
def postinstall : String | Nil #

[View source]
def postpack : String | Nil #

[View source]
def postprepare : String | Nil #

[View source]
def postpublish : String | Nil #

[View source]
def preinstall : String | Nil #

[View source]
def prepack : String | Nil #

[View source]
def prepare : String | Nil #

[View source]
def preprepare : String | Nil #

[View source]
def prepublish : String | Nil #

[View source]
def prepublishOnly : String | Nil #

[View source]
def run_script(kind : Symbol, chdir : Path | String, config : Config, raise_on_error_code : Bool = true, output_io : IO | Process::Redirect | Nil = nil, **args, &block : String, Symbol -> ) #

[View source]
def run_script(kind : Symbol, chdir : Path | String, config : Config, raise_on_error_code : Bool = true, output_io : IO | Process::Redirect | Nil = nil, **args) #

[View source]