public class TaskRunNpmInstall extends Object implements FallibleCommand
npm install after dependencies have been updated.| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Runs the given command.
|
protected String |
generateVersionsJson()
Generate versions json file.
|
protected String |
getDevDependenciesFilePath()
Returns a path inside classpath to the file with dev dependencies locked.
|
public void execute()
throws ExecutionFailedException
FallibleCommandIf execution fails then the command may throw an exception which may give a message and a cause of the failure.
execute in interface FallibleCommandExecutionFailedException - if there is an execution errorprotected String generateVersionsJson() throws IOException
IOExceptionprotected String getDevDependenciesFilePath()
The file may absent in the classapth.
nullCopyright © 2021. All rights reserved.