node-gradle / node-gradle/gradle-node-plugin
Question: How to pass additional arguments to npm task via Gradle command line?
Nobody has claimed this yet.
- Dominant language
- Groovy
- Stars
- 677
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
Assume in my package.json I have a task named "xxx".
Using npm itself, I can run it as follows: npm run xxx.
I also can run it with additional arguments in the following way: npm run xxx -- more arguments for xxx.
When I run this task using node plugin for Gradle, I can run it using ./gradlew npm_run_xxx.
But is there a way to pass those additional arguments to the npm task, like I've done above with npm right on the Gradle command line?
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
The issue identifies the generated npm_run_xxx Gradle task and the ./gradlew command, but no source file or test. Start by tracing how that task is registered and how Gradle command-line arguments are handled. Done means the supported way to forward arguments to the npm task is established and covered by appropriate documentation or tests.
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
- 20/100