UNPKG

1.43 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/schema",
3 "id": "SchematicsAngularService",
4 "title": "Angular Service Options Schema",
5 "type": "object",
6 "description": "Creates a new, generic service definition in the given or default project.",
7 "properties": {
8 "name": {
9 "type": "string",
10 "description": "The name of the service.",
11 "$default": {
12 "$source": "argv",
13 "index": 0
14 },
15 "x-prompt": "What name would you like to use for the service?"
16 },
17 "path": {
18 "type": "string",
19 "format": "path",
20 "description": "The path at which to create the service, relative to the workspace root.",
21 "visible": false
22 },
23 "project": {
24 "type": "string",
25 "description": "The name of the project.",
26 "$default": {
27 "$source": "projectName"
28 }
29 },
30 "flat": {
31 "type": "boolean",
32 "default": true,
33 "description": "When true (the default), creates files at the top level of the project."
34 },
35 "skipTests": {
36 "type": "boolean",
37 "description": "When true, does not create \"spec.ts\" test files for the new service.",
38 "default": false,
39 "x-user-analytics": 12
40 },
41 "lintFix": {
42 "type": "boolean",
43 "default": false,
44 "description": "When true, applies lint fixes after generating the service.",
45 "x-user-analytics": 15
46 }
47 },
48 "required": ["name"]
49}