[OT] Serverless function on Lambda

what is simplest structure of project/folders to create functions within Hugo, before taking it netlify for deployment, does that require Grunt.js or any other dependency?

This topic is OT. Serverless functions are called via JS.

Hugo is a static site generator.