hassio-addons/addon-node-red

Possibility to use the flowFilePretty option? #804

jlo88 posted onGitHub

Problem/Motivation

Not really an issue but more a feature request. I'm struggling with version control of my flows everything is on one line and committing with git is possible but not very insightful. I've read about the flowFilePretty option but cannot find it in settings.js which tells me it is controlled by the add-on. Is there any way to make this setting available? I tried setting it in the add-on config but this had no effect.

Expected behavior

N/A

Actual behavior

N/A

Steps to reproduce

N/A

Proposed changes

Exposing the flowFilePretty option in the add-on config to allow for easier commits.


its in /config/node-red/ You can customize it to your liking.

posted by frenck about 4 years ago

I just wanted to add for other people that are looking for this that using the following in config/node-red/settings.js indeed allows for better formatting:

module.exports = {
    // To enabled pretty-printing of the flow within the flow file, set the following
    //  property to true:
    flowFilePretty: true,

I was a bit confused because I couldn't find the commented out variable and didn't know where to put it in the settings file. But I found an example settings file which showed this.

posted by jlo88 about 4 years ago

Fund this Issue

$0.00
Funded

Pull requests