This repository was archived by the owner on Apr 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +6
-105
lines changed
angular_devkit/schematics Expand file tree Collapse file tree 7 files changed +6
-105
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import { schema } from '@angular-devkit/core' ;
10
- import { appNameFormat } from './app-name' ;
11
- export { appNameFormat } from './app-name' ;
12
10
import { htmlSelectorFormat } from './html-selector' ;
13
11
export { htmlSelectorFormat } from './html-selector' ;
14
12
import { pathFormat } from './path' ;
15
13
export { pathFormat } from './path' ;
16
14
17
15
export const standardFormats : schema . SchemaFormat [ ] = [
18
- appNameFormat ,
19
16
htmlSelectorFormat ,
20
17
pathFormat ,
21
18
] ;
Original file line number Diff line number Diff line change @@ -44,12 +44,7 @@ export class SchematicTestRunner {
44
44
this . _engineHost . registerCollection ( _collectionName , collectionPath ) ;
45
45
this . _logger = new logging . Logger ( 'test' ) ;
46
46
47
- const schemaFormats = [
48
- formats . appNameFormat ,
49
- formats . htmlSelectorFormat ,
50
- formats . pathFormat ,
51
- ] ;
52
- const registry = new schema . CoreSchemaRegistry ( schemaFormats ) ;
47
+ const registry = new schema . CoreSchemaRegistry ( formats . standardFormats ) ;
53
48
54
49
this . _engineHost . registerOptionsTransform ( validateOptionsWithSchema ( registry ) ) ;
55
50
this . _collection = this . _engine . createCollection ( this . _collectionName ) ;
Original file line number Diff line number Diff line change 22
22
23
23
"name" : {
24
24
"type" : " string" ,
25
- "format" : " app-name " ,
25
+ "format" : " html-selector " ,
26
26
"description" : " Name of the universal app"
27
27
},
28
28
"appId" : {
29
29
"type" : " string" ,
30
- "format" : " app-name " ,
30
+ "format" : " html-selector " ,
31
31
"description" : " The appId to use withServerTransition." ,
32
32
"default" : " serverApp"
33
33
},
86
86
},
87
87
"rootModuleClassName" : {
88
88
"type" : " string" ,
89
- "format" : " app-name " ,
89
+ "format" : " html-selector " ,
90
90
"description" : " The name of the root module class." ,
91
91
"default" : " AppServerModule"
92
92
},
Original file line number Diff line number Diff line change 28
28
"name" : {
29
29
"description" : " The name of the application." ,
30
30
"type" : " string" ,
31
- "format" : " app-name "
31
+ "format" : " html-selector "
32
32
},
33
33
"inlineStyle" : {
34
34
"description" : " Specifies if the style will be in the ts file." ,
Original file line number Diff line number Diff line change 15
15
},
16
16
"appId" : {
17
17
"type" : " string" ,
18
- "format" : " app-name " ,
18
+ "format" : " html-selector " ,
19
19
"description" : " The appId to use withServerTransition." ,
20
20
"default" : " serverApp"
21
21
},
You can’t perform that action at this time.
0 commit comments