2.0.16 • Published 7 months ago

@eslym/rs4r v2.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Rollup Svelte for RED

Build svelte for Node-RED with rollup, please check the example for usage.

This project is inspired by and compatible with svelte-integration-red, please check it out for svelte components.

Project Directory structure

  • package.json
  • rollup.config.js
  • src
    • nodes
      • {node-name}
        • index.{md,html} (node help)
        • index.svelte (node editor UI)
        • index.js (node main file)
    • lib (alias as $lib, only exists for back-end)
    • editor (alias as $editor, only exists for front-end)
    • shared (alias as $shared, exists for both)

Aliases

AliasPathDescription
$libsrc/libFor back-end, the directory contains all the files that will be bundled.
$editorsrc/editorFor front-end, the directory contains all the files that will be bundled.
$sharedsrc/sharedThe directory contains all the files that will be bundled for both.
$package.jsonpackage.jsonThe package.json file in the project root directory.
*?red-icon*Import as asset name, will auto output to icons directory.
*?red-res*Import as path for editor resource, the string will include the reousrces/${package.name}/ prefix

Important

This builder will auto discover all nodes in src/nodes directory, add add them into package.json in dist directorym, so anyone using this builder will need to publish the dist directory instead of the project root directory.

2.0.16

7 months ago

2.0.15

7 months ago

2.0.14

8 months ago

2.0.13

8 months ago

2.0.12

8 months ago

2.0.11

8 months ago

2.0.10

8 months ago

2.0.9

8 months ago

2.0.8

8 months ago

2.0.7

8 months ago

2.0.6

8 months ago

2.0.5

8 months ago

2.0.4

8 months ago

2.0.3

8 months ago

2.0.2

8 months ago

2.0.1

8 months ago

2.0.0

8 months ago

1.2.0-beta.3

8 months ago

1.2.0-beta.2

9 months ago

1.2.0-beta.1

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago

1.0.0-beta.1

9 months ago

1.0.0-beta.0

9 months ago