node-gradle / node-gradle/gradle-node-plugin
Allow removing/configuring the `inputs` of `pnpmInstall` tasks
Nobody has claimed this yet.
- Dominant language
- Groovy
- Stars
- 677
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
pnpm is pretty fast. Running pnpm install generally takes a second or two when all is up-to-date even when there are many things in package.json.
On the other hand, Gradle's caches of the pnpmInstall task can take quite a while to compute if the task needs rerunning. I would like to remove that and set these tasks to always execute - i.e. depend on pnpm itself to be clever and not do anything rather than Gradle (which walks the whole node_modules to check for changes).
I definitely think this will improve the performance of my build. What do you think?
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 by tracing how pnpmInstall tasks are configured and how Gradle computes their inputs, with particular attention to package.json and node_modules. Compare the requested always-execute behavior with the current cache checks, then verify that inputs can be removed or configured without breaking pnpm installation tasks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, nodejs
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100