class Zap::Package::LifecycleScripts
- Zap::Package::LifecycleScripts
- Reference
- Object
Included Modules
- JSON::Serializable
- MessagePack::Serializable
- YAML::Serializable
Defined in:
package/lifecycle_scripts.crConstant Summary
-
SELF_LIFECYCLE_SCRIPTS =
[:preinstall, :install, :postinstall, :prepublish, :preprepare, :prepare, :postprepare] of ::Symbol
Constructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(pull : MessagePack::Unpacker)
- .new
Instance Method Summary
- #build : String | Nil
- #dependencies : String | Nil
- #field(value : Symbol)
-
#has_install_from_git_related_scripts?
See https://docs.npmjs.com/cli/v8/configuring-npm/package-json#git-urls-as-dependencies
- #has_install_script?
- #has_prepare_script?
- #has_self_install_lifecycle?
- #install : String | Nil
- #install=(install : String | Nil)
- #install_lifecycle_scripts : Array(Symbol)
- #no_scripts?
- #postinstall : String | Nil
- #postpack : String | Nil
- #postprepare : String | Nil
- #postpublish : String | Nil
- #preinstall : String | Nil
- #prepack : String | Nil
- #prepare : String | Nil
- #preprepare : String | Nil
- #prepublish : String | Nil
- #prepublishOnly : String | Nil
- #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 -> )
- #run_script(kind : Symbol, chdir : Path | String, config : Config, raise_on_error_code : Bool = true, output_io : IO | Process::Redirect | Nil = nil, **args)
Constructor Detail
Instance Method Detail
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 -> )
#