How do I associate .js files as Node files for the context menu 'Run' and 'Debug' options show

I have a module that has multiple .js files. Only some of them seem to be accosiated as Node.js files (with a different icon and context menu that supports 'Run' and 'Debug' commands.
Image:2.png  Image:1.png
The 'naq-web.js' is associated with Node.js but the two other .js files are not. To run the '8002-auth.js' and '8003-users.js' files I have to use the 'Edit Configuration' option. It would be nice to be able to just right click and run these files the same way I can 'naq-web.js'.

Is there a trick to getting this to work?

---
Original message URL: http://devnet.jetbrains.net/message/5502609#5502609

Please sign in to leave a comment.