UNPKG

4.26 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/schema",
3 "id": "SchematicsAngularApp",
4 "title": "Angular Application Options Schema",
5 "type": "object",
6 "description": "Generates a new basic app definition in the \"projects\" subfolder of the workspace.",
7 "properties": {
8 "projectRoot": {
9 "description": "The root directory of the new app.",
10 "type": "string",
11 "visible": false
12 },
13 "name": {
14 "description": "The name of the new app.",
15 "type": "string",
16 "$default": {
17 "$source": "argv",
18 "index": 0
19 },
20 "x-prompt": "What name would you like to use for the application?"
21 },
22 "inlineStyle": {
23 "description": "When true, includes styles inline in the root component.ts file. Only CSS styles can be included inline. Default is false, meaning that an external styles file is created and referenced in the root component.ts file.",
24 "type": "boolean",
25 "default": false,
26 "alias": "s",
27 "x-user-analytics": 9
28 },
29 "inlineTemplate": {
30 "description": "When true, includes template inline in the root component.ts file. Default is false, meaning that an external template file is created and referenced in the root component.ts file. ",
31 "type": "boolean",
32 "default": false,
33 "alias": "t",
34 "x-user-analytics": 10
35 },
36 "viewEncapsulation": {
37 "description": "The view encapsulation strategy to use in the new app.",
38 "enum": ["Emulated", "Native", "None", "ShadowDom"],
39 "type": "string",
40 "x-user-analytics": 11
41 },
42 "routing": {
43 "type": "boolean",
44 "description": "When true, creates a routing NgModule.",
45 "default": false,
46 "x-prompt": "Would you like to add Angular routing?",
47 "x-user-analytics": 17
48 },
49 "prefix": {
50 "type": "string",
51 "format": "html-selector",
52 "description": "A prefix to apply to generated selectors.",
53 "default": "app",
54 "alias": "p"
55 },
56 "style": {
57 "description": "The file extension or preprocessor to use for style files.",
58 "type": "string",
59 "default": "css",
60 "enum": [
61 "css",
62 "scss",
63 "sass",
64 "less",
65 "styl"
66 ],
67 "x-prompt": {
68 "message": "Which stylesheet format would you like to use?",
69 "type": "list",
70 "items": [
71 { "value": "css", "label": "CSS" },
72 { "value": "scss", "label": "SCSS [ https://sass-lang.com/documentation/syntax#scss ]" },
73 { "value": "sass", "label": "Sass [ https://sass-lang.com/documentation/syntax#the-indented-syntax ]" },
74 { "value": "less", "label": "Less [ http://lesscss.org ]" },
75 { "value": "styl", "label": "Stylus [ http://stylus-lang.com ]" }
76 ]
77 },
78 "x-user-analytics": 5
79 },
80 "skipTests": {
81 "description": "When true, does not create \"spec.ts\" test files for the app.",
82 "type": "boolean",
83 "default": false,
84 "alias": "S",
85 "x-user-analytics": 12
86 },
87 "skipPackageJson": {
88 "type": "boolean",
89 "default": false,
90 "description": "When true, does not add dependencies to the \"package.json\" file."
91 },
92 "minimal": {
93 "description": "When true, creates a bare-bones project without any testing frameworks. (Use for learning purposes only.)",
94 "type": "boolean",
95 "default": false,
96 "x-user-analytics": 14
97 },
98 "skipInstall": {
99 "description": "Skip installing dependency packages.",
100 "type": "boolean",
101 "default": false
102 },
103 "lintFix": {
104 "type": "boolean",
105 "default": false,
106 "description": "When true, applies lint fixes after generating the application.",
107 "x-user-analytics": 15
108 },
109 "strict": {
110 "description": "Creates an application with stricter build optimization options.",
111 "type": "boolean",
112 "default": false
113 },
114 "legacyBrowsers": {
115 "type": "boolean",
116 "description": "Add support for legacy browsers like Internet Explorer using differential loading.",
117 "default": false
118 }
119 },
120 "required": [
121 "name"
122 ]
123}