Closed LeoColomb closed 10 years ago
Hi @LeoColomb ,
your suggestion is easy to implement and I'll try to have a version ready to try tomorrow but I need some more info as I've not used subtasks much:
options
or there are some other common exceptions?Referring to the Grunt documentation:
options
for properties (#)Just see what I name sub-tasks are actually named targets. More relevant...
I've done it. Can you try this version and confirm it's working as you suggested?
Perfect for the parsing behavior. :ok_hand: About how to show this, it could be more impressive to add a submenu. Quick example:
It's a nice idea but I'll have to see if I can do it.
Visual studio way to define menus is static and defined in a xml file so I'll have to see if it can be made dynamic in some way.
Let me make some experiments and I'll tell you if it's possible
@Bjornej Thanks! Feel free to submit me some packages to test (and check errors) :smile:
I've tried to create the submenus for the multiple targets command but it doesn't seem to be possible with the way menus are defined in visual studio.
I'll change the labels to remove grunt in the submenu and make a last try to implement it. If it doesn't work I''l publish the new feature on visual studio gallery so at least this is available to everyone.
I've tried again but I'm not able to dynamically create the submenus.
I've integrated your pull request and solved another bug which didn't allow to use a gruntfile except at the root of the project. If you want to try the prerelease it is here.
Tomorrow I'll make some other tests then publish the updated version on the gallery.
After that I'll close this issue if it's okay with you
OK, perfect. I will also try on my side to do what I suggest when I will have some time. Thanks again!
Hi @Bjornej,
It should be super useful (if possible) to recursively get Grunt tasks. Here I mean get sub tasks such as
task:subtask
, when there are two or more subtasks.All Grunt tasks should respect the following structure.
Currently
taskA
is well recognize and added to the Grunt submenu. You may also addsub1
,sub2
(options
is the common sublist to set options, so not a task) inside ataskA
submenu.What do you think about this? :smiley: