我正在尝试找出如何打印所有可用的Grunt任务列表。在Rake中,可以这样做:
$ rake -T
那么在Grunt中,相应的命令是什么呢?例如: $ grunt -T
以下是可用的任务列表:
concat jasmine minify
那么在Grunt中,相应的命令是什么呢?例如: $ grunt -T
以下是可用的任务列表:
concat jasmine minify
grunt --help
列出可用任务。
如果您需要触发某些操作,但无法修改原始代码,则在sh/bash中列表的解决方法如下:
grunt -h --no-color | sed -n '/^Available tasks/,/^$/ {s/^ *\([^ ]\+\) [^ ]\+.*$/\1/p}'
grunt multi:task0
,multi:task1
等等? - Ciro Santilli OurBigBook.com