Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List grunt.js tasks

Tags:

gruntjs

I'm trying to work out how to print a list of all available grunt tasks. With rake it would be:

$ rake -T

What's the equivalent for grunt? e.g.

$ grunt -T

  • concat
  • jasmine
  • minify
like image 424
opsb Avatar asked Feb 21 '13 14:02

opsb


People also ask

How do you check if task exists in Grunt?

grunt.task.existsCheck with the name, if a task exists in the registered tasks.

What are the examples of tasks in Grunt?

Tasks are grunt's bread and butter. The stuff you do most often, like jshint or nodeunit . Every time Grunt is run, you specify one or more tasks to run, which tells Grunt what you'd like it to do. If you don't specify a task, but a task named "default" has been defined, that task will run (unsurprisingly) by default.

Is Grunt still used?

So task runners like Grunt and Gulp still have their place and we still use both here at Delicious Brains as build tools for different products we develop.


1 Answers

grunt --help lists available tasks.

like image 140
tJener Avatar answered Oct 13 '22 05:10

tJener