// By default, collection.json is a Loose-format JSON5 format, which means it's loaded using a
// special loader and you can use comments, as well as single quotes or no-quotes for standard
// JavaScript identifiers.
// Note that this is only true for collection.json and it depends on the tooling itself.
// We read package.json using a require() call, which is standard JSON.
{
  // This is just to indicate to your IDE that there is a schema for collection.json.
  "$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",

  // Schematics are listed as a map of schematicName => schematicDescription.
  // Each description contains a description field which is required, a factory reference,
  // an extends field and a schema reference.
  // The extends field points to another schematic (either in the same collection or a
  // separate collection using the format collectionName:schematicName).
  // The factory is required, except when using the extends field. Then the factory can
  // overwrite the extended schematic factory.
  "schematics": {
    "my-schematic": {
      "description": "An example schematic",
      "factory": "../dist/my-schematic/index#mySchematic"
    },
    "my-other-schematic": {
      "description": "A schematic that uses another schematics.",
      "factory": "../dist/my-other-schematic"
    },
    "my-full-schematic": {
      "description": "A schematic using a source and a schema to validate options.",
      "factory": "../dist/my-full-schematic",
      "schema": "./my-full-schematic/schema.json"
    },
    "ng-add": {
      "description": "Adds Bagubagu schematic without affecting any templates.",
      "factory": "../dist/ng-add/index",
      "schema": "./ng-add/schema.json"
    },
    "table": {
      "description": "Create a component that diplays data from appsync with data-table",
      "factory": "../dist/table/index",
      "schema": "./table/schema.json",
      "aliases": ["bagubagu-table"]
    },
    "form": {
      "description": "Create a form component",
      "factory": "../dist/form/index",
      "schema": "./form/schema.json",
      "aliases": ["bagubagu-form"]
    },
    "service": {
      "description": "Create a service that handles data from appsync",
      "factory": "../dist/service/index",
      "schema": "./service/schema.json",
      "aliases": ["bagubagu-service"]
    },
    "pipe": {
      "description": "Create a pipe that handles data input",
      "factory": "../dist/pipe/index",
      "schema": "./pipe/schema.json",
      "aliases": ["bagubagu-pipe"]
    }
  }
}
