https://github.com/uswitch/serverless-hooks-plugin
A plugin to run arbitrary commands on any lifecycle event in serverless
https://github.com/uswitch/serverless-hooks-plugin
Last synced: 11 months ago
JSON representation
A plugin to run arbitrary commands on any lifecycle event in serverless
- Host: GitHub
- URL: https://github.com/uswitch/serverless-hooks-plugin
- Owner: uswitch
- Created: 2017-04-07T20:47:27.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-27T21:41:40.000Z (over 7 years ago)
- Last Synced: 2024-12-01T20:46:02.326Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 29
- Watchers: 16
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serverless Hooks Plugin
## How to use
### Install from npm
1. Ensure your project has a valid `package.json`.
1. Run `npm install --save serverless-hooks-plugin`.
1. Add `serverless-hooks-plugin` to the list of plugins in `serverless.yml`. The plugins list is an array at the root level (an example `serverless.yml` is included in this project).
1. Add an array of hooks to be used as per examples, at `custom: hooks`.
### Local installation (not recommended)
1. Copy `serverless-hooks-plugin.js` into `.serverless-plugins` in the serverless project. You may need to create this folder.
1. Add `serverless-hooks-plugin` to the list of plugins in `serverless.yml`. The plugins list is an array at the root level (an example `serverless.yml` is included in this project).
1. Add an array of hooks to be used as per examples, at `custom: hooks`.