node-gradle / node-gradle/gradle-node-plugin
Make npm executions work with WorkParameter objects
Nobody has claimed this yet.
- Dominant language
- Groovy
- Stars
- 677
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to write a task that uses the Worker API to execute several npx tasks in parallel. The parameters encoded in the WorkParameters class need to serializable, but since the NpmExecRunner::executeNpxCommand function takes in the extension object (which cannot be serialized) I'm unable to get anything working.
In short, can a serializable object be added that contains all of the information from the plugin configuration that executeNpxCommand needs to work?
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 NpmExecRunner::executeNpxCommand and review the Gradle Worker API and WorkParameters requirements described in the issue. Identify the plugin configuration values that execution needs, then verify that a serializable parameter object can carry them and support parallel npx tasks.
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