Two quick questions about PHPStorm 7 EAP

1) Apparently support for EJS views is now in EAP7 (http://youtrack.jetbrains.com/issue/WEB-1173), I can't seem to get it working.  There is no EJS filetype (unlike Jade), so how do I get EJS views working with Node?  Also I use underscore templating which uses an EJS syntax, how do I get that working?

2) I just updated to the latest EAP (130.1562) on one of my machines and got this message:

Node.js project detected: To separate your sources from the dependencies, create "Node.js Dependencies" JavaScript library from node_modules folder

Clicking on the "create" link appears to do nothing (though the node modules is now marked as a Library Home, don't know if this was caused by clicking on the create or just happened automatically) and some of the types (ClientRequest and ServerResponse) which used to be recognized are now not.  What is this new "Node.js Dependencies" library and how does it relate the Javascript Libraries?  And is there a way to trigger the creation of the Node.Js dependencies files on machines that didn't detect it on startup (this only happened on 1 of the 4 machines that I updated 1562 on).

Thanks in advance,

Kris

3 comments

1) EJS plugin is not yet available for PHPStorm; will be likely included in the next EAP

2)
>Clicking on the "create" link appears to do nothing (though the node  modules is now marked as a Library Home, don't know if this was caused  by clicking on the create or just happened automatically)

Please check your Settings/javaScript/Libraries - a new library called 'Node.js Dependencies for <project_name>' should have been created there. http://youtrack.jetbrains.com/issue/WEB-7528 requires aking this action more 'verbose'

>and some of the types (ClientRequest and ServerResponse) which used to be recognized are now not.

hmm... can you please attach a project that shows up the problem?

0

Thanks for the response, I eagerly await testing the EJS plugin...

It looks like when PHPStorm created the Node.Js dependencies it removed all the libraries that I had manually created for the mode_modules (a good thing), but didn't automatically add "Node.js Dependencies" to the directories that was using the previous libraries.  No big deal as the new Node.Js Dependencies is a massive improvement on the old way of doing things.  

Quick question about libraries, what are the difference between the "HTML" and "HTML 5/Javascript libraries"?  Should both be used for HTML projects or is it an either or thing?

Thansk for such a great product,

Kris

0

'HTML' is all you need for most cases - it's dynamic HTML
But you can use both "HTML" and "HTML 5/Ecmascript 5" libraries for your project - it shouldn't cause any problems. I'm attaching DHTML.js ('HTML' library) and EcmaScript5.js + HTML5.js ("HTML 5/Ecmascript 5" library) for your reference



Attachment(s):
HTML5.js
EcmaScript5.js
DHTML.js
0

Please sign in to leave a comment.