UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

28 lines (23 loc) 529 B
'use strict'; const BbPromise = require('bluebird'); class Plugin { constructor(serverless, options) { this.serverless = serverless; this.options = options; this.commands = { plugin: { usage: 'Plugin management for Serverless', lifecycleEvents: [ 'plugin', ], }, }; this.hooks = { 'plugin:plugin': () => { this.serverless.cli.generateCommandsHelp(['plugin']); return BbPromise.resolve(); }, }; } } module.exports = Plugin;