withPackage
Method
interface PerlAppResource { // ... omitted for brevity withPackage( packageName: string, force?: boolean, skipTest?: boolean): PerlAppResource;}Signature
method
withPackage builderAdds a Perl package (module) to be installed before the application starts. Uses the configured package manager: cpan by default, or cpanm if `WithCpanMinus``1` was called.
withPackage( packageName: string, force?: boolean, skipTest?: boolean): PerlAppResourceParameters
packageName stringThe name of the Perl module to install (e.g., "Mojolicious", "DBI").forcebooleanoptional= FalseIf `true`, force installation even if the module is already installed or tests fail.skipTest booleanoptional= FalseIf `true`, skip running tests during installation.Returns
PerlAppResource Applies to
This method applies to the following types: