npm.io
0.0.3 • Published 5 years ago

nuxt-deploy-notifier

Licence
MIT
Version
0.0.3
Deps
4
Size
8 kB
Vulns
23
Weekly
0

Nuxt Build Notifier

Latest Version on NPM Software License npm npm

This module provides a simple Slack notification of your deployment after success.

Installation

yarn add nuxt-deploy-notifier

Usage

Simply add the module to your nuxt config:

export default {
    buildModules: [
        'nuxt-deploy-notifier',
    ],
}

And define any applicable options:

export default {
    deployNotifiers: {
        appName: null, // required
        slackChannel: null, // required
        slackWebhookUrl: null, // required
    },
}

Options

The following options are available:

APP_URL
  • Type: string
  • Required: true
  • Description: Set this from .env file
appName
  • Type: string
  • Required: true
  • Description: The application name
slackWebhookUrl
  • Type: string
  • Required: true
slackChannel
  • Type: string
  • Required: true

The webhook url to send the Slack notification to your channel of choice. For information on how to setup a webhook, check out the Slack Documentation. If no value is supplied, no notification will be sent.

Contact

Email: chantouchsek.cs83@gmail.com

Twitter @DevidCs83

License

This package is under the MIT License.

Keywords