Interface PackageManagerCommandConfig
-
- All Known Implementing Classes:
PackageManagerCommandConfigDelegate
public interface PackageManagerCommandConfig
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_BUILD_COMMANDstatic StringDEFAULT_DEV_COMMANDstatic StringDEFAULT_DEV_SCRIPT_NAMEstatic StringDEFAULT_INSTALL_COMMANDstatic StringDEFAULT_TEST_COMMAND
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Field Detail
-
DEFAULT_DEV_SCRIPT_NAME
static final String DEFAULT_DEV_SCRIPT_NAME
- See Also:
- Constant Field Values
-
DEFAULT_DEV_COMMAND
static final String DEFAULT_DEV_COMMAND
- See Also:
- Constant Field Values
-
DEFAULT_INSTALL_COMMAND
static final String DEFAULT_INSTALL_COMMAND
- See Also:
- Constant Field Values
-
DEFAULT_BUILD_COMMAND
static final String DEFAULT_BUILD_COMMAND
- See Also:
- Constant Field Values
-
DEFAULT_TEST_COMMAND
static final String DEFAULT_TEST_COMMAND
- See Also:
- Constant Field Values
-
-
Method Detail
-
install
@ConfigDocDefault("install") Optional<String> install()Custom command for installing all packages. e.g. «ci --cache $CACHE_DIR/.npm --prefer-offline»
-
ci
@ConfigDocDefault("Detected based on package manager") 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).
-
build
@WithDefault("run build") Optional<String> build()Custom command for building the application.
-
test
@ConfigDocDefault("run test") Optional<String> test()Custom command for running tests for the application.
-
testEnv
@ConfigDocDefault("CI=true") Map<String,String> testEnv()Environment variables for test command execution.
-
dev
@ConfigDocDefault("framework detection with fallback to \'start\'") Optional<String> dev()Custom command for starting the application in development mode.
-
-