com.vaadin.flow.server.frontend.
Class TaskRunNpmInstall
- java.lang.Object
-
- com.vaadin.flow.server.frontend.TaskRunNpmInstall
-
All Implemented Interfaces:
public class TaskRunNpmInstall extends Object implements FallibleCommand
Run
npm install
after dependencies have been updated.Since:
2.0
-
-
Method Summary
All Methods 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.
-
-
-
Method Detail
-
execute
public void execute() throws ExecutionFailedException
Description copied from interface:
FallibleCommand
Runs the given command.
If execution fails then the command may throw an exception which may give a message and a cause of the failure.
Specified by:
execute
in interfaceFallibleCommand
Throws:
ExecutionFailedException
- if there is an execution error
-
generateVersionsJson
protected String generateVersionsJson() throws IOException
Generate versions json file.
Returns:
generated versions json file path
Throws:
-
getDevDependenciesFilePath
protected String getDevDependenciesFilePath()
Returns a path inside classpath to the file with dev dependencies locked.
The file may absent in the classapth.
Returns:
the path to the dev dependencies file in the classpath, not
null
-
-