{
  "meta": {
    "title": "Generating graoJS Bundle"
  },
  "properties": {
    "schemas": {
      "description": "Schemas",
      "required": true
    }
  },
  "target": "./",
  "ignores": [
    "skeleton.json",
    "view/pug/select.pug",
    "view/pug/textarea.pug",
    "view/pug/input_text.pug",
    "view/pug/input_number.pug",
    "view/pug/input_radio.pug",
    "view/pug/input_email.pug",
    "view/pug/date.pug",
    "view/pug/input_checkbox.pug",
    "view/pug/input_url.pug",
    "view/pug/input_password.pug",
    "view/pug/field_macros.pug",
    "view/pug/currency.pug"
  ],
  "rewrites": {
    "view/pug/dashboard.pug": "bundles/{{bundle}}/view/{{schema | lower}}_dashboard.pug",
    "view/pug/dashboard_actions.pug": "bundles/{{bundle}}/view/{{schema | lower}}_dashboard_actions.pug",
    "view/pug/filter.pug": "bundles/{{bundle}}/view/{{schema | lower}}_filter.pug",
    "view/pug/list.pug": "bundles/{{bundle}}/view/{{schema | lower}}_list.pug",
    "view/pug/list_thumbnail.pug": "bundles/{{bundle}}/view/{{schema | lower}}_list_thumbnail.pug",
    "view/pug/form.pug": "bundles/{{bundle}}/view/{{schema | lower}}_form.pug",
    "view/pug/show.pug": "bundles/{{bundle}}/view/{{schema | lower}}_show.pug",
    "view/pug/fields.pug": "bundles/{{bundle}}/view/{{schema | lower}}_fields.pug",
    "view/pug/form_actions.pug": "bundles/{{bundle}}/view/{{schema | lower}}_form_actions.pug",
    "Controller.js": "bundles/{{bundle}}/{{schema | capitalize}}Controller.js",
    "public/js/PublicController.js": "bundles/{{bundle}}/public/js/{{schema | capitalize}}PublicController.js",
    "public/js/PublicFactory.js": "bundles/{{bundle}}/public/js/{{schema | capitalize}}PublicFactory.js",
    "Validator.js": "bundles/{{bundle}}/{{schema | capitalize}}Validator.js",
    "Model.js": "bundles/{{bundle}}/{{schema | capitalize}}.js",
    "Schema.js": "bundles/{{bundle}}/{{schema | capitalize}}Schema.js",
    "Route.js": "bundles/{{bundle}}/{{schema | capitalize}}Route.js",
    "config.js": "bundles/{{bundle}}/config.js"
  },
  "conditions": [
    {
      "matches": [
        "view/swig"
      ],
      "rules": [
        { "arg": "template-engine", "value": "swig" }
      ]
    },
    {
      "matches": [
        "view/pug"
      ],
      "rules": [
        { "arg": "template-engine", "value": "pug" }
      ]
    }
  ]
}
