UNPKG

1.95 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/draft-07/schema",
3 "$id": "SchematicsLibrary",
4 "title": "Library Options Schema",
5 "type": "object",
6 "description": "Creates a new, generic library project in the current workspace.",
7 "additionalProperties": false,
8 "properties": {
9 "name": {
10 "type": "string",
11 "description": "The name of the library.",
12 "pattern": "^(?:@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*/)?[a-zA-Z0-9-~][a-zA-Z0-9-._~]*$",
13 "$default": {
14 "$source": "argv",
15 "index": 0
16 },
17 "x-prompt": "What name would you like to use for the library?"
18 },
19 "entryFile": {
20 "type": "string",
21 "format": "path",
22 "description": "The path at which to create the library's public API file, relative to the workspace root.",
23 "default": "public-api"
24 },
25 "prefix": {
26 "type": "string",
27 "format": "html-selector",
28 "description": "A prefix to apply to generated selectors.",
29 "default": "lib",
30 "alias": "p"
31 },
32 "skipPackageJson": {
33 "type": "boolean",
34 "default": false,
35 "description": "Do not add dependencies to the \"package.json\" file. "
36 },
37 "skipInstall": {
38 "description": "Do not install dependency packages.",
39 "type": "boolean",
40 "default": false
41 },
42 "skipTsConfig": {
43 "type": "boolean",
44 "default": false,
45 "description": "Do not update \"tsconfig.json\" to add a path mapping for the new library. The path mapping is needed to use the library in an app, but can be disabled here to simplify development."
46 },
47 "projectRoot": {
48 "type": "string",
49 "description": "The root directory of the new library."
50 },
51 "standalone": {
52 "description": "Creates a library based upon the standalone API, without NgModules.",
53 "type": "boolean",
54 "default": true,
55 "x-user-analytics": "ep.ng_standalone"
56 }
57 },
58 "required": ["name"]
59}