Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is even no npm run task config example #299

Open
piscesvivian opened this issue Jan 12, 2024 · 2 comments
Open

There is even no npm run task config example #299

piscesvivian opened this issue Jan 12, 2024 · 2 comments

Comments

@piscesvivian
Copy link

Simplist example, no

no docs
no examples
just guess
just FAQ

···
task buildWebapp(type: NpmTask) {
dependsOn pnpmInstall
npmCommand = ['run', 'build']
}
···

Gradle is dieing

@tkrah
Copy link

tkrah commented Dec 18, 2024

Of cause there is:

https://github.com/node-gradle/gradle-node-plugin/blob/main/docs/usage.md

task installExpress(type: NpmTask) {
  // install the express package only
  args = ['install', 'express', '--save-dev']
}

@piscesvivian
Copy link
Author

@tkrah Sorry, I didn't realize that the npm command is implicit. And I could not found a 'npm run <task_name>' example.
Now I know, the problem is solved.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants