Node toolchains
import org.ysb33r.gradle.jse.node.toolchains.JseNodeToolchain
plugins {
id 'org.ysb33r.jsecosystem.node.base' version '5.0.0-alpha.3'
}
jsEcosystem {
toolchains {
nodejs(JseNodeToolchain) {
executableByVersion('1.2.3') (1)
executableByPath('/path/to/node') (2)
executableBySearchPath() (3)
}
}
}
| 1 | Use a specific version of node. |
| 2 | Provide a hardcoded path to node. |
| 3 | Look for node in the system search path |