Bjornej / GruntLauncher

A vspackage that adds the possibility to launch Grunt tasks
MIT License
40 stars 11 forks source link

GruntLauncher does not appear under Tools > Options or as right-click context menu #23

Closed ghost closed 10 years ago

ghost commented 10 years ago

I installed the extension via "Extensions and Updates..." wizard and it shows as being active, but I don't see anything either under Tools > Options, or when I right-click my GruntFile.coffee (I do see a Grunt option in the context menu if I compile the .coffee to .js first).

I am using: Microsoft Visual Studio Ultimate 2012 Version 11.0.61030.00 Update 4 Microsoft .NET Framework Version 4.5.50938

Bjornej commented 10 years ago

If you are referring to the options to filter task based on regular expressions and support for gruntfiles written in typescript, that version was a test and it has not yet been released on the visual studio gallery as I still have a bug to fix before releasing.

It should be available tomorrow.

Bjornej commented 10 years ago

It has been published on the visual studio gallery so you can just update from there.

ghost commented 10 years ago

Hi Bjornej,

What about support for gruntfiles written in coffee?

Bjornej commented 10 years ago

It works the same as for typescript. If you click on a gruntfile.coffee it searchs for gruntfile.js in the same directory and reads that if available

ghost commented 10 years ago

I don't have a gruntfile.js. Grunt works directly against the .coffee without requiring compilation first. When I right-click gruntfile.coffee in VS, I get a Grunt menu item that says "Grunt: Cannot parse Gruntfile". Can you add the ability to use the .coffee version directly?

Bjornej commented 10 years ago

Sorry, I tought that using grunt with coffescript worked like typescript, compiling the file to js and using that with grunt.

Currently GruntLauncher cannot work with coffescript files as it's only able to parse javascript. I can look at the problem but I'll have too find a way to parse coffeescript in C# and it will take some research.

Bjornej commented 10 years ago

I tried to implement the code to parse a coffeescript file but it's currently too difficult.

An alternative solution would be to simply execute grunt and recover the parsed options but to achieve this I need to do a major rewrite.

If you are okay with this I'll close this issue and you can open a more specific one for the ability to read .coffee files. When the new version is ready I'll notify you so you can try it.