These samples show how to use Node.js build tools such as gulp or Grunt with Script Portlets. There is also a Node.js package called “splint” that has support for finding specific issues that can occur with Script Portlets.

For more information see the article posted here:Using Node.js Build Tools with Script Portlet