node-gradle / node-gradle/gradle-node-plugin
Fixed path to node binary
Nobody has claimed this yet.
- Dominant language
- Groovy
- Stars
- 677
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
If I configure node like this:
configure<NodeExtension> {
version = "12.13.0"
download = true
workDir = file("${rootDir}/build/nodejs")
}
.. the node binary will end up in build/nodejs/node-v12.13.0-darwin-x64/bin/node, which is dependent on both OS and version.
Is it possible to have it end up in a predetermined folder, like build/nodejs/foo/bin/node?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the NodeExtension configuration shown in the issue and trace how workDir and the downloaded Node version determine the binary path. Done means providing a configurable predetermined subdirectory such as build/nodejs/foo/bin/node without losing the existing download behavior across operating systems and versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, nodejs
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100