This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 147471 [details] sample PHP app with grunt support Product Version: NetBeans IDE Dev (Build 20140527-17d2b7bb03ba) Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03 Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13 System: Linux version 3.11.0-12-generic running on amd64; UTF-8; en_US (nb) Currently we are able to use Grunt build tool within the HTML project including its great support for project context menu, mapping actions, action before run etc. I think that it would have sense to support Grunt within another project types as well. I'm attaching sample PHP project. You can switch between `grunt development` vs. `grunt publish` tasks there. Feel free to turn this into the enhancement. Thanks a lot.
Also, in the context menu, I see only "Default" task. Is it OK? Thanks.
(In reply to Tomas Mysik from comment #1) > Also, in the context menu, I see only "Default" task. Is it OK? Definitely not. When I copy&paste the build script sources into HTML project, all tasks are loaded properly. Should it be reported as a new issue or is it also related to Grunt support focused only to HTML area?
(In reply to Tomas Mysik from comment #1) > Also, in the context menu, I see only "Default" task. Is it OK? And what happens, if you run this default task?
(In reply to Jan Becicka from comment #3) > And what happens, if you run this default task? As expected, the default task is run. Try it yourself, it is easy ;)
(In reply to Tomas Mysik from comment #4) > (In reply to Jan Becicka from comment #3) > > And what happens, if you run this default task? > > As expected, the default task is run. Try it yourself, it is easy ;) If I tried it myself, I'm getting: Fatal error: Unable to find local grunt. This why I was asking. So I need to go to command line and do npm install When I go back to NB, list of grunt task is still cached and the only way how to force reload is to modify Gruntfile.js (e.g. just hit space). Now if I go to Grunt Tasks again, I can see all tasks. This is known issue 244650
http://hg.netbeans.org/web-main/rev/6687ab257f78 Grunt action is now available also for php project, maven and web. But action mapping is up to module owners.
(In reply to Jan Becicka from comment #6) > http://hg.netbeans.org/web-main/rev/6687ab257f78 > Grunt action is now available also for php project, maven and web. But > action mapping is up to module owners. Great, thanks a lot.
(In reply to Jan Becicka from comment #6) > But action mapping is up to module owners. Why? I thought that this belongs to Bower more than to e.g. PHP project. Or am I wrong? Sorry if yes, I am not expert in this area. Thanks.
(In reply to Tomas Mysik from comment #8) > Bower I meant Grunt, of course.
(In reply to Tomas Mysik from comment #8) > (In reply to Jan Becicka from comment #6) > > But action mapping is up to module owners. > > Why? I thought that this belongs to Bower more than to e.g. PHP project. Or > am I wrong? Sorry if yes, I am not expert in this area. For instance PHP Project (afaik) does not have Build, Clean and Build & Clean actions. To have those actions available PHP Project needs to add those actions to it's ActionProvider. I doubt, that I'm available to do this outside of PHP Project. But maybe this is the only issue.
(In reply to Jan Becicka from comment #10) > For instance PHP Project (afaik) does not have Build, Clean and Build & > Clean actions. To have those actions available PHP Project needs to add > those actions to it's ActionProvider. I doubt, that I'm available to do this > outside of PHP Project. I see now, thanks. Let's wait for feedback from our users, the current situation will be perhaps OK. Thanks!