rollup-plugin-dgnotify

0.1.8 • Public • Published

Rollup Plugin: Datagram Notify

Send rollup build notifications via datagram to a UDP port.

Use

Install

npm install -D rollup-plugin-dgnotify

In rollup.config.js

import rpi_dgnotify from 'rollup-plugin-dgnotify'
// ...
plugins.push( rpi_dgnotify( /* dgnotify_options */ ))


// all settings are optional
const dgnotify_options = {
  port: 8099,
  host: '127.0.0.1',

  id: {cwd: process.cwd()},

  on_build(obj) { },
  on_error(err, obj) { },
}

Start datagram relay

  • npx rollup-plugin-dgnotify
  • curl http://127.0.0.1:8080/dg_relay\?8099

Or visit the server-sent events page in your browser

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i rollup-plugin-dgnotify

Weekly Downloads

5

Version

0.1.8

License

MIT

Unpacked Size

40.8 kB

Total Files

12

Last publish

Collaborators

  • shanewholloway