1 | {
|
2 | "$schema": "http://json-schema.org/schema",
|
3 | "id": "SchematicsAngularPipe",
|
4 | "title": "Angular Pipe Options Schema",
|
5 | "type": "object",
|
6 | "description": "Creates a new generic pipe definition in the given or default project.",
|
7 | "properties": {
|
8 | "name": {
|
9 | "type": "string",
|
10 | "description": "The name of the pipe.",
|
11 | "$default": {
|
12 | "$source": "argv",
|
13 | "index": 0
|
14 | },
|
15 | "x-prompt": "What name would you like to use for the pipe?"
|
16 | },
|
17 | "path": {
|
18 | "type": "string",
|
19 | "format": "path",
|
20 | "description": "The path at which to create the pipe, 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 pipe.",
|
38 | "default": false,
|
39 | "x-user-analytics": 12
|
40 | },
|
41 | "skipImport": {
|
42 | "type": "boolean",
|
43 | "default": false,
|
44 | "description": "When true, does not import this pipe into the owning NgModule.",
|
45 | "x-user-analytics": 18
|
46 | },
|
47 | "module": {
|
48 | "type": "string",
|
49 | "description": "The declaring NgModule.",
|
50 | "alias": "m"
|
51 | },
|
52 | "export": {
|
53 | "type": "boolean",
|
54 | "default": false,
|
55 | "description": "When true, the declaring NgModule exports this pipe.",
|
56 | "x-user-analytics": 19
|
57 | },
|
58 | "lintFix": {
|
59 | "type": "boolean",
|
60 | "default": false,
|
61 | "description": "When true, applies lint fixes after generating the pipe.",
|
62 | "x-user-analytics": 15
|
63 | }
|
64 | },
|
65 | "required": [
|
66 | "name"
|
67 | ]
|
68 | }
|