Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 1.24 KB

CONTRIBUTING.md

File metadata and controls

61 lines (39 loc) · 1.24 KB

Contributing to Node-RED nodes for the Connio platform

Dependencies

Getting started

  • Install Node.js
  • Run
    $ npm install

Available scripts

start

Runs nodemon, browser-sync and Node-RED in development mode and watches for changes.
Node-RED configuration files are located in ./node-red folder, see Node-RED documentation for futher reading.

$ npm start

serve

Runs Node-RED with configuration files located in ./node-red folder. Make sure to run build script first (see below).

$ npm run serve

build

Builds Node-RED node’s sources into nodes folder

$ npm run build

Publish on npm

In order to publish on npm, make sure that the version in package.json file is newer than the current one. prepublishOnly script executed automatically before publishing.

Log in into your account (if you haven’t logged in already)

$ npm login

Then run the following command publish the package

$ npm publish

Publish on Node-RED flows

See Publish on npm section. The new version of the package is available on flows within one hour.