Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-trayio-nodejs-connector

Package Overview
Dependencies
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-trayio-nodejs-connector

Yeoman generator for creating Node.js connectors for the tray.io platform

  • 4.3.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Yeoman generator for tray.io Node.JS connectors

This Yeoman generator allows you to quickly create a skeleton Node.JS project for tray.io connectors.

Installation

To install this generator for use with Yeoman, use the following command in your terminal:

npm install -g generator-trayio-nodejs-connector

Make sure you have yeoman installed: npm install -g yo

Creating A Connector Project

Once you have setup Yeoman and installed this generator using NPM, you can now get started with creating a new skeleton project.

First you must create a new directory for your connector. Please only use lowercase letters and dashes.

mkdir my-custom-connector
cd my-custom-connector

Then run the generator using yo, following the instructions to create your skeleton project.

yo trayio-nodejs-connector

If you want to create workflow trigger connector, you will be prompted to Include an HTTP trigger?. If you say yes, a trigger connector will be created and the associated init operation handler and http request handlers.

Running / Testing Your Connector

To run the connector, you'll need to run:

NODE_ENV=development node main.js

Deploying

Once a PR is merged into master, you will need to go into GitHub Actions UI and trigger the NPM Publish workflow manually providing the input of major, minor or patch depending on what version bump you want to publish - this will automatically build, tag, and publish the new version.

Once the pipeline is done, a github tag will appear with the new version number. You will need to merge in the automatically generated pull request which bumps the package version. You can then use this tag to create a Github release with some release notes.

Keywords

FAQs

Package last updated on 01 Aug 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc