- Install Node.js
- Run
$ npm install
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
Runs Node-RED
with configuration files located in ./node-red
folder. Make sure to run build
script first (see below).
$ npm run serve
Builds Node-RED
node’s sources into nodes
folder
$ npm run build
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
See Publish on npm
section. The new version of the package is available on flows
within one hour.