I am trying to work on an RMMV project with multiple developers with the project stored in github.
We notice that since many of the json files that RMMV saves (e.g., data/System.json) are very compact and do not have line breaks, git has a lot of trouble generating readable diffs, merging, and resolving conflicts.
I would request that RMMV write out its JSON files in a prettier format (e.g., by using JSON.stringify(data, null, 4)).
As a work around, we wrote a simple cleaner script at https://github.com/cmdted/rmmv_tools/blob/master/src/cleanRMMV.js (see docs at https://github.com/cmdted/rmmv_tools/wiki/Setup#getting-sane-diffs) to help clean files before putting into git. Still, it would be better if RMMV just wrote nicer JSON output. If space is an issue the packaging process could always condense things, strip out line breaks and so on.
Feedback welcome on the cleaner script and the request in general.
Thanks.
We notice that since many of the json files that RMMV saves (e.g., data/System.json) are very compact and do not have line breaks, git has a lot of trouble generating readable diffs, merging, and resolving conflicts.
I would request that RMMV write out its JSON files in a prettier format (e.g., by using JSON.stringify(data, null, 4)).
As a work around, we wrote a simple cleaner script at https://github.com/cmdted/rmmv_tools/blob/master/src/cleanRMMV.js (see docs at https://github.com/cmdted/rmmv_tools/wiki/Setup#getting-sane-diffs) to help clean files before putting into git. Still, it would be better if RMMV just wrote nicer JSON output. If space is an issue the packaging process could always condense things, strip out line breaks and so on.
Feedback welcome on the cleaner script and the request in general.
Thanks.