UNPKG

@ngneat/spectator

Version:

A powerful tool to simplify your Angular tests

55 lines (54 loc) 1.52 kB
{ "$schema": "http://json-schema.org/schema", "$id": "SpectatorSchematicsAngularService", "title": "Angular Service with Spectator spec Options Schema", "type": "object", "description": "Creates a new, generic service definition in the given or default project.", "properties": { "name": { "type": "string", "description": "The name of the service.", "$default": { "$source": "argv", "index": 0 }, "x-prompt": "What name would you like to use for the service?" }, "path": { "type": "string", "format": "path", "description": "The path at which to create the service, relative to the workspace root.", "visible": false }, "project": { "type": "string", "description": "The name of the project.", "$default": { "$source": "projectName" } }, "flat": { "type": "boolean", "default": true, "description": "When true (the default), creates files at the top level of the project." }, "skipTests": { "type": "boolean", "description": "When true, does not create \"spec.ts\" test files for the new service.", "default": false }, "isDataService": { "type": "boolean", "default": false, "description": "When true, generate specs for data service" }, "jest": { "type": "boolean", "default": false, "description": "When true, uses Jest to create mocks." } }, "required": [ "name" ] }