public abstract class NodeModule extends Object implements Extension
| Modifier and Type | Method and Description |
|---|---|
NodeModule |
execute(String cmd,
String... args)
Execute a node task (without blocking the caller thread).
|
NodeModule |
executeOnce(String cmd,
String... args)
Run a task once per JVM instance.
|
void |
install(Jooby application) |
NodeModule |
installDirectory(Path installDirectory)
Set install directory where to save the node executable (node/node).
|
NodeModule |
workDirectory(Path workDirectory)
Set working directory (location of package.json).
|
@Nonnull public NodeModule workDirectory(@Nonnull Path workDirectory)
workDirectory - Work directory.@Nonnull public NodeModule installDirectory(@Nonnull Path installDirectory)
installDirectory - Location where to save the node executable (node/node).@Nonnull public NodeModule execute(@Nonnull String cmd, @Nonnull String... args)
cmd - Command.args - Arguments.@Nonnull public NodeModule executeOnce(@Nonnull String cmd, @Nonnull String... args)
cmd - Command.args - Arguments.Copyright © 2022. All rights reserved.