If you don't need version control, I can understand that having all code in one file is easier. But node red already has the git integration in projects mode. Is there any good way of splitting flows.json into individual code files? Diffs are a pain and it would be a breeze to be able to synchronize particular flows or subflows across repos if having multiple files.
This has been requested many times:
- Formatted Function Node with separate JS files - #2 by knolleary
- Flows/*.json instead of flows.json? - #6 by knolleary
- Function Node exported json - #2 by knolleary
One promising (and simple) solution would be to support YAML format (as Nick says in the first link) but unfortunately, as of writing, no one has picked this up.
An option that would make diffs a little easier would be to enable the flowFilePretty
flag in settings.js. This will make JSON props much easier to compare (but function code will still be escaped unlike an equivalent YAML file format)
I once created a visual comparison between a flow in the flow editor and the flow on the server --> node-red-contrib-flowcompare (node) - Node-RED