atticoos / gulp-ng-config

:wrench: Create AngularJS constants from a JSON config file
MIT License
173 stars 35 forks source link

Add 'pretty' option #26

Closed se-panfilov closed 9 years ago

se-panfilov commented 9 years ago

All constants now is a single line, but it's little bit hard to track changes in config if it little more deeper:

Json file:

 {
  "ACTIONS": {
    "list": {
      "click": {
        "description": "just a click",
        "params": {
          "some": null,
          "another": false
        }
      }
  ...
}

What we have now:

.constant('ACTIONS', {"list":{"click":{"description": "just a click","params":{"some": null,"another": false}}}})

What i'm expext:

.constant('ACTIONS', {
  "list": {
    "click": {
      "description": "just a click",
      "params": {
        "some": null,
        "another": false
      }
    },
se-panfilov commented 9 years ago

Added PR for this issue: https://github.com/ajwhite/gulp-ng-config/pull/27

atticoos commented 9 years ago

Closed in #27