@schematics/angular 11.0.2 → 11.0.6

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.
@@ -13,6 +13,12 @@ module.exports = function (config) {
13
13
  require('@angular-devkit/build-angular/plugins/karma')
14
14
  ],
15
15
  client: {
16
+ jasmine: {
17
+ // you can add configuration options for Jasmine here
18
+ // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19
+ // for example, you can disable the random execution with `random: false`
20
+ // or set a specific seed with `seed: 4321`
21
+ },
16
22
  clearContext: false // leave Jasmine Spec Runner output visible in browser
17
23
  },
18
24
  jasmineHtmlReporter: {
@@ -3,15 +3,14 @@
3
3
  */
4
4
  export interface Schema {
5
5
  /**
6
- * When true, includes styles inline in the root component.ts file. Only CSS styles can be
7
- * included inline. Default is false, meaning that an external styles file is created and
8
- * referenced in the root component.ts file.
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
- * When true, includes template inline in the root component.ts file. Default is false,
13
- * meaning that an external template file is created and referenced in the root component.ts
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
- * When true, applies lint fixes after generating the application.
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
- * When true, creates a bare-bones project without any testing frameworks. (Use for learning
28
- * purposes only.)
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
- * When true, creates a routing NgModule.
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
- * When true, does not add dependencies to the "package.json" file.
51
+ * Do not add dependencies to the "package.json" file.
53
52
  */
54
53
  skipPackageJson?: boolean;
55
54
  /**
56
- * When true, does not create "spec.ts" test files for the application.
55
+ * Do not create "spec.ts" test files for the application.
57
56
  */
58
57
  skipTests?: boolean;
59
58
  /**
@@ -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": "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.",
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": "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. ",
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": "When true, creates a routing NgModule.",
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": "When true, does not create \"spec.ts\" test files for the application.",
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": "When true, does not add dependencies to the \"package.json\" file."
88
+ "description": "Do not add dependencies to the \"package.json\" file."
89
89
  },
90
90
  "minimal": {
91
- "description": "When true, creates a bare-bones project without any testing frameworks. (Use for learning purposes only.)",
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": "When true, applies lint fixes after generating the application.",
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
- * When true, applies lint fixes after generating the class.
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
- * When true, does not create "spec.ts" test files for the new class.
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": "When true, does not create \"spec.ts\" test files for the new class.",
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": "When true, applies lint fixes after generating the class.",
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
- "serviceWorker": {
16
- "aliases": [ "service-worker" ],
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
- "appShell": {
105
- "aliases": [ "app-shell" ],
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
- "webWorker": {
117
- "aliases": ["web-worker"],
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."
@@ -11,31 +11,30 @@ export interface Schema {
11
11
  */
12
12
  displayBlock?: boolean;
13
13
  /**
14
- * When true, the new component is the entry component of the declaring NgModule.
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
- * When true, the declaring NgModule exports this component.
19
+ * The declaring NgModule exports this component.
20
20
  */
21
21
  export?: boolean;
22
22
  /**
23
- * When true, creates the new files at the top level of the current project.
23
+ * Create the new files at the top level of the current project.
24
24
  */
25
25
  flat?: boolean;
26
26
  /**
27
- * When true, includes styles inline in the component.ts file. Only CSS styles can be
28
- * included inline. By default, an external styles file is created and referenced in the
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
- * When true, includes template inline in the component.ts file. By default, an external
34
- * template file is created and referenced in the component.ts file.
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
- * When true, applies lint fixes after generating the component.
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
- * When true, does not import this component into the owning NgModule.
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
- * When true, does not create "spec.ts" test files for the new component.
75
+ * Do not create "spec.ts" test files for the new component.
77
76
  */
78
77
  skipTests?: boolean;
79
78
  /**
@@ -34,14 +34,14 @@
34
34
  "alias": "b"
35
35
  },
36
36
  "inlineStyle": {
37
- "description": "When true, includes 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.",
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": "When true, includes template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.",
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": "When true, does not create \"spec.ts\" test files for the new component.",
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": "When true, creates the new files at the top level of the current project.",
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": "When true, does not import this component into the owning NgModule.",
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": "When true, the declaring NgModule exports this component.",
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": "When true, the new component is the entry component of the declaring NgModule.",
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": "When true, applies lint fixes after generating the component.",
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
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export interface Schema {
5
5
  /**
6
- * When true, the declaring NgModule exports this directive.
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
- * When true, applies lint fixes after generating the directive.
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
- * When true, does not import this directive into the owning NgModule.
44
+ * Do not import this directive into the owning NgModule.
45
45
  */
46
46
  skipImport?: boolean;
47
47
  /**
48
- * When true, does not create "spec.ts" test files for the new class.
48
+ * Do not create "spec.ts" test files for the new class.
49
49
  */
50
50
  skipTests?: boolean;
51
51
  }
@@ -43,13 +43,13 @@
43
43
  },
44
44
  "skipTests": {
45
45
  "type": "boolean",
46
- "description": "When true, does not create \"spec.ts\" test files for the new class.",
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": "When true, does not import this directive into the owning NgModule.",
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": "When true, the declaring NgModule exports this directive.",
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": "When true, applies lint fixes after generating the directive.",
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
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export interface Schema {
5
5
  /**
6
- * When true, applies lint fixes after generating the enum.
6
+ * Apply lint fixes after generating the enum.
7
7
  * @deprecated Use "ng lint --fix" directly instead.
8
8
  */
9
9
  lintFix?: boolean;
package/enum/schema.json CHANGED
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "lintFix": {
31
31
  "type": "boolean",
32
- "description": "When true, applies lint fixes after generating the enum.",
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
- * When true, applies lint fixes after generating the guard.
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
- * When true, does not create "spec.ts" test files for the new guard.
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": "When true, does not create \"spec.ts\" test files for the new guard.",
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": "When true, applies lint fixes after generating the guard.",
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
  },
@@ -7,7 +7,7 @@ export interface Schema {
7
7
  */
8
8
  flat?: boolean;
9
9
  /**
10
- * When true, applies lint fixes after generating the interceptor.
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
- * When true, does not create "spec.ts" test files for the new interceptor.
27
+ * Do not create "spec.ts" test files for the new interceptor.
28
28
  */
29
29
  skipTests?: boolean;
30
30
  }
@@ -34,13 +34,13 @@
34
34
  },
35
35
  "skipTests": {
36
36
  "type": "boolean",
37
- "description": "When true, does not create \"spec.ts\" test files for the new interceptor.",
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": "When true, applies lint fixes after generating the interceptor.",
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
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export interface Schema {
5
5
  /**
6
- * When true, applies lint fixes after generating the interface.
6
+ * Apply lint fixes after generating the interface.
7
7
  * @deprecated Use "ng lint --fix" directly instead.
8
8
  */
9
9
  lintFix?: boolean;
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "lintFix": {
44
44
  "type": "boolean",
45
- "description": "When true, applies lint fixes after generating the interface.",
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
  }
@@ -13,6 +13,12 @@ module.exports = function (config) {
13
13
  require('@angular-devkit/build-angular/plugins/karma')
14
14
  ],
15
15
  client: {
16
+ jasmine: {
17
+ // you can add configuration options for Jasmine here
18
+ // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19
+ // for example, you can disable the random execution with `random: false`
20
+ // or set a specific seed with `seed: 4321`
21
+ },
16
22
  clearContext: false // leave Jasmine Spec Runner output visible in browser
17
23
  },
18
24
  jasmineHtmlReporter: {
@@ -7,7 +7,7 @@ export interface Schema {
7
7
  */
8
8
  entryFile?: string;
9
9
  /**
10
- * When true, applies lint fixes after generating the library.
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
- * When true, does not install dependency packages.
23
+ * Do not install dependency packages.
24
24
  */
25
25
  skipInstall?: boolean;
26
26
  /**
27
- * When true, does not add dependencies to the "package.json" file.
27
+ * Do not add dependencies to the "package.json" file.
28
28
  */
29
29
  skipPackageJson?: boolean;
30
30
  /**
31
- * When true, does not update "tsconfig.json" to add a path mapping for the new library. The
32
- * path mapping is needed to use the library in an app, but can be disabled here to simplify
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
  }
@@ -31,21 +31,21 @@
31
31
  "skipPackageJson": {
32
32
  "type": "boolean",
33
33
  "default": false,
34
- "description": "When true, does not add dependencies to the \"package.json\" file. "
34
+ "description": "Do not add dependencies to the \"package.json\" file. "
35
35
  },
36
36
  "skipInstall": {
37
- "description": "When true, does not install dependency packages.",
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": "When true, does 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."
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": "When true, applies lint fixes after generating the library.",
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
  }
@@ -3,15 +3,15 @@
3
3
  */
4
4
  export interface Schema {
5
5
  /**
6
- * When true, the new NgModule imports "CommonModule".
6
+ * The new NgModule imports "CommonModule".
7
7
  */
8
8
  commonModule?: boolean;
9
9
  /**
10
- * When true, creates the new files at the top level of the current project root.
10
+ * Create the new files at the top level of the current project root.
11
11
  */
12
12
  flat?: boolean;
13
13
  /**
14
- * When true, applies lint fixes after generating the module.
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
- * When true, creates a routing module.
41
+ * Create a routing module.
42
42
  */
43
43
  routing?: boolean;
44
44
  /**
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "routing": {
31
31
  "type": "boolean",
32
- "description": "When true, creates a routing module.",
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": "When true, creates the new files at the top level of the current project root. ",
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": "When true, the new NgModule imports \"CommonModule\". ",
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": "When true, applies lint fixes after generating the module.",
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
  }
@@ -4,10 +4,9 @@ export interface Schema {
4
4
  */
5
5
  commit?: CommitUnion;
6
6
  /**
7
- * When true (the default), creates a new initial application project in the src folder of
8
- * the new workspace. When false, creates an empty workspace with no initial app. You can
9
- * then use the generate application command so that all apps are created in the projects
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
- * When true, includes styles inline in the component TS file. By default, an external
19
- * styles file is created and referenced in the component TS file.
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
- * When true, includes template inline in the component TS file. By default, an external
24
- * template file is created and referenced in the component TS file.
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
- * When true, links the CLI to the global version (internal development only).
31
+ * Link the CLI to the global version (internal development only).
33
32
  */
34
33
  linkCli?: boolean;
35
34
  /**
36
- * When true, creates a workspace without any testing frameworks. (Use for learning purposes
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
- * When true, generates a routing module for the initial project.
55
+ * Generate a routing module for the initial project.
58
56
  */
59
57
  routing?: boolean;
60
58
  /**
61
- * When true, does not initialize a git repository.
59
+ * Do not initialize a git repository.
62
60
  */
63
61
  skipGit?: boolean;
64
62
  /**
65
- * When true, does not install dependency packages.
63
+ * Do not install dependency packages.
66
64
  */
67
65
  skipInstall?: boolean;
68
66
  /**
69
- * When true, does not generate "spec.ts" test files for the new project.
67
+ * Do not generate "spec.ts" test files for the new project.
70
68
  */
71
69
  skipTests?: boolean;
72
70
  /**
@@ -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": "When true, does not install dependency packages.",
22
+ "description": "Do not install dependency packages.",
23
23
  "type": "boolean",
24
24
  "default": false
25
25
  },
26
26
  "linkCli": {
27
- "description": "When true, links the CLI to the global version (internal development only).",
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": "When true, does not initialize a git repository.",
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": "When true, includes styles inline in the component TS file. By default, an external styles file is created and referenced in the component TS file.",
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": "When true, includes template inline in the component TS file. By default, an external template file is created and referenced in the component TS file.",
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": "When true, generates a routing module for the initial project.",
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": "When true, does not generate \"spec.ts\" test files for the new project. ",
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": "When true (the default), creates a new initial application project in the src folder of the new workspace. When false, creates an empty workspace with no initial app. You can then use the generate application command so that all apps are created in the projects folder.",
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": "When true, creates a workspace without any testing frameworks. (Use for learning purposes only.)",
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.2",
3
+ "version": "11.0.6",
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.2",
18
- "@angular-devkit/schematics": "11.0.2",
17
+ "@angular-devkit/core": "11.0.6",
18
+ "@angular-devkit/schematics": "11.0.6",
19
19
  "jsonc-parser": "2.3.1"
20
20
  },
21
21
  "repository": {
@@ -32,11 +32,5 @@
32
32
  "bugs": {
33
33
  "url": "https://github.com/angular/angular-cli/issues"
34
34
  },
35
- "homepage": "https://github.com/angular/angular-cli",
36
- "husky": {
37
- "hooks": {
38
- "commit-msg": "yarn -s ng-dev commit-message pre-commit-validate --file-env-variable HUSKY_GIT_PARAMS",
39
- "prepare-commit-msg": "yarn -s ng-dev commit-message restore-commit-message-draft --file-env-variable HUSKY_GIT_PARAMS"
40
- }
41
- }
35
+ "homepage": "https://github.com/angular/angular-cli"
42
36
  }
package/pipe/schema.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export interface Schema {
5
5
  /**
6
- * When true, the declaring NgModule exports this pipe.
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
- * When true, applies lint fixes after generating the pipe.
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
- * When true, does not import this pipe into the owning NgModule.
35
+ * Do not import this pipe into the owning NgModule.
36
36
  */
37
37
  skipImport?: boolean;
38
38
  /**
39
- * When true, does not create "spec.ts" test files for the new pipe.
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": "When true, does not create \"spec.ts\" test files for the new pipe.",
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": "When true, does not import this pipe into the owning NgModule.",
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": "When true, the declaring NgModule exports this pipe.",
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": "When true, applies lint fixes after generating the pipe.",
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
  }
@@ -20,7 +20,7 @@ export interface Schema {
20
20
  */
21
21
  project?: string;
22
22
  /**
23
- * When true, does not create "spec.ts" test files for the new resolver.
23
+ * Do not create "spec.ts" test files for the new resolver.
24
24
  */
25
25
  skipTests?: boolean;
26
26
  }
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "skipTests": {
18
18
  "type": "boolean",
19
- "description": "When true, does not create \"spec.ts\" test files for the new resolver.",
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
  },
@@ -7,7 +7,7 @@ export interface Schema {
7
7
  */
8
8
  flat?: boolean;
9
9
  /**
10
- * When true, applies lint fixes after generating the service.
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
- * When true, does not create "spec.ts" test files for the new service.
27
+ * Do not create "spec.ts" test files for the new service.
28
28
  */
29
29
  skipTests?: boolean;
30
30
  }
@@ -34,13 +34,13 @@
34
34
  },
35
35
  "skipTests": {
36
36
  "type": "boolean",
37
- "description": "When true, does not create \"spec.ts\" test files for the new service.",
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": "When true, applies lint fixes after generating the service.",
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
  }
@@ -27,7 +27,7 @@ export interface Schema {
27
27
  */
28
28
  rootModuleFileName?: string;
29
29
  /**
30
- * When true, does not install packages for dependencies.
30
+ * Do not install packages for dependencies.
31
31
  */
32
32
  skipInstall?: boolean;
33
33
  }
@@ -39,7 +39,7 @@
39
39
  "default": "AppServerModule"
40
40
  },
41
41
  "skipInstall": {
42
- "description": "When true, does not install packages for dependencies.",
42
+ "description": "Do not install packages for dependencies.",
43
43
  "type": "boolean",
44
44
  "default": false
45
45
  }
@@ -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;
@@ -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.1',
13
+ Angular: '~11.0.6',
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.2',
23
- DevkitBuildNgPackagr: '~0.1100.2',
24
- DevkitBuildWebpack: '~0.1100.2',
22
+ DevkitBuildAngular: '~0.1100.6',
23
+ DevkitBuildNgPackagr: '~0.1100.6',
24
+ DevkitBuildWebpack: '~0.1100.6',
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
  }
@@ -1,7 +1,6 @@
1
1
  export interface Schema {
2
2
  /**
3
- * When true, creates a workspace without any testing frameworks. (Use for learning purposes
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
- * Creates a workspace with stricter type checking options. This setting helps improve
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
  */
@@ -27,13 +27,13 @@
27
27
  }
28
28
  },
29
29
  "minimal": {
30
- "description": "When true, creates a workspace without any testing frameworks. (Use for learning purposes only.)",
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": "Creates 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",
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