Class PackageManagerCommandConfigDelegate
- java.lang.Object
-
- io.quarkiverse.quinoa.deployment.config.delegate.PackageManagerCommandConfigDelegate
-
- All Implemented Interfaces:
PackageManagerCommandConfig
public class PackageManagerCommandConfigDelegate extends Object implements PackageManagerCommandConfig
-
-
Field Summary
-
Fields inherited from interface io.quarkiverse.quinoa.deployment.config.PackageManagerCommandConfig
DEFAULT_BUILD_COMMAND, DEFAULT_DEV_COMMAND, DEFAULT_DEV_SCRIPT_NAME, DEFAULT_INSTALL_COMMAND, DEFAULT_TEST_COMMAND
-
-
Constructor Summary
Constructors Constructor Description PackageManagerCommandConfigDelegate(PackageManagerCommandConfig delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>build()Custom command for building the application.Map<String,String>buildEnv()Environment variables for build command execution.Optional<String>ci()Custom command for installing all the packages without generating a lockfile (frozen lockfile) and failing if an update is needed (useful in CI).Map<String,String>ciEnv()Environment variables for ci command execution.Optional<String>dev()Custom command for starting the application in development mode.Map<String,String>devEnv()Environment variables for development command execution.Optional<String>install()Custom command for installing all packages.Map<String,String>installEnv()Environment variables for install command execution.Optional<String>test()Custom command for running tests for the application.Map<String,String>testEnv()Environment variables for test command execution.
-
-
-
Constructor Detail
-
PackageManagerCommandConfigDelegate
public PackageManagerCommandConfigDelegate(PackageManagerCommandConfig delegate)
-
-
Method Detail
-
ci
public Optional<String> ci()
Description copied from interface:PackageManagerCommandConfigCustom command for installing all the packages without generating a lockfile (frozen lockfile) and failing if an update is needed (useful in CI).- Specified by:
ciin interfacePackageManagerCommandConfig
-
ciEnv
public Map<String,String> ciEnv()
Description copied from interface:PackageManagerCommandConfigEnvironment variables for ci command execution.- Specified by:
ciEnvin interfacePackageManagerCommandConfig
-
install
public Optional<String> install()
Description copied from interface:PackageManagerCommandConfigCustom command for installing all packages. e.g. «ci --cache $CACHE_DIR/.npm --prefer-offline»- Specified by:
installin interfacePackageManagerCommandConfig
-
installEnv
public Map<String,String> installEnv()
Description copied from interface:PackageManagerCommandConfigEnvironment variables for install command execution.- Specified by:
installEnvin interfacePackageManagerCommandConfig
-
build
public Optional<String> build()
Description copied from interface:PackageManagerCommandConfigCustom command for building the application.- Specified by:
buildin interfacePackageManagerCommandConfig
-
buildEnv
public Map<String,String> buildEnv()
Description copied from interface:PackageManagerCommandConfigEnvironment variables for build command execution.- Specified by:
buildEnvin interfacePackageManagerCommandConfig
-
test
public Optional<String> test()
Description copied from interface:PackageManagerCommandConfigCustom command for running tests for the application.- Specified by:
testin interfacePackageManagerCommandConfig
-
testEnv
public Map<String,String> testEnv()
Description copied from interface:PackageManagerCommandConfigEnvironment variables for test command execution.- Specified by:
testEnvin interfacePackageManagerCommandConfig
-
dev
public Optional<String> dev()
Description copied from interface:PackageManagerCommandConfigCustom command for starting the application in development mode.- Specified by:
devin interfacePackageManagerCommandConfig
-
devEnv
public Map<String,String> devEnv()
Description copied from interface:PackageManagerCommandConfigEnvironment variables for development command execution.- Specified by:
devEnvin interfacePackageManagerCommandConfig
-
-