@schematics/angular 11.0.3 → 11.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/application/schema.d.ts +11 -12
- package/application/schema.json +7 -7
- package/class/schema.d.ts +2 -2
- package/class/schema.json +2 -2
- package/collection.json +6 -6
- package/component/schema.d.ts +10 -11
- package/component/schema.json +8 -8
- package/directive/schema.d.ts +4 -4
- package/directive/schema.json +4 -4
- package/enum/schema.d.ts +1 -1
- package/enum/schema.json +1 -1
- package/guard/schema.d.ts +2 -2
- package/guard/schema.json +2 -2
- package/interceptor/schema.d.ts +2 -2
- package/interceptor/schema.json +2 -2
- package/interface/schema.d.ts +1 -1
- package/interface/schema.json +1 -1
- package/library/schema.d.ts +5 -6
- package/library/schema.json +4 -4
- package/module/schema.d.ts +4 -4
- package/module/schema.json +4 -4
- package/ng-new/schema.d.ts +13 -15
- package/ng-new/schema.json +9 -9
- package/package.json +3 -3
- package/pipe/schema.d.ts +4 -4
- package/pipe/schema.json +4 -4
- package/resolver/schema.d.ts +1 -1
- package/resolver/schema.json +1 -1
- package/service/schema.d.ts +2 -2
- package/service/schema.json +2 -2
- package/universal/schema.d.ts +1 -1
- package/universal/schema.json +1 -1
- package/utility/ast-utils.js +1 -2
- package/utility/json-file.js +1 -1
- package/utility/latest-versions.js +4 -4
- package/workspace/files/package.json.template +4 -4
- package/workspace/schema.d.ts +2 -3
- package/workspace/schema.json +2 -2
package/application/schema.d.ts
CHANGED
|
@@ -3,15 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface Schema {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Include styles inline in the root component.ts file. Only CSS styles can be included
|
|
7
|
+
* inline. Default is false, meaning that an external styles file is created and referenced
|
|
8
|
+
* in the root component.ts file.
|
|
9
9
|
*/
|
|
10
10
|
inlineStyle?: boolean;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* file.
|
|
12
|
+
* Include template inline in the root component.ts file. Default is false, meaning that an
|
|
13
|
+
* external template file is created and referenced in the root component.ts file.
|
|
15
14
|
*/
|
|
16
15
|
inlineTemplate?: boolean;
|
|
17
16
|
/**
|
|
@@ -19,13 +18,13 @@ export interface Schema {
|
|
|
19
18
|
*/
|
|
20
19
|
legacyBrowsers?: boolean;
|
|
21
20
|
/**
|
|
22
|
-
*
|
|
21
|
+
* Apply lint fixes after generating the application.
|
|
23
22
|
* @deprecated Use "ng lint --fix" directly instead.
|
|
24
23
|
*/
|
|
25
24
|
lintFix?: boolean;
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* Create a bare-bones project without any testing frameworks. (Use for learning purposes
|
|
27
|
+
* only.)
|
|
29
28
|
*/
|
|
30
29
|
minimal?: boolean;
|
|
31
30
|
/**
|
|
@@ -41,7 +40,7 @@ export interface Schema {
|
|
|
41
40
|
*/
|
|
42
41
|
projectRoot?: string;
|
|
43
42
|
/**
|
|
44
|
-
*
|
|
43
|
+
* Create a routing NgModule.
|
|
45
44
|
*/
|
|
46
45
|
routing?: boolean;
|
|
47
46
|
/**
|
|
@@ -49,11 +48,11 @@ export interface Schema {
|
|
|
49
48
|
*/
|
|
50
49
|
skipInstall?: boolean;
|
|
51
50
|
/**
|
|
52
|
-
*
|
|
51
|
+
* Do not add dependencies to the "package.json" file.
|
|
53
52
|
*/
|
|
54
53
|
skipPackageJson?: boolean;
|
|
55
54
|
/**
|
|
56
|
-
*
|
|
55
|
+
* Do not create "spec.ts" test files for the application.
|
|
57
56
|
*/
|
|
58
57
|
skipTests?: boolean;
|
|
59
58
|
/**
|
package/application/schema.json
CHANGED
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"x-prompt": "What name would you like to use for the application?"
|
|
21
21
|
},
|
|
22
22
|
"inlineStyle": {
|
|
23
|
-
"description": "
|
|
23
|
+
"description": "Include 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
24
|
"type": "boolean",
|
|
25
25
|
"alias": "s",
|
|
26
26
|
"x-user-analytics": 9
|
|
27
27
|
},
|
|
28
28
|
"inlineTemplate": {
|
|
29
|
-
"description": "
|
|
29
|
+
"description": "Include 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. ",
|
|
30
30
|
"type": "boolean",
|
|
31
31
|
"alias": "t",
|
|
32
32
|
"x-user-analytics": 10
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"routing": {
|
|
41
41
|
"type": "boolean",
|
|
42
|
-
"description": "
|
|
42
|
+
"description": "Create a routing NgModule.",
|
|
43
43
|
"default": false,
|
|
44
44
|
"x-prompt": "Would you like to add Angular routing?",
|
|
45
45
|
"x-user-analytics": 17
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"x-user-analytics": 5
|
|
77
77
|
},
|
|
78
78
|
"skipTests": {
|
|
79
|
-
"description": "
|
|
79
|
+
"description": "Do not create \"spec.ts\" test files for the application.",
|
|
80
80
|
"type": "boolean",
|
|
81
81
|
"default": false,
|
|
82
82
|
"alias": "S",
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
"skipPackageJson": {
|
|
86
86
|
"type": "boolean",
|
|
87
87
|
"default": false,
|
|
88
|
-
"description": "
|
|
88
|
+
"description": "Do not add dependencies to the \"package.json\" file."
|
|
89
89
|
},
|
|
90
90
|
"minimal": {
|
|
91
|
-
"description": "
|
|
91
|
+
"description": "Create a bare-bones project without any testing frameworks. (Use for learning purposes only.)",
|
|
92
92
|
"type": "boolean",
|
|
93
93
|
"default": false,
|
|
94
94
|
"x-user-analytics": 14
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
},
|
|
101
101
|
"lintFix": {
|
|
102
102
|
"type": "boolean",
|
|
103
|
-
"description": "
|
|
103
|
+
"description": "Apply lint fixes after generating the application.",
|
|
104
104
|
"x-user-analytics": 15,
|
|
105
105
|
"x-deprecated": "Use \"ng lint --fix\" directly instead."
|
|
106
106
|
},
|
package/class/schema.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface Schema {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Apply lint fixes after generating the class.
|
|
7
7
|
* @deprecated Use "ng lint --fix" directly instead.
|
|
8
8
|
*/
|
|
9
9
|
lintFix?: boolean;
|
|
@@ -20,7 +20,7 @@ export interface Schema {
|
|
|
20
20
|
*/
|
|
21
21
|
project?: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Do not create "spec.ts" test files for the new class.
|
|
24
24
|
*/
|
|
25
25
|
skipTests?: boolean;
|
|
26
26
|
/**
|
package/class/schema.json
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"skipTests": {
|
|
31
31
|
"type": "boolean",
|
|
32
|
-
"description": "
|
|
32
|
+
"description": "Do not create \"spec.ts\" test files for the new class.",
|
|
33
33
|
"default": false,
|
|
34
34
|
"x-user-analytics": 12
|
|
35
35
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"lintFix": {
|
|
42
42
|
"type": "boolean",
|
|
43
43
|
"default": false,
|
|
44
|
-
"description": "
|
|
44
|
+
"description": "Apply lint fixes after generating the class.",
|
|
45
45
|
"x-user-analytics": 15,
|
|
46
46
|
"x-deprecated": "Use \"ng lint --fix\" directly instead."
|
|
47
47
|
}
|
package/collection.json
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"description": "Create an Angular workspace.",
|
|
13
13
|
"hidden": true
|
|
14
14
|
},
|
|
15
|
-
"
|
|
16
|
-
"aliases": [ "
|
|
15
|
+
"service-worker": {
|
|
16
|
+
"aliases": [ "serviceWorker" ],
|
|
17
17
|
"factory": "./service-worker",
|
|
18
18
|
"description": "Initializes a service worker setup.",
|
|
19
19
|
"schema": "./service-worker/schema.json"
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"schema": "./universal/schema.json",
|
|
102
102
|
"hidden": true
|
|
103
103
|
},
|
|
104
|
-
"
|
|
105
|
-
"aliases": [ "
|
|
104
|
+
"app-shell": {
|
|
105
|
+
"aliases": [ "appShell" ],
|
|
106
106
|
"factory": "./app-shell",
|
|
107
107
|
"description": "Create an app shell.",
|
|
108
108
|
"schema": "./app-shell/schema.json"
|
|
@@ -113,8 +113,8 @@
|
|
|
113
113
|
"schema": "./library/schema.json",
|
|
114
114
|
"description": "Generate a library project for Angular."
|
|
115
115
|
},
|
|
116
|
-
"
|
|
117
|
-
"aliases": ["
|
|
116
|
+
"web-worker": {
|
|
117
|
+
"aliases": ["webWorker"],
|
|
118
118
|
"factory": "./web-worker",
|
|
119
119
|
"schema": "./web-worker/schema.json",
|
|
120
120
|
"description": "Create a Web Worker."
|
package/component/schema.d.ts
CHANGED
|
@@ -11,31 +11,30 @@ export interface Schema {
|
|
|
11
11
|
*/
|
|
12
12
|
displayBlock?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* The new component is the entry component of the declaring NgModule.
|
|
15
15
|
* @deprecated Since version 9.0.0 with Ivy, entryComponents is no longer necessary.
|
|
16
16
|
*/
|
|
17
17
|
entryComponent?: boolean;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* The declaring NgModule exports this component.
|
|
20
20
|
*/
|
|
21
21
|
export?: boolean;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Create the new files at the top level of the current project.
|
|
24
24
|
*/
|
|
25
25
|
flat?: boolean;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* component.ts file.
|
|
27
|
+
* Include styles inline in the component.ts file. Only CSS styles can be included inline.
|
|
28
|
+
* By default, an external styles file is created and referenced in the component.ts file.
|
|
30
29
|
*/
|
|
31
30
|
inlineStyle?: boolean;
|
|
32
31
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
32
|
+
* Include template inline in the component.ts file. By default, an external template file
|
|
33
|
+
* is created and referenced in the component.ts file.
|
|
35
34
|
*/
|
|
36
35
|
inlineTemplate?: boolean;
|
|
37
36
|
/**
|
|
38
|
-
*
|
|
37
|
+
* Apply lint fixes after generating the component.
|
|
39
38
|
* @deprecated Use "ng lint --fix" directly instead.
|
|
40
39
|
*/
|
|
41
40
|
lintFix?: boolean;
|
|
@@ -65,7 +64,7 @@ export interface Schema {
|
|
|
65
64
|
*/
|
|
66
65
|
selector?: string;
|
|
67
66
|
/**
|
|
68
|
-
*
|
|
67
|
+
* Do not import this component into the owning NgModule.
|
|
69
68
|
*/
|
|
70
69
|
skipImport?: boolean;
|
|
71
70
|
/**
|
|
@@ -73,7 +72,7 @@ export interface Schema {
|
|
|
73
72
|
*/
|
|
74
73
|
skipSelector?: boolean;
|
|
75
74
|
/**
|
|
76
|
-
*
|
|
75
|
+
* Do not create "spec.ts" test files for the new component.
|
|
77
76
|
*/
|
|
78
77
|
skipTests?: boolean;
|
|
79
78
|
/**
|
package/component/schema.json
CHANGED
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"alias": "b"
|
|
35
35
|
},
|
|
36
36
|
"inlineStyle": {
|
|
37
|
-
"description": "
|
|
37
|
+
"description": "Include styles inline in the component.ts file. Only CSS styles can be included inline. By default, an external styles file is created and referenced in the component.ts file.",
|
|
38
38
|
"type": "boolean",
|
|
39
39
|
"default": false,
|
|
40
40
|
"alias": "s",
|
|
41
41
|
"x-user-analytics": 9
|
|
42
42
|
},
|
|
43
43
|
"inlineTemplate": {
|
|
44
|
-
"description": "
|
|
44
|
+
"description": "Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.",
|
|
45
45
|
"type": "boolean",
|
|
46
46
|
"default": false,
|
|
47
47
|
"alias": "t",
|
|
@@ -95,18 +95,18 @@
|
|
|
95
95
|
},
|
|
96
96
|
"skipTests": {
|
|
97
97
|
"type": "boolean",
|
|
98
|
-
"description": "
|
|
98
|
+
"description": "Do not create \"spec.ts\" test files for the new component.",
|
|
99
99
|
"default": false,
|
|
100
100
|
"x-user-analytics": 12
|
|
101
101
|
},
|
|
102
102
|
"flat": {
|
|
103
103
|
"type": "boolean",
|
|
104
|
-
"description": "
|
|
104
|
+
"description": "Create the new files at the top level of the current project.",
|
|
105
105
|
"default": false
|
|
106
106
|
},
|
|
107
107
|
"skipImport": {
|
|
108
108
|
"type": "boolean",
|
|
109
|
-
"description": "
|
|
109
|
+
"description": "Do not import this component into the owning NgModule.",
|
|
110
110
|
"default": false,
|
|
111
111
|
"x-user-analytics": 18
|
|
112
112
|
},
|
|
@@ -128,18 +128,18 @@
|
|
|
128
128
|
"export": {
|
|
129
129
|
"type": "boolean",
|
|
130
130
|
"default": false,
|
|
131
|
-
"description": "
|
|
131
|
+
"description": "The declaring NgModule exports this component.",
|
|
132
132
|
"x-user-analytics": 19
|
|
133
133
|
},
|
|
134
134
|
"entryComponent": {
|
|
135
135
|
"type": "boolean",
|
|
136
136
|
"default": false,
|
|
137
|
-
"description": "
|
|
137
|
+
"description": "The new component is the entry component of the declaring NgModule.",
|
|
138
138
|
"x-deprecated": "Since version 9.0.0 with Ivy, entryComponents is no longer necessary."
|
|
139
139
|
},
|
|
140
140
|
"lintFix": {
|
|
141
141
|
"type": "boolean",
|
|
142
|
-
"description": "
|
|
142
|
+
"description": "Apply lint fixes after generating the component.",
|
|
143
143
|
"x-user-analytics": 15,
|
|
144
144
|
"x-deprecated": "Use \"ng lint --fix\" directly instead."
|
|
145
145
|
}
|
package/directive/schema.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface Schema {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* The declaring NgModule exports this directive.
|
|
7
7
|
*/
|
|
8
8
|
export?: boolean;
|
|
9
9
|
/**
|
|
@@ -11,7 +11,7 @@ export interface Schema {
|
|
|
11
11
|
*/
|
|
12
12
|
flat?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Apply lint fixes after generating the directive.
|
|
15
15
|
* @deprecated Use "ng lint --fix" directly instead.
|
|
16
16
|
*/
|
|
17
17
|
lintFix?: boolean;
|
|
@@ -41,11 +41,11 @@ export interface Schema {
|
|
|
41
41
|
*/
|
|
42
42
|
selector?: string;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Do not import this directive into the owning NgModule.
|
|
45
45
|
*/
|
|
46
46
|
skipImport?: boolean;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Do not create "spec.ts" test files for the new class.
|
|
49
49
|
*/
|
|
50
50
|
skipTests?: boolean;
|
|
51
51
|
}
|
package/directive/schema.json
CHANGED
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
},
|
|
44
44
|
"skipTests": {
|
|
45
45
|
"type": "boolean",
|
|
46
|
-
"description": "
|
|
46
|
+
"description": "Do not create \"spec.ts\" test files for the new class.",
|
|
47
47
|
"default": false,
|
|
48
48
|
"x-user-analytics": 12
|
|
49
49
|
},
|
|
50
50
|
"skipImport": {
|
|
51
51
|
"type": "boolean",
|
|
52
|
-
"description": "
|
|
52
|
+
"description": "Do not import this directive into the owning NgModule.",
|
|
53
53
|
"default": false,
|
|
54
54
|
"x-user-analytics": 18
|
|
55
55
|
},
|
|
@@ -71,12 +71,12 @@
|
|
|
71
71
|
"export": {
|
|
72
72
|
"type": "boolean",
|
|
73
73
|
"default": false,
|
|
74
|
-
"description": "
|
|
74
|
+
"description": "The declaring NgModule exports this directive.",
|
|
75
75
|
"x-user-analytics": 19
|
|
76
76
|
},
|
|
77
77
|
"lintFix": {
|
|
78
78
|
"type": "boolean",
|
|
79
|
-
"description": "
|
|
79
|
+
"description": "Apply lint fixes after generating the directive.",
|
|
80
80
|
"x-user-analytics": 15,
|
|
81
81
|
"x-deprecated": "Use \"ng lint --fix\" directly instead."
|
|
82
82
|
}
|
package/enum/schema.d.ts
CHANGED
package/enum/schema.json
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"lintFix": {
|
|
31
31
|
"type": "boolean",
|
|
32
|
-
"description": "
|
|
32
|
+
"description": "Apply lint fixes after generating the enum.",
|
|
33
33
|
"x-user-analytics": 15,
|
|
34
34
|
"x-deprecated": "Use \"ng lint --fix\" directly instead."
|
|
35
35
|
}
|
package/guard/schema.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface Schema {
|
|
|
11
11
|
*/
|
|
12
12
|
implements?: Implement[];
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Apply lint fixes after generating the guard.
|
|
15
15
|
* @deprecated Use "ng lint --fix" directly instead.
|
|
16
16
|
*/
|
|
17
17
|
lintFix?: boolean;
|
|
@@ -29,7 +29,7 @@ export interface Schema {
|
|
|
29
29
|
*/
|
|
30
30
|
project?: string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Do not create "spec.ts" test files for the new guard.
|
|
33
33
|
*/
|
|
34
34
|
skipTests?: boolean;
|
|
35
35
|
}
|
package/guard/schema.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"skipTests": {
|
|
18
18
|
"type": "boolean",
|
|
19
|
-
"description": "
|
|
19
|
+
"description": "Do not create \"spec.ts\" test files for the new guard.",
|
|
20
20
|
"default": false,
|
|
21
21
|
"x-user-analytics": 12
|
|
22
22
|
},
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"lintFix": {
|
|
42
42
|
"type": "boolean",
|
|
43
|
-
"description": "
|
|
43
|
+
"description": "Apply lint fixes after generating the guard.",
|
|
44
44
|
"x-user-analytics": 15,
|
|
45
45
|
"x-deprecated": "Use \"ng lint --fix\" directly instead."
|
|
46
46
|
},
|
package/interceptor/schema.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface Schema {
|
|
|
7
7
|
*/
|
|
8
8
|
flat?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Apply lint fixes after generating the interceptor.
|
|
11
11
|
* @deprecated Use "ng lint --fix" directly instead.
|
|
12
12
|
*/
|
|
13
13
|
lintFix?: boolean;
|
|
@@ -24,7 +24,7 @@ export interface Schema {
|
|
|
24
24
|
*/
|
|
25
25
|
project?: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Do not create "spec.ts" test files for the new interceptor.
|
|
28
28
|
*/
|
|
29
29
|
skipTests?: boolean;
|
|
30
30
|
}
|
package/interceptor/schema.json
CHANGED
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
},
|
|
35
35
|
"skipTests": {
|
|
36
36
|
"type": "boolean",
|
|
37
|
-
"description": "
|
|
37
|
+
"description": "Do not create \"spec.ts\" test files for the new interceptor.",
|
|
38
38
|
"default": false,
|
|
39
39
|
"x-user-analytics": 12
|
|
40
40
|
},
|
|
41
41
|
"lintFix": {
|
|
42
42
|
"type": "boolean",
|
|
43
|
-
"description": "
|
|
43
|
+
"description": "Apply lint fixes after generating the interceptor.",
|
|
44
44
|
"x-user-analytics": 15,
|
|
45
45
|
"x-deprecated": "Use \"ng lint --fix\" directly instead."
|
|
46
46
|
}
|
package/interface/schema.d.ts
CHANGED
package/interface/schema.json
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"lintFix": {
|
|
44
44
|
"type": "boolean",
|
|
45
|
-
"description": "
|
|
45
|
+
"description": "Apply lint fixes after generating the interface.",
|
|
46
46
|
"x-user-analytics": 15,
|
|
47
47
|
"x-deprecated": "Use \"ng lint --fix\" directly instead."
|
|
48
48
|
}
|
package/library/schema.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface Schema {
|
|
|
7
7
|
*/
|
|
8
8
|
entryFile?: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Apply lint fixes after generating the library.
|
|
11
11
|
* @deprecated Use "ng lint --fix" directly instead.
|
|
12
12
|
*/
|
|
13
13
|
lintFix?: boolean;
|
|
@@ -20,17 +20,16 @@ export interface Schema {
|
|
|
20
20
|
*/
|
|
21
21
|
prefix?: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Do not install dependency packages.
|
|
24
24
|
*/
|
|
25
25
|
skipInstall?: boolean;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Do not add dependencies to the "package.json" file.
|
|
28
28
|
*/
|
|
29
29
|
skipPackageJson?: boolean;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* development.
|
|
31
|
+
* Do not update "tsconfig.json" to add a path mapping for the new library. The path mapping
|
|
32
|
+
* is needed to use the library in an app, but can be disabled here to simplify development.
|
|
34
33
|
*/
|
|
35
34
|
skipTsConfig?: boolean;
|
|
36
35
|
}
|
package/library/schema.json
CHANGED
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
"skipPackageJson": {
|
|
32
32
|
"type": "boolean",
|
|
33
33
|
"default": false,
|
|
34
|
-
"description": "
|
|
34
|
+
"description": "Do not add dependencies to the \"package.json\" file. "
|
|
35
35
|
},
|
|
36
36
|
"skipInstall": {
|
|
37
|
-
"description": "
|
|
37
|
+
"description": "Do not install dependency packages.",
|
|
38
38
|
"type": "boolean",
|
|
39
39
|
"default": false
|
|
40
40
|
},
|
|
41
41
|
"skipTsConfig": {
|
|
42
42
|
"type": "boolean",
|
|
43
43
|
"default": false,
|
|
44
|
-
"description": "
|
|
44
|
+
"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."
|
|
45
45
|
},
|
|
46
46
|
"lintFix": {
|
|
47
47
|
"type": "boolean",
|
|
48
|
-
"description": "
|
|
48
|
+
"description": "Apply lint fixes after generating the library.",
|
|
49
49
|
"x-user-analytics": 15,
|
|
50
50
|
"x-deprecated": "Use \"ng lint --fix\" directly instead."
|
|
51
51
|
}
|
package/module/schema.d.ts
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface Schema {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* The new NgModule imports "CommonModule".
|
|
7
7
|
*/
|
|
8
8
|
commonModule?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Create the new files at the top level of the current project root.
|
|
11
11
|
*/
|
|
12
12
|
flat?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Apply lint fixes after generating the module.
|
|
15
15
|
* @deprecated Use "ng lint --fix" directly instead.
|
|
16
16
|
*/
|
|
17
17
|
lintFix?: boolean;
|
|
@@ -38,7 +38,7 @@ export interface Schema {
|
|
|
38
38
|
*/
|
|
39
39
|
route?: string;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Create a routing module.
|
|
42
42
|
*/
|
|
43
43
|
routing?: boolean;
|
|
44
44
|
/**
|
package/module/schema.json
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"routing": {
|
|
31
31
|
"type": "boolean",
|
|
32
|
-
"description": "
|
|
32
|
+
"description": "Create a routing module.",
|
|
33
33
|
"default": false,
|
|
34
34
|
"x-user-analytics": 17
|
|
35
35
|
},
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
},
|
|
46
46
|
"flat": {
|
|
47
47
|
"type": "boolean",
|
|
48
|
-
"description": "
|
|
48
|
+
"description": "Create the new files at the top level of the current project root. ",
|
|
49
49
|
"default": false
|
|
50
50
|
},
|
|
51
51
|
"commonModule": {
|
|
52
52
|
"type": "boolean",
|
|
53
|
-
"description": "
|
|
53
|
+
"description": "The new NgModule imports \"CommonModule\". ",
|
|
54
54
|
"default": true,
|
|
55
55
|
"visible": false
|
|
56
56
|
},
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"lintFix": {
|
|
63
63
|
"type": "boolean",
|
|
64
|
-
"description": "
|
|
64
|
+
"description": "Apply lint fixes after generating the module.",
|
|
65
65
|
"x-user-analytics": 15,
|
|
66
66
|
"x-deprecated": "Use \"ng lint --fix\" directly instead."
|
|
67
67
|
}
|
package/ng-new/schema.d.ts
CHANGED
|
@@ -4,10 +4,9 @@ export interface Schema {
|
|
|
4
4
|
*/
|
|
5
5
|
commit?: CommitUnion;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* folder.
|
|
7
|
+
* Create a new initial application project in the 'src' folder of the new workspace. When
|
|
8
|
+
* false, creates an empty workspace with no initial application. You can then use the
|
|
9
|
+
* generate application command so that all applications are created in the projects folder.
|
|
11
10
|
*/
|
|
12
11
|
createApplication?: boolean;
|
|
13
12
|
/**
|
|
@@ -15,13 +14,13 @@ export interface Schema {
|
|
|
15
14
|
*/
|
|
16
15
|
directory?: string;
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* Include styles inline in the component TS file. By default, an external styles file is
|
|
18
|
+
* created and referenced in the component TypeScript file.
|
|
20
19
|
*/
|
|
21
20
|
inlineStyle?: boolean;
|
|
22
21
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* Include template inline in the component TS file. By default, an external template file
|
|
23
|
+
* is created and referenced in the component TypeScript file.
|
|
25
24
|
*/
|
|
26
25
|
inlineTemplate?: boolean;
|
|
27
26
|
/**
|
|
@@ -29,12 +28,11 @@ export interface Schema {
|
|
|
29
28
|
*/
|
|
30
29
|
legacyBrowsers?: boolean;
|
|
31
30
|
/**
|
|
32
|
-
*
|
|
31
|
+
* Link the CLI to the global version (internal development only).
|
|
33
32
|
*/
|
|
34
33
|
linkCli?: boolean;
|
|
35
34
|
/**
|
|
36
|
-
*
|
|
37
|
-
* only.)
|
|
35
|
+
* Create a workspace without any testing frameworks. (Use for learning purposes only.)
|
|
38
36
|
*/
|
|
39
37
|
minimal?: boolean;
|
|
40
38
|
/**
|
|
@@ -54,19 +52,19 @@ export interface Schema {
|
|
|
54
52
|
*/
|
|
55
53
|
prefix?: string;
|
|
56
54
|
/**
|
|
57
|
-
*
|
|
55
|
+
* Generate a routing module for the initial project.
|
|
58
56
|
*/
|
|
59
57
|
routing?: boolean;
|
|
60
58
|
/**
|
|
61
|
-
*
|
|
59
|
+
* Do not initialize a git repository.
|
|
62
60
|
*/
|
|
63
61
|
skipGit?: boolean;
|
|
64
62
|
/**
|
|
65
|
-
*
|
|
63
|
+
* Do not install dependency packages.
|
|
66
64
|
*/
|
|
67
65
|
skipInstall?: boolean;
|
|
68
66
|
/**
|
|
69
|
-
*
|
|
67
|
+
* Do not generate "spec.ts" test files for the new project.
|
|
70
68
|
*/
|
|
71
69
|
skipTests?: boolean;
|
|
72
70
|
/**
|
package/ng-new/schema.json
CHANGED
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
"x-prompt": "What name would you like to use for the new workspace and initial project?"
|
|
20
20
|
},
|
|
21
21
|
"skipInstall": {
|
|
22
|
-
"description": "
|
|
22
|
+
"description": "Do not install dependency packages.",
|
|
23
23
|
"type": "boolean",
|
|
24
24
|
"default": false
|
|
25
25
|
},
|
|
26
26
|
"linkCli": {
|
|
27
|
-
"description": "
|
|
27
|
+
"description": "Link the CLI to the global version (internal development only).",
|
|
28
28
|
"type": "boolean",
|
|
29
29
|
"default": false,
|
|
30
30
|
"visible": false
|
|
31
31
|
},
|
|
32
32
|
"skipGit": {
|
|
33
|
-
"description": "
|
|
33
|
+
"description": "Do not initialize a git repository.",
|
|
34
34
|
"type": "boolean",
|
|
35
35
|
"default": false,
|
|
36
36
|
"alias": "g"
|
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
"default": "projects"
|
|
65
65
|
},
|
|
66
66
|
"inlineStyle": {
|
|
67
|
-
"description": "
|
|
67
|
+
"description": "Include styles inline in the component TS file. By default, an external styles file is created and referenced in the component TypeScript file.",
|
|
68
68
|
"type": "boolean",
|
|
69
69
|
"alias": "s",
|
|
70
70
|
"x-user-analytics": 9
|
|
71
71
|
},
|
|
72
72
|
"inlineTemplate": {
|
|
73
|
-
"description": "
|
|
73
|
+
"description": "Include template inline in the component TS file. By default, an external template file is created and referenced in the component TypeScript file.",
|
|
74
74
|
"type": "boolean",
|
|
75
75
|
"alias": "t",
|
|
76
76
|
"x-user-analytics": 10
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
"routing": {
|
|
93
93
|
"type": "boolean",
|
|
94
|
-
"description": "
|
|
94
|
+
"description": "Generate a routing module for the initial project.",
|
|
95
95
|
"x-user-analytics": 17
|
|
96
96
|
},
|
|
97
97
|
"prefix": {
|
|
@@ -109,19 +109,19 @@
|
|
|
109
109
|
"x-user-analytics": 5
|
|
110
110
|
},
|
|
111
111
|
"skipTests": {
|
|
112
|
-
"description": "
|
|
112
|
+
"description": "Do not generate \"spec.ts\" test files for the new project.",
|
|
113
113
|
"type": "boolean",
|
|
114
114
|
"default": false,
|
|
115
115
|
"alias": "S",
|
|
116
116
|
"x-user-analytics": 12
|
|
117
117
|
},
|
|
118
118
|
"createApplication": {
|
|
119
|
-
"description": "
|
|
119
|
+
"description": "Create a new initial application project in the 'src' folder of the new workspace. When false, creates an empty workspace with no initial application. You can then use the generate application command so that all applications are created in the projects folder.",
|
|
120
120
|
"type": "boolean",
|
|
121
121
|
"default": true
|
|
122
122
|
},
|
|
123
123
|
"minimal": {
|
|
124
|
-
"description": "
|
|
124
|
+
"description": "Create a workspace without any testing frameworks. (Use for learning purposes only.)",
|
|
125
125
|
"type": "boolean",
|
|
126
126
|
"default": false,
|
|
127
127
|
"x-user-analytics": 14
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.7",
|
|
4
4
|
"description": "Schematics specific to Angular",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
],
|
|
15
15
|
"schematics": "./collection.json",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@angular-devkit/core": "11.0.
|
|
18
|
-
"@angular-devkit/schematics": "11.0.
|
|
17
|
+
"@angular-devkit/core": "11.0.7",
|
|
18
|
+
"@angular-devkit/schematics": "11.0.7",
|
|
19
19
|
"jsonc-parser": "2.3.1"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
package/pipe/schema.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface Schema {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* The declaring NgModule exports this pipe.
|
|
7
7
|
*/
|
|
8
8
|
export?: boolean;
|
|
9
9
|
/**
|
|
@@ -11,7 +11,7 @@ export interface Schema {
|
|
|
11
11
|
*/
|
|
12
12
|
flat?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Apply lint fixes after generating the pipe.
|
|
15
15
|
* @deprecated Use "ng lint --fix" directly instead.
|
|
16
16
|
*/
|
|
17
17
|
lintFix?: boolean;
|
|
@@ -32,11 +32,11 @@ export interface Schema {
|
|
|
32
32
|
*/
|
|
33
33
|
project?: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Do not import this pipe into the owning NgModule.
|
|
36
36
|
*/
|
|
37
37
|
skipImport?: boolean;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Do not create "spec.ts" test files for the new pipe.
|
|
40
40
|
*/
|
|
41
41
|
skipTests?: boolean;
|
|
42
42
|
}
|
package/pipe/schema.json
CHANGED
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
},
|
|
35
35
|
"skipTests": {
|
|
36
36
|
"type": "boolean",
|
|
37
|
-
"description": "
|
|
37
|
+
"description": "Do not create \"spec.ts\" test files for the new pipe.",
|
|
38
38
|
"default": false,
|
|
39
39
|
"x-user-analytics": 12
|
|
40
40
|
},
|
|
41
41
|
"skipImport": {
|
|
42
42
|
"type": "boolean",
|
|
43
43
|
"default": false,
|
|
44
|
-
"description": "
|
|
44
|
+
"description": "Do not import this pipe into the owning NgModule.",
|
|
45
45
|
"x-user-analytics": 18
|
|
46
46
|
},
|
|
47
47
|
"module": {
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"export": {
|
|
53
53
|
"type": "boolean",
|
|
54
54
|
"default": false,
|
|
55
|
-
"description": "
|
|
55
|
+
"description": "The declaring NgModule exports this pipe.",
|
|
56
56
|
"x-user-analytics": 19
|
|
57
57
|
},
|
|
58
58
|
"lintFix": {
|
|
59
59
|
"type": "boolean",
|
|
60
60
|
"default": false,
|
|
61
|
-
"description": "
|
|
61
|
+
"description": "Apply lint fixes after generating the pipe.",
|
|
62
62
|
"x-user-analytics": 15,
|
|
63
63
|
"x-deprecated": "Use \"ng lint --fix\" directly instead."
|
|
64
64
|
}
|
package/resolver/schema.d.ts
CHANGED
package/resolver/schema.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"skipTests": {
|
|
18
18
|
"type": "boolean",
|
|
19
|
-
"description": "
|
|
19
|
+
"description": "Do not create \"spec.ts\" test files for the new resolver.",
|
|
20
20
|
"default": false,
|
|
21
21
|
"x-user-analytics": 12
|
|
22
22
|
},
|
package/service/schema.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface Schema {
|
|
|
7
7
|
*/
|
|
8
8
|
flat?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Apply lint fixes after generating the service.
|
|
11
11
|
* @deprecated Use "ng lint --fix" directly instead.
|
|
12
12
|
*/
|
|
13
13
|
lintFix?: boolean;
|
|
@@ -24,7 +24,7 @@ export interface Schema {
|
|
|
24
24
|
*/
|
|
25
25
|
project?: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Do not create "spec.ts" test files for the new service.
|
|
28
28
|
*/
|
|
29
29
|
skipTests?: boolean;
|
|
30
30
|
}
|
package/service/schema.json
CHANGED
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
},
|
|
35
35
|
"skipTests": {
|
|
36
36
|
"type": "boolean",
|
|
37
|
-
"description": "
|
|
37
|
+
"description": "Do not create \"spec.ts\" test files for the new service.",
|
|
38
38
|
"default": false,
|
|
39
39
|
"x-user-analytics": 12
|
|
40
40
|
},
|
|
41
41
|
"lintFix": {
|
|
42
42
|
"type": "boolean",
|
|
43
|
-
"description": "
|
|
43
|
+
"description": "Apply lint fixes after generating the service.",
|
|
44
44
|
"x-user-analytics": 15,
|
|
45
45
|
"x-deprecated": "Use \"ng lint --fix\" directly instead."
|
|
46
46
|
}
|
package/universal/schema.d.ts
CHANGED
package/universal/schema.json
CHANGED
package/utility/ast-utils.js
CHANGED
|
@@ -295,8 +295,7 @@ function getMetadataField(node, metadataField) {
|
|
|
295
295
|
// Filter out every fields that's not "metadataField". Also handles string literals
|
|
296
296
|
// (but not expressions).
|
|
297
297
|
.filter(({ name }) => {
|
|
298
|
-
return (ts.isIdentifier(name) || ts.isStringLiteral(name))
|
|
299
|
-
&& name.getText() === metadataField;
|
|
298
|
+
return (ts.isIdentifier(name) || ts.isStringLiteral(name)) && name.text === metadataField;
|
|
300
299
|
});
|
|
301
300
|
}
|
|
302
301
|
exports.getMetadataField = getMetadataField;
|
package/utility/json-file.js
CHANGED
|
@@ -27,7 +27,7 @@ class JSONFile {
|
|
|
27
27
|
return this._jsonAst;
|
|
28
28
|
}
|
|
29
29
|
const errors = [];
|
|
30
|
-
this._jsonAst = jsonc_parser_1.parseTree(this.content, errors);
|
|
30
|
+
this._jsonAst = jsonc_parser_1.parseTree(this.content, errors, { allowTrailingComma: true });
|
|
31
31
|
if (errors.length) {
|
|
32
32
|
const { error, offset } = errors[0];
|
|
33
33
|
throw new Error(`Failed to parse "${this.path}" as JSON AST Object. ${jsonc_parser_1.printParseErrorCode(error)} at location: ${offset}.`);
|
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.latestVersions = void 0;
|
|
11
11
|
exports.latestVersions = {
|
|
12
12
|
// These versions should be kept up to date with latest Angular peer dependencies.
|
|
13
|
-
Angular: '~11.0.
|
|
13
|
+
Angular: '~11.0.9',
|
|
14
14
|
RxJs: '~6.6.0',
|
|
15
15
|
ZoneJs: '~0.10.2',
|
|
16
16
|
TypeScript: '~4.0.2',
|
|
@@ -19,8 +19,8 @@ exports.latestVersions = {
|
|
|
19
19
|
// For our e2e tests, these versions must match the latest tag present on the branch.
|
|
20
20
|
// During RC periods they will not match the latest RC until there's a new git tag, and
|
|
21
21
|
// should not be updated.
|
|
22
|
-
DevkitBuildAngular: '~0.1100.
|
|
23
|
-
DevkitBuildNgPackagr: '~0.1100.
|
|
24
|
-
DevkitBuildWebpack: '~0.1100.
|
|
22
|
+
DevkitBuildAngular: '~0.1100.7',
|
|
23
|
+
DevkitBuildNgPackagr: '~0.1100.7',
|
|
24
|
+
DevkitBuildWebpack: '~0.1100.7',
|
|
25
25
|
ngPackagr: '^11.0.0',
|
|
26
26
|
};
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"scripts": {
|
|
5
5
|
"ng": "ng",
|
|
6
6
|
"start": "ng serve",
|
|
7
|
-
"build": "ng build"
|
|
7
|
+
"build": "ng build"<% if (!minimal) { %>,
|
|
8
8
|
"test": "ng test",
|
|
9
|
-
"lint": "ng lint"
|
|
9
|
+
"lint": "ng lint"<% } %>
|
|
10
10
|
},
|
|
11
11
|
"private": true,
|
|
12
12
|
"dependencies": {
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"karma-coverage": "~2.0.3",
|
|
36
36
|
"karma-jasmine": "~4.0.0",
|
|
37
37
|
"karma-jasmine-html-reporter": "^1.5.0",
|
|
38
|
-
"protractor": "~7.0.0"
|
|
38
|
+
"protractor": "~7.0.0",
|
|
39
39
|
"ts-node": "~8.3.0",
|
|
40
|
-
"tslint": "~6.1.0"
|
|
40
|
+
"tslint": "~6.1.0",<% } %>
|
|
41
41
|
"typescript": "<%= latestVersions.TypeScript %>"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/workspace/schema.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export interface Schema {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* only.)
|
|
3
|
+
* Create a workspace without any testing frameworks. (Use for learning purposes only.)
|
|
5
4
|
*/
|
|
6
5
|
minimal?: boolean;
|
|
7
6
|
/**
|
|
@@ -17,7 +16,7 @@ export interface Schema {
|
|
|
17
16
|
*/
|
|
18
17
|
packageManager?: PackageManager;
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
19
|
+
* Create a workspace with stricter type checking options. This setting helps improve
|
|
21
20
|
* maintainability and catch bugs ahead of time. For more information, see
|
|
22
21
|
* https://angular.io/strict
|
|
23
22
|
*/
|
package/workspace/schema.json
CHANGED
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"minimal": {
|
|
30
|
-
"description": "
|
|
30
|
+
"description": "Create a workspace without any testing frameworks. (Use for learning purposes only.)",
|
|
31
31
|
"type": "boolean",
|
|
32
32
|
"default": false,
|
|
33
33
|
"x-user-analytics": 14
|
|
34
34
|
},
|
|
35
35
|
"strict": {
|
|
36
|
-
"description": "
|
|
36
|
+
"description": "Create a workspace with stricter type checking options. This setting helps improve maintainability and catch bugs ahead of time. For more information, see https://angular.io/strict",
|
|
37
37
|
"type": "boolean",
|
|
38
38
|
"default": false,
|
|
39
39
|
"x-user-analytics": 7
|