🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@balena/hubot-jellyfish

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balena/hubot-jellyfish

A Jellyfish adapter for Hubot

latest
Source
npmnpm
Version
2.0.3
Version published
Maintainers
1
Created
Source

hubot-jellyfish

A Jellyfish adapter for Hubot

Developing

Setup

  • Clone this repo and install the npm dependencies:

    git clone git@github.com:product-os/hubot-jellyfish.git
    cd hubot-jellyfish && npm i
    
  • Create a local hubot instance:

    npm i -g yo generator-hubot
    mkdir myhubot && cd myhubot
    yo hubot
    

    Follow the instructions. When prompted to specify an adapter, enter jellyfish.

  • Use npm link to link the hubot-jellyfish adapter to the hubot instance:

    cd myhubot
    npm link ../hubot-jellyfish
    
  • Edit the package.json file in myhubot to add the hubot-jellyfish npm package as a dependency (set the version to the current version of this package):

    "dependencies": {
        ...
        "hubot-jellyfish": "^0.0.1"
    }
    
  • Configure environment variables

    The following environment variables must be defined before running hubot locally:

    • HUBOT_JELLYFISH_API_URL (e.g. http://localhost:8000 for local development)
    • HUBOT_JELLYFISH_TOKEN (An api token for authenticating with Jellyfish)

    The easiest way to do this is to add a .env to your myhubot folder and specify the environment variables in that file.

  • Use npm link to link to the hubot package in the myhubot project (otherise the local node_modules/hubot package is used and the adapter doesn't communicate with the same hubot as myhubot is using!)

    cd hubot-jellyfish
    npm link ../myhubot/node_modules/hubot
    
  • Run Hubot!

    cd myhubot
    bin/hubot -n hubot -a jellyfish
    

Testing

To run the unit tests you have to unlink hubot from hubot-jellyfish:

cd hubot-jellyfish
npm unlink ../myhubot/node_modules/hubot
npm install

Then you can run the tests:

npm run test

FAQs

Package last updated on 16 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts