feature: traverse whole source tree when findig Gruntfile.js or .coffee #56
Conversation
This would not work for the caching bits as that only checks the |
Playing around with this i got Quick panel unavailable I have a fix for the expose method to allow coffee caching. I also found a path around the error message, but is this really something we want to do? It adds another selection before we can run our command. It would have been better if the grunt tasks got listed by path down the quick panel. |
I am not really fond of this feature implemented that way. I would rather suggest to make this configurable, while I am usually more a friend of convention. But what about an optional sublime-grunt.config file in the root dir? Any opinions? |
I'd go with a configuration option. My project includes lots of Gruntfiles, but I only need to run a certain Gruntfile from Sublime. |
Why not make it work like the git plugins and make the command work relatively to the currently open file instead? Like,
This way you don't need configuration either. |
+1 for configuration file (sublime-grunt.config) with Gruntfile path |
I now have my gruntfile.js in a subfolder, since then I must resort to the sublime build system. I expected I would be able to use something like:
where "." would be the root project folder. Alas it doesn't work, relative or aboslute. Edit: Thanks to lefoy for clarifying the path can't be used to specify the gruntfile location. |
The path settings is not for the Gruntfile, it's your system
|
Another +1 for the config file, wordpress dev is the prime use case for this, Gruntfile would naturally be placed in the theme directory, not the project root. |
+1 for configuration file (sublime-grunt.config) with Gruntfile path |
Sorry for the long delay! I'm quite busy these past weeks and months. I think I will implement the config file solution as soon as I've got time. Any help (pull requests) will of course be greatly appreciated! |
The config file solution was implemented in another PR, using the general Sublime Text or sublime-project config file. |
In my project i have located Gruntfile.js in subfolder. So this minor change make selecting of desired Gruntfile.js possible.