node-gradle / node-gradle/gradle-node-plugin

Fixed path to node binary

Open
#55 14 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

workaround exists
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.