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

How to use grunt in gradle #308

Open
wansoon opened this issue Apr 4, 2024 · 6 comments
Open

How to use grunt in gradle #308

wansoon opened this issue Apr 4, 2024 · 6 comments

Comments

@wansoon
Copy link

wansoon commented Apr 4, 2024

I want to build the project's script using grunt.
Is that possible in gradle?
I'm looking for a related guide, but I can't make progress because I don't understand it well.
I wish there was a separate guide or brief sample code.

@deepy
Copy link
Member

deepy commented Apr 4, 2024

Have you seen the FAQ entry for grunt?

@deepy deepy added the question Further information is requested label Apr 4, 2024
@wansoon
Copy link
Author

wansoon commented Apr 5, 2024

grunt에 대한 FAQ 항목을 보셨나요 ?

Since I still lack relevant knowledge,
I couldn't understand specifically how to do it by just looking at the FAQ, so I inquired.
So I asked for an sample.

@deepy
Copy link
Member

deepy commented Apr 5, 2024

That's fair, the gist of it is that you create a NpxTask with npxCommand set to grunt and then you add the arguments you want as args = ["your", "arguments", "to", "grunt"]
(And then you need to declare the inputs and the outputs to make sure gradle knows when to run the task)

This plugin just provides tasks that are suitable for running grunt, any grunt configuration needs to be done through their usual gruntfile

@wansoon
Copy link
Author

wansoon commented Apr 5, 2024

I don't know what the error message means when I follow the guide.

Could not set unknown property 'npxCommand' for task

args only needs build.

Is it necessary to install grunt using a method other than 'npm install --save-dev grunt-cli'?

@deepy
Copy link
Member

deepy commented Apr 5, 2024

Oh, that's a mistake in the documentation. It should be command and not npxCommand
As long as grunt is a dependency in your package.json and you add a dependency to npmInstall it should work fine
If not then npm install --save-dev grunt-cli will install it and add it to package.json

@deepy deepy added documentation and removed question Further information is requested labels Apr 5, 2024
@wansoon
Copy link
Author

wansoon commented Apr 5, 2024

I didn't understand exactly what you said,
but the same error occurs even after executing the command.

npm install --save-dev grunt-clipackage.json


Oh, I don't speak English, so I misunderstood because I read it through a translator. I'll use 'command'

@wansoon wansoon closed this as completed Apr 5, 2024
@wansoon wansoon reopened this Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants