Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Build source files into Node-RED nodes (alpha version)

License

Notifications You must be signed in to change notification settings

ivan-gerasimov-1/gulp-node-red

Repository files navigation

Gulp Node-RED

Build source files into Node-RED nodes

Installation

npm

$ npm install --save-exact gulp-node-red

Yarn

$ yarn add --exact gulp-node-red

Usage

Current version of the plugin allows to build Node-RED UI node from multiple HTML and JavaScript files into a single-file node format, required by Node-RED

Input

  > src
    > <node-name>
      > ui
        > <node-name>.js
        > <node-name>.html

Output

  > nodes
    > <node-name>
      > <node-name>.html

Output HTML file consists of the following sections

<script type="text/javascript"></script>

<script type="text/x-red" data-template-name="<node-name>">
  
</script>

Planned for next releases

  • Support styles (CSS)
  • Use bundler for JavaScipt (Parcel)
  • Provide configuration object
  • Add HTML minifier
  • Add CSS minifier
  • Allow to use SASS or LESS

About

Build source files into Node-RED nodes (alpha version)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published