1.0.8 • Published 6 years ago

webhook-exec v1.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

webhook-exec

Build Status npm version npm downloads dependencies greenkeeper

A lightweight WebHook Server that execute commands defined directly on your packages.json file, how?

{
  "scripts": {
    "start-webhook": "webhook-exec --port 1234 --secret 123456 --server gogs",
    "stop-webhook": "webhook-exec stop"
  },
  "webhooks": {
    "push": [
      "git pull",
      "npm install",
      "npm run build"
    ],
    "delete": "rm -rf . && echo 'bye-bye'"
  }
}

You can find a list of events that you can react to here https://developer.github.com/webhooks/#events

Install

$ npm install webhook-exec -D

Options

Optionstypedefaultdescription
hoststringlocalhostThe host address which the webhook will be listening for data
portnumber7070The host port number
secretstring-A secret key shared with your webhook client/server
serverstringgithubone of github, gogs, gitlab, bitbucket

Commands

stop stop the server. example:

webhook stop

License

MIT © Rafael Milewski

1.0.8

6 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.1

7 years ago