{
  "$schema": "http://json-schema.org/schema",
  "id": "SchematicsAngularLibrary",
  "title": "Create a library",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Library name",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "What name would you like to use for the library?",
      "pattern": "^[a-zA-Z]{1}.*$"
    },
    "directory": {
      "type": "string",
      "description": "A directory where the lib is placed"
    },
    "publishable": {
      "type": "boolean",
      "default": false,
      "description": "Generate a publishable library."
    },
    "buildable": {
      "type": "boolean",
      "default": false,
      "description": "Generate a buildable library."
    },
    "prefix": {
      "type": "string",
      "format": "html-selector",
      "description": "The prefix to apply to generated selectors.",
      "alias": "p"
    },
    "skipFormat": {
      "description": "Skip formatting files",
      "type": "boolean",
      "default": false
    },
    "simpleModuleName": {
      "description": "Keep the module name simple (when using --directory)",
      "type": "boolean",
      "default": false
    },
    "addModuleSpec": {
      "description": "Add a module spec file.",
      "type": "boolean",
      "default": false
    },
    "skipPackageJson": {
      "type": "boolean",
      "default": false,
      "description": "Do not add dependencies to package.json."
    },
    "skipTsConfig": {
      "type": "boolean",
      "default": false,
      "description": "Do not update tsconfig.json for development experience."
    },
    "style": {
      "description": "The file extension to be used for style files.",
      "type": "string",
      "default": "css",
      "x-prompt": {
        "message": "Which stylesheet format would you like to use?",
        "type": "list",
        "items": [
          {
            "value": "css",
            "label": "CSS"
          },
          {
            "value": "scss",
            "label": "SASS(.scss)  [ http://sass-lang.com   ]"
          },
          {
            "value": "styl",
            "label": "Stylus(.styl)[ http://stylus-lang.com ]"
          },
          {
            "value": "less",
            "label": "LESS         [ http://lesscss.org     ]"
          }
        ]
      }
    },
    "routing": {
      "type": "boolean",
      "default": false,
      "description": "Add router configuration. See lazy for more information."
    },
    "lazy": {
      "type": "boolean",
      "default": false,
      "description": "Add RouterModule.forChild when set to true, and a simple array of routes when set to false."
    },
    "parentModule": {
      "type": "string",
      "description": "Update the router configuration of the parent module using loadChildren or children, depending on what `lazy` is set to."
    },
    "tags": {
      "type": "string",
      "description": "Add tags to the library (used for linting)"
    },
    "unitTestRunner": {
      "type": "string",
      "enum": ["karma", "jest", "none"],
      "description": "Test runner to use for unit tests",
      "default": "jest"
    },
    "importPath": {
      "type": "string",
      "description": "The library name used to import it, like @myorg/my-awesome-lib. Must be a valid npm name."
    },
    "strict": {
      "type": "boolean",
      "description": "Creates a library with stricter type checking and build optimization options.",
      "default": false
    },
    "linter": {
      "description": "The tool to use for running lint checks.",
      "type": "string",
      "enum": ["tslint", "eslint"],
      "default": "tslint"
    },
    "enableIvy": {
      "description": "Enable Ivy for library in tsconfig.lib.prod.json. Should not be used with publishable libraries.",
      "type": "boolean",
      "default": false
    }
  },
  "required": []
}
