All Projects → alexk111 → node-red-node-typescript-starter

alexk111 / node-red-node-typescript-starter

Licence: MIT license
🏁 Quick-start template repository for creating new Node-RED node sets in TypeScript.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
typescript
32286 projects

Projects that are alternatives of or similar to node-red-node-typescript-starter

starter-kit
🏃 A simple and powerful Starter Kit made with Webpack, Gulp 4, Pug and SASS
Stars: ✭ 21 (-67.19%)
Mutual labels:  starter
node-red-contrib-discord
Node-red nodes that allow you to interact with Discord.
Stars: ✭ 15 (-76.56%)
Mutual labels:  node-red
vital
Starter template for Vite with React (TypeScript). Supports Tailwind with CSS-Modules. Jest and @react/testing-library configured and ready to go. Also ESLint, Prettier, Husky, Commit-lint and Atomic Design for components.
Stars: ✭ 151 (+135.94%)
Mutual labels:  starter
spring-boot-starter-smpp
Spring boot starter to send SMS via SMPP
Stars: ✭ 25 (-60.94%)
Mutual labels:  starter
vue-component-lib-starter
A bare-bones example of creating your own Vue component library.
Stars: ✭ 221 (+245.31%)
Mutual labels:  starter
node-red-contrib-polymer
A Polymer based Dashboard UI for Node-RED
Stars: ✭ 21 (-67.19%)
Mutual labels:  node-red
nextjs-semantic
Next.js + Fomantic-UI + Styled Components
Stars: ✭ 68 (+6.25%)
Mutual labels:  starter
material2-admin
Angular - Material2 - Redux - Flex - Admin Example - Starter
Stars: ✭ 13 (-79.69%)
Mutual labels:  starter
playground-for-beaver-themer
Simple bare-bone WordPress theme for Beaver Themer plugin.
Stars: ✭ 16 (-75%)
Mutual labels:  starter
browser-extension
Browser Extension Template with ESbuild builds, support for React, Preact, Typescript, Tailwind, Manifest V3/V2 support and multi browser build including Chrome, Firefox, Safari, Edge, Brave.
Stars: ✭ 535 (+735.94%)
Mutual labels:  starter
react-redux-nextjs-bootstrap-starter
next + react + redux + bootstrap starter
Stars: ✭ 24 (-62.5%)
Mutual labels:  starter
nextjs-landing-starter
Build your landing site based on Next.JS in minutes 🚀
Stars: ✭ 59 (-7.81%)
Mutual labels:  starter
gatsbyjs-starter-tailwindplay
GatsbyJS Tailwind Starter - TailwindPlay
Stars: ✭ 69 (+7.81%)
Mutual labels:  starter
theme-collection
A collection of themes for Node-RED
Stars: ✭ 43 (-32.81%)
Mutual labels:  node-red
frontenso-11ty-starter
Production-ready 11ty+Gulp+Webpack Starter that features Nunjucks, SASS, TailwindCSS (with JIT complier), and ESNext.
Stars: ✭ 24 (-62.5%)
Mutual labels:  starter
node-red-contrib-sonospollytts
Play speech TTS using Sonos.
Stars: ✭ 11 (-82.81%)
Mutual labels:  node-red
create-next-stack
Create Next Stack is a website and CLI tool used to easily set up the boilerplate of new Next.js apps.
Stars: ✭ 149 (+132.81%)
Mutual labels:  starter
vividus-starter
VIVIDUS-based test project template
Stars: ✭ 43 (-32.81%)
Mutual labels:  starter
create-react-app-starter
CRA + typeless starter
Stars: ✭ 21 (-67.19%)
Mutual labels:  starter
twitch-extension-starter
Kickstarts your Twitch Extension using React
Stars: ✭ 38 (-40.62%)
Mutual labels:  starter

Node-RED Node TypeScript Starter

This is a quick-start template repository for creating new Node-RED node sets in TypeScript.

Project Structure

node-red-node-typescript-starter/
 ├──src/                             * source files of the node set
 │   ├──__tests__/                   * tests for the node set (test file names should match *.test.ts glob pattern)
 │   │   └──transform-text.test.ts   * tests for the transform-text node
 │   │
 │   └──nodes/                       * node set folder, where subfolder names = node types
 │       ├──shared/                  * folder for .ts files shared across multiple nodes in the node set
 │       │
 │       └──transform-text/          * source files of the transform-text node
 │           ├──icons/               * custom icons used by the node set in the editor
 │           │
 │           ├──modules/             * .ts modules for the runtime side (transform-text.js file) of the node
 │           │
 │           ├──shared/              * folder for .ts files shared between the runtime side (.js file) and the editor side (.html file) of the node
 │           │
 │           ├──transform-text.html/ * files for compiling and bundling into the editor side (transform-text.html file) of the node
 │           │   ├──modules/         * .ts modules
 │           │   ├──editor.html      * html template for the edit dialog
 │           │   ├──help.html        * html template for the help in the info tab
 │           │   └──index.ts         * entry file
 │           │
 |           └──transform-text.ts    * entry file for the runtime side (transform-text.js file) of the node
 |
 ├──package.json                     * dependencies and node types for the Node-RED runtime to load
 |
 ├──rollup.config.editor.json        * rollup config for building the editor side of the nodes
 |
 ├──tsconfig.json                    * base typescript config, for the code editor
 ├──tsconfig.runtime.json            * config for creating a production build of the runtime side of the nodes
 └──tsconfig.runtime.watch.json      * config for watching and incremental building the runtime side of the nodes

Getting Started

  1. Generate a new GitHub repository by clicking the Use this template button at the top of the repository homepage, then clone your new repo. Or you might just clone this repo: git clone https://github.com/alexk111/node-red-node-typescript-starter.git and cd into it: cd node-red-node-typescript-starter.
  2. This project is designed to work with yarn. If you don't have yarn installed, you can install it with npm install -g yarn.
  3. Install dependencies: yarn install.

Adding Nodes

You can quickly scaffold a new node and add it to the node set. Use the following command to create my-new-node-type node:

yarn add-node my-new-node-type

The node generator is based on mustache templates. At the moment there are three templates available:

  • blank (used by default) - basic node for Node-RED >=1.0
  • blank-0 - node with a backward compatibility for running on Node-RED <1.0
  • config - configuration node

To generate a node using a template, specify it as the third argument:

yarn add-node my-new-node-type blank

or

yarn add-node my-new-node-config config

Adding Node Templates

If you want to make your own template available, add it to ./utils/templates/.

Developing Nodes

Build & Test in Watch mode:

yarn dev

Building Node Set

Create a production build:

yarn build

Backers 💝

[Become a backer]

Backer Backer Backer Backer Backer Backer Backer Backer Backer Backer

Testing Node Set in Node-RED

Read Node-RED docs on how to install the node set into your Node-RED runtime.

License

MIT © Alex Kaul

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].