Skip to content

Commit 9a9bc00

Browse files
committed
feat: remove ngtools entirely from this repository
1 parent b85a7dc commit 9a9bc00

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+61
-2672
lines changed

packages/@angular/cli/utilities/schematics.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
NodeModulesEngineHost,
2020
validateOptionsWithSchema
2121
} from '@angular-devkit/schematics/tools';
22-
import { SchemaClassFactory } from '@ngtools/json-schema';
2322

2423
const SilentError = require('silent-error');
2524

@@ -39,21 +38,8 @@ export function getEngine(): Engine<FileSystemCollectionDesc, FileSystemSchemati
3938
return engine;
4039
}
4140

42-
4341
export function getCollection(collectionName: string): Collection<any, any> {
44-
const engineHost = getEngineHost();
4542
const engine = getEngine();
46-
47-
// Add support for schemaJson.
48-
engineHost.registerOptionsTransform((schematic: FileSystemSchematicDesc, options: any) => {
49-
if (schematic.schema) {
50-
const SchemaMetaClass = SchemaClassFactory<any>(schematic.schemaJson!);
51-
const schemaClass = new SchemaMetaClass(options);
52-
return schemaClass.$$root();
53-
}
54-
return options;
55-
});
56-
5743
const collection = engine.createCollection(collectionName);
5844

5945
if (collection === null) {

packages/@ngtools/json-schema/package.json

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

packages/@ngtools/json-schema/src/error.ts

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

packages/@ngtools/json-schema/src/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/@ngtools/json-schema/src/mimetypes.ts

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

packages/@ngtools/json-schema/src/node.ts

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

packages/@ngtools/json-schema/src/schema-class-factory.ts

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

0 commit comments

Comments
 (0)