java.lang.Object
io.jooby.node.NodeModule
io.jooby.node.YarnModule
- All Implemented Interfaces:
io.jooby.Extension
Execute yarn on application startup. Usage:
{
install(new YarnModule("v12.16.1"));
}
Your package.json must defines a build task. To execute a custom task:
{
install(
new YarnModule("v12.16.1")
.execute("run", "mytask")
);
}
Complete documentation is available at: https://jooby.io/modules/frontend- Since:
- 2.8.0
- Author:
- edgar
-
Constructor Summary
ConstructorsConstructorDescriptionYarnModule(String nodeVersion, String yarnVersion) Creates a new Yarn module. -
Method Summary
Methods inherited from class io.jooby.node.NodeModule
execute, executeOnce, install, installDirectory, workDirectoryMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jooby.Extension
lateinit
-
Constructor Details
-
YarnModule
Creates a new Yarn module.- Parameters:
nodeVersion- Node version.yarnVersion- Yarn version.
-