Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit e9fa113

Browse files
filipesilvahansl
authored andcommitted
feat(@angular-devkit/schematics): allow any project name
1 parent 783b60e commit e9fa113

File tree

7 files changed

+6
-105
lines changed

7 files changed

+6
-105
lines changed

packages/angular_devkit/schematics/src/formats/app-name.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

packages/angular_devkit/schematics/src/formats/app-name_spec.ts

Lines changed: 0 additions & 69 deletions
This file was deleted.

packages/angular_devkit/schematics/src/formats/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
*/
88

99
import { schema } from '@angular-devkit/core';
10-
import { appNameFormat } from './app-name';
11-
export { appNameFormat } from './app-name';
1210
import { htmlSelectorFormat } from './html-selector';
1311
export { htmlSelectorFormat } from './html-selector';
1412
import { pathFormat } from './path';
1513
export { pathFormat } from './path';
1614

1715
export const standardFormats: schema.SchemaFormat[] = [
18-
appNameFormat,
1916
htmlSelectorFormat,
2017
pathFormat,
2118
];

packages/angular_devkit/schematics/testing/schematic-test-runner.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,7 @@ export class SchematicTestRunner {
4444
this._engineHost.registerCollection(_collectionName, collectionPath);
4545
this._logger = new logging.Logger('test');
4646

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);
5348

5449
this._engineHost.registerOptionsTransform(validateOptionsWithSchema(registry));
5550
this._collection = this._engine.createCollection(this._collectionName);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222

2323
"name": {
2424
"type": "string",
25-
"format": "app-name",
25+
"format": "html-selector",
2626
"description": "Name of the universal app"
2727
},
2828
"appId": {
2929
"type": "string",
30-
"format": "app-name",
30+
"format": "html-selector",
3131
"description": "The appId to use withServerTransition.",
3232
"default": "serverApp"
3333
},
@@ -86,7 +86,7 @@
8686
},
8787
"rootModuleClassName": {
8888
"type": "string",
89-
"format": "app-name",
89+
"format": "html-selector",
9090
"description": "The name of the root module class.",
9191
"default": "AppServerModule"
9292
},

packages/schematics/angular/application/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"name": {
2929
"description": "The name of the application.",
3030
"type": "string",
31-
"format": "app-name"
31+
"format": "html-selector"
3232
},
3333
"inlineStyle": {
3434
"description": "Specifies if the style will be in the ts file.",

packages/schematics/angular/universal/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"appId": {
1717
"type": "string",
18-
"format": "app-name",
18+
"format": "html-selector",
1919
"description": "The appId to use withServerTransition.",
2020
"default": "serverApp"
2121
},

0 commit comments

Comments
 (0)