Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mspclaims/5c3dce94c25b2eae6a4aa2cf7ce61943 to your computer and use it in GitHub Desktop.
Save mspclaims/5c3dce94c25b2eae6a4aa2cf7ce61943 to your computer and use it in GitHub Desktop.
// provided by in @Spaider (https://github.com/Spaider)
// in https://github.com/serverless/serverless/issues/1439#issuecomment-273482220
'use strict'
class VerboseDeploy {
constructor(serverless, options) {
this.serverless = serverless
this.options = options
// Bind to AWS only
this.provider = this.serverless.getProvider('aws')
this.hooks = {
'before:deploy:initialize': this.onInitialize.bind(this)
}
}
onInitialize() {
this.provider.sdk.EventListeners.Core.on('build', (r) => {
console.log(`${r.operation}`)
console.dir(r.params)
})
}
}
module.exports = VerboseDeploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment