[ 
https://issues.apache.org/jira/browse/CB-5882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adam George updated CB-5882:
----------------------------

    Description: 
When adding new plugins, or modifying a plugin (such that the plugin may have 
new permissions, or new files to copy), the ios.json and android.json plugin 
files are modified/updated.

The problem with that is the json contents is not formatted, and appears as one 
long line of text.

I run `git diff` and I can't see what changed. It's quite annoying.

I'm currently putting these files into version control.  Maybe in the future 
when the CLI is more mature, I can treat them like build artefacts and 
git-ignore them, but for now I need to keep them, so they really need to be 
more readable.

Is it possible to format the json data before writing the file?

  was:
When adding new plugins, or modifying a plugin (such that the plugin may have 
new permissions, or new files to copy), the ios.json and android.json plugin 
files are modified/updated.

The problem with that the json contents is not formatted, and appears as one 
long line of text.

I run `git diff` and I can't see what changed. It's quite annoying.

I'm currently putting these files into version control.  Maybe in the future 
when the CLI is more mature, I can treat them like build artefacts and 
git-ignore them, but for now I need to keep them, so they really need to be 
more readable.

Is it possible to format the json data before writing the file?


> Format android.json and ios.json (plugins directory) - currently they have no 
> line breaks / indentation
> -------------------------------------------------------------------------------------------------------
>
>                 Key: CB-5882
>                 URL: https://issues.apache.org/jira/browse/CB-5882
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.3.0
>            Reporter: Adam George
>            Priority: Minor
>
> When adding new plugins, or modifying a plugin (such that the plugin may have 
> new permissions, or new files to copy), the ios.json and android.json plugin 
> files are modified/updated.
> The problem with that is the json contents is not formatted, and appears as 
> one long line of text.
> I run `git diff` and I can't see what changed. It's quite annoying.
> I'm currently putting these files into version control.  Maybe in the future 
> when the CLI is more mature, I can treat them like build artefacts and 
> git-ignore them, but for now I need to keep them, so they really need to be 
> more readable.
> Is it possible to format the json data before writing the file?



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to