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.

Bug 244441 - New HTML5 Project Wizard should support yeoman
Summary: New HTML5 Project Wizard should support yeoman
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 8.0
Hardware: PC All
: P2 normal with 2 votes (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks: 229313
  Show dependency tree
 
Reported: 2014-05-12 14:33 UTC by Jan Becicka
Modified: 2016-01-04 20:15 UTC (History)
5 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2014-05-12 14:33:05 UTC
http://yeoman.io

THE WEB'S SCAFFOLDING TOOL FOR MODERN WEBAPPS. 
NetBeans should support creating a new web project using yeoman.

+-----------------------------------------------------------+
|  New HTML Project (Yeoman Generator)                      |
+-----------------------------------------------------------|
|  New Project          Select Generator:                   |
|  Template Location    +----------------------------------+|
| *Site Template*       | webapp                           ||
|  JavaScript Files     | node                             ||
|                       | angular                          || 
|                       |                                  ||
|                       +----------------------------------+|
|                                                           |
|                       Description:                        |
|                       +----------------------------------+|
|                       | Yeoman generator that scaffolds  || 
|                       | out a front-end web app          ||
|                       +----------------------------------+|
|                                                           |
|                    [Help] [Back] [Next] [Finish] [Cancel] |
------------------------------------------------------------+
Comment 1 Christian Lenz 2014-09-09 06:57:36 UTC
I know there is an option: "Download Online Template", when you create a HTML5 Project. But you only have some templates to download, it would be better, if we can have a search field or whatever, to find templates when you search for a special one, like "ang". That would be great. Voted.


Regards

Chris
Comment 2 Tomas Mysik 2014-09-10 10:51:00 UTC
We (HonzaS and me) evaluated it yesterday and we think that there is not much sense in supporting Yeoman in NetBeans since the generator can do whatever it wants and usually uses terminal capabilites _a lot_. Correct me if I am wrong but IMHO WONTFIX.
Comment 3 Christian Lenz 2014-09-10 11:41:44 UTC
I wouldn't agree with that because if you say so, we can argue with, git works very well in the console and with other tools too, maven too, subversion too, grunt, npm and bower too. You know what I mean? I would like to have a good GUI support in netbeans, only my opinion. Afaik JetBrains will implement Yeoman in there IDE's too like in intellJ or webstorm or whatever.


Regards

Chris
Comment 4 Tomas Mysik 2014-09-10 11:48:31 UTC
(In reply to ChrisLE from comment #3)
> I wouldn't agree with that because if you say so, we can argue with, git
> works very well in the console and with other tools too, maven too,
> subversion too, grunt, npm and bower too. You know what I mean?

Not exactly. I was just saying, that the generators (or at least the webapp one) usually uses _capabilities_ of the terminal - how would you support it in NetBeans other way than running it in the built-in terminal as well? How would you navigate among possible choices of the generator?
Comment 5 Christian Lenz 2014-09-10 12:07:29 UTC
Sry I don't get it, because for me it's the same as other command line tools with terminal capabilities. You have to react of the returns from the terminal. If I do a merge with git on terminal I got a message oh here went smth wrong, you have to merge manually or revert things. And this does netbeans. They try a pull and after there is an error, we got the message revert, review, cancel. Ok because it's JGit(?) there are some better things to interact with but I don't know. And I don't know how it's possible but I will follow IntelliJ to figure out how they will handle it. And yes the JetBrains team is working on it to integrate it inside intelliJ.

Please give me feedback if I'm wrong.


Regards

Chris
Comment 6 Tomas Mysik 2014-09-10 12:16:46 UTC
The problem is that Yeoman cannot be run in non-iteractive mode so the only support that is - IMHO - possible to do is the dialog provided in the initial description of this issue. Is it really useful? I am not sure... What will happen if one selects the "webapp" generator and clicks the Finish button? Maybe HonzaB (the owner of this issue) has some plan but IMHO the only possibility is to invoke this command in a _terminal_; this means that user will need to make her/his choices which framework/library/etc. to use in the project - this selection cannot be done in NetBeans other wya than in its terminal. In other words, you cannot say to Yeoman "create new project, use webapp generator and use Bootstrap and angular.js frameworks".

I hope it is clear now. Thanks for your comments.
Comment 7 Christian Lenz 2015-06-25 06:27:20 UTC
I follow the yeoman plugin on github: https://github.com/GeertjanWielenga/YoNetBeans. It's quite nice, what work atm. But I hope it will developed further because IntelliJ has yeoman support on his roadmap for webstorm too. http://blog.jetbrains.com/webstorm/2015/06/webstorm-11-roadmap-discussion/ So we will see how they will handle it.
Comment 8 Christian Lenz 2015-12-02 10:54:57 UTC
Created a ticket how WebStorm did the support: https://github.com/GeertjanWielenga/YoNetBeans/issues/2#issuecomment-159606533. Hope there is some mor support soon for yeoman.
Comment 9 Christian Lenz 2015-12-30 23:28:29 UTC
(In reply to Tomas Mysik from comment #6)
> The problem is that Yeoman cannot be run in non-iteractive mode so the only
> support that is - IMHO - possible to do is the dialog provided in the
> initial description of this issue. Is it really useful? I am not sure...
> What will happen if one selects the "webapp" generator and clicks the Finish
> button? Maybe HonzaB (the owner of this issue) has some plan but IMHO the
> only possibility is to invoke this command in a _terminal_; this means that
> user will need to make her/his choices which framework/library/etc. to use
> in the project - this selection cannot be done in NetBeans other wya than in
> its terminal. In other words, you cannot say to Yeoman "create new project,
> use webapp generator and use Bootstrap and angular.js frameworks".
> 
> I hope it is clear now. Thanks for your comments.


I got your point but now as you can see what happens in WebStorm for example, it is possible with maybe a workaround what WebStorm does. It reads the steps out from the console (Maybe) show controls like checkboxes to do the stuff what you do in the terminal and the rest is other magic, but as you can see it is possible.
Comment 10 Jan Becicka 2016-01-04 19:38:51 UTC
Take a look at
http://yeoman.io/authoring/integrating-yeoman.html
Comment 11 Christian Lenz 2016-01-04 20:15:59 UTC
Thx for the info :)