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
FallibleCommand
If execution fails then the command may throw an exception which may give a message and a cause of the failure.
execute
in interface FallibleCommand
ExecutionFailedException
- if there is an execution errorprotected String generateVersionsJson() throws IOException
IOException
protected String getDevDependenciesFilePath()
The file may absent in the classapth.
null
Copyright © 2020. All rights reserved.