Skip to content

Commit bcbbd1b

Browse files
alan-agius4Keen Yee Liau
authored andcommitted
refactor(@schematics/angular): deprecate options that are unused
1 parent 600e5d0 commit bcbbd1b

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

packages/schematics/angular/app-shell/schema.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"name": {
2424
"type": "string",
2525
"format": "html-selector",
26-
"description": "The HTML selector of the Universal app"
26+
"description": "The HTML selector of the Universal app",
27+
"x-deprecated": "This option has no effect."
2728
},
2829
"appId": {
2930
"type": "string",
@@ -35,19 +36,22 @@
3536
"type": "string",
3637
"format": "path",
3738
"description": "The output directory for build results.",
38-
"default": "dist-server"
39+
"default": "dist-server",
40+
"x-deprecated": "This option has no effect."
3941
},
4042
"root": {
4143
"type": "string",
4244
"format": "path",
4345
"description": "The root directory of the app.",
44-
"default": "src"
46+
"default": "src",
47+
"x-deprecated": "This option has no effect."
4548
},
4649
"index": {
4750
"type": "string",
4851
"format": "path",
4952
"description": "The name of the index file",
50-
"default": "index.html"
53+
"default": "index.html",
54+
"x-deprecated": "This option has no effect."
5155
},
5256
"main": {
5357
"type": "string",
@@ -58,7 +62,8 @@
5862
"test": {
5963
"type": "string",
6064
"format": "path",
61-
"description": "The name of the test entry-point file."
65+
"description": "The name of the test entry-point file.",
66+
"x-deprecated": "This option has no effect."
6267
},
6368
"tsconfigFileName": {
6469
"type": "string",
@@ -70,7 +75,8 @@
7075
"type": "string",
7176
"format": "path",
7277
"description": "The name of the TypeScript configuration file for tests.",
73-
"default": "tsconfig.spec"
78+
"default": "tsconfig.spec",
79+
"x-deprecated": "This option has no effect."
7480
},
7581
"appDir": {
7682
"type": "string",
@@ -95,7 +101,8 @@
95101
"format": "path",
96102
"description": "The path of the source directory.",
97103
"default": "src",
98-
"alias": "D"
104+
"alias": "D",
105+
"x-deprecated": "This option has no effect."
99106
}
100107
},
101108
"required": [

packages/schematics/angular/universal/schema.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"test": {
2525
"type": "string",
2626
"format": "path",
27-
"description": "The name of the test entry-point file."
27+
"description": "The name of the test entry-point file.",
28+
"x-deprecated": "This option has no effect."
2829
},
2930
"tsconfigFileName": {
3031
"type": "string",
@@ -35,7 +36,8 @@
3536
"type": "string",
3637
"format": "path",
3738
"description": "The name of the TypeScript configuration file for tests.",
38-
"default": "tsconfig.spec"
39+
"default": "tsconfig.spec",
40+
"x-deprecated": "This option has no effect."
3941
},
4042
"appDir": {
4143
"type": "string",

0 commit comments

Comments
 (0)