com.vaadin.flow.server.frontend.
Class TaskInstallWebpackPlugins
- java.lang.Object
-
- com.vaadin.flow.server.frontend.TaskInstallWebpackPlugins
-
All Implemented Interfaces:
public class TaskInstallWebpackPlugins extends Object implements FallibleCommand
Task that installs any Flow webpack plugins into node_modules/@vaadin for use with webpack compilation.
This should preferably be executed after npm installation to not make it skip or have the plugins deleted by
TaskRunNpmInstall
.For internal use only. May be renamed or removed in a future release.
Since:
-
-
Constructor Summary
Constructors Constructor and Description TaskInstallWebpackPlugins(File nodeModulesFolder)
Copy Flow webpack plugins into the given nodeModulesFolder.
-
Method Summary
All Methods Modifier and Type Method and Description void
execute()
Runs the given command.
protected List<String>
getPlugins()
Get names for plugins to install into node_modules.
-
-
-
Constructor Detail
-
TaskInstallWebpackPlugins
public TaskInstallWebpackPlugins(File nodeModulesFolder)
Copy Flow webpack plugins into the given nodeModulesFolder.
Parameters:
nodeModulesFolder
- node_modules folder to copy files to
-
-
Method Detail
-
execute
public void execute()
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
-
-