Serverless Hooks Plugin
How to use
Install from npm
- Ensure your project has a valid
package.json. - Run
npm install --save serverless-hooks-plugin. - Add
serverless-hooks-pluginto the list of plugins inserverless.yml. The plugins list is an array at the root level (an exampleserverless.ymlis included in this project). - Add an array of hooks to be used as per examples, at
custom: hooks.
Local installation (not recommended)
- Copy
serverless-hooks-plugin.jsinto.serverless-pluginsin the serverless project. You may need to create this folder. - Add
serverless-hooks-pluginto the list of plugins inserverless.yml. The plugins list is an array at the root level (an exampleserverless.ymlis included in this project). - Add an array of hooks to be used as per examples, at
custom: hooks.