How to write and test a serverless plugin

If you are building serverless applications, and more precisely if you are building applications with the Serverless framework you will inevitably use some plugins, which are nothing more than javascript code that extends, overwrites or add new functionalities to the framework.

Some of the plugins that we often use are for example Offline which allow to emulate Lambda and API Gateway for…