0.1.1 β€’ Published 9 months ago

nodered-node-incubator v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

Node-RED Project Incubator :egg:

Install :zap:

To install the CLI tool, execute the following command:

npm install -g nodered-node-incubator

Usage :rocket:

Once installed, you can use the tool with by executing the node-inq command:

node-inq --help
Usage: node-inq [options] [command]

Nodes Project Incubator for Node-RED πŸΌπŸ“¦

Options:
-V, --version       output the version number
-h, --help          display help for command

Commands:
  generate [options]  Node-RED project generation tool
  nodes               Node-RED incubated nodes tool
  help [command]      display help for command

Generating Projects :package:

To generate a new Node-RED project execute the following commmand:

node-inq generate --help
Usage: node-inq generate [options]

Generate Node-RED node project template πŸ₯š

Options:
  -i,--interactive           Enable interactive mode (default: false)
  -p, --project <directory>  Project directory
  -l, --license <type>       Project license (default: "MIT")
  -ts, --typescript          Generate typescript project (default: false)
  -e, --example              Import example node (default: false)
  -h, --help                 display help for command

Interactive :baby_chick:

It is highly recommened to use interactive mode to help you in the project generation process. Following is an example running the command:

node-inq generate --interactive
√ Enter project directory: ... node-red-contrib-example-project
√ Enter project author: ... Doth-J
√ Enter project description: ... Node-RED node generation example
√ Enter project license: ... ISC
√ Generate Typescript project: ... yes
√ Import template node: ... yes

πŸ₯š Generating Node-RED project:
  - Directory: /home/doth/node-red-contrib-example-project βœ”οΈ
  - Language set to "Typescript" βœ”οΈ
  - Created nodes directory! βœ”οΈ
  - Created "package.json"! βœ”οΈ
  - Imported example node! 🐣

πŸ“• Node-RED Incubator setup:
  - Installed required modules! βœ”οΈ
  - Created incubator server βœ”οΈ

πŸ“˜ Typescript setup:
  - Installed required ts modules! βœ”οΈ
  - Created "tsconfig.json"! βœ”οΈ

βœ… All done, project generated!
πŸ–– Let the Flow be with you

Command Line :scroll:

To use the command line tool, you only need to define the project option with the directory of the project as shown below:

node-inq generate --project ./example-project

πŸ₯š Generating Node-RED node project:
  - Directory: /home/doth/example-project βœ”οΈ
  - Language set to "Javascript" βœ”οΈ
  - Created nodes directory! βœ”οΈ
  - Created "package.json"! βœ”οΈ

πŸ“• Node-RED Incubator setup:
  - Installed required modules! βœ”οΈ
  - Created incubator server βœ”οΈ

βœ… All done, project generated!
πŸ–– Let the Flow be with you

Importing Incubated Nodes :hatching_chick:

To import incubated nodes, execute the following command:

node-inq nodes
√ Enter project directory: ... example-project
√ Available nodes list: » Multi-out, Template, Topic

🐣 Importing incubated Node-RED node(s):
  - Imported multi-out node! πŸ₯
  - Imported example node! πŸ₯
  - Imported topic node! πŸ₯

Incubator Server :baby_bottle:

The tool creates an incubator folder containing a minimal Node-RED setup to get you started. Execute the following command to spin up your incubator server and fast track the development of your nodes:

npm run dev

Change the setting.js file accordingly to your project needs.

Have fun developing your nodes! :star:

0.1.0

9 months ago

0.1.1

9 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6-ts

1 year ago

0.0.6

1 year ago

0.0.5-ts

1 year ago

0.0.5-t

1 year ago

0.0.4-t

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago