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

List tasks as json #107

Open
segrey opened this issue May 4, 2016 · 1 comment
Open

List tasks as json #107

segrey opened this issue May 4, 2016 · 1 comment

Comments

@segrey
Copy link

segrey commented May 4, 2016

In order to list all available tasks with their dependencies, a custom task should be defined and registered via --tasks option. For instance, now WebStorm uses this code. Tasks are listed using this command:

grunt --gruntfile .../Gruntfile.js --tasks .../tasks _intellij_grunt_tasks_fetcher

It's not convenient to rely on internal Grunt API. Is it possible to add a new cli option that will output tasks with dependencies as json? Thanks.

@segrey
Copy link
Author

segrey commented May 4, 2016

Also, that would fix gruntjs/grunt#1303. Now, _intellij_grunt_tasks_fetcher is run even if Gruntfile has syntax errors making it harder for tools to show an actual error.

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

1 participant