file-system-engine-host.d.ts 1.4 KB

12345678910111213141516171819202122232425262728
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.dev/license
  7. */
  8. import { Observable } from 'rxjs';
  9. import { RuleFactory, TaskExecutor } from '../src';
  10. import { FileSystemCollectionDesc, FileSystemSchematicDesc } from './description';
  11. import { FileSystemEngineHostBase } from './file-system-engine-host-base';
  12. /**
  13. * A simple EngineHost that uses a root with one directory per collection inside of it. The
  14. * collection declaration follows the same rules as the regular FileSystemEngineHostBase.
  15. */
  16. export declare class FileSystemEngineHost extends FileSystemEngineHostBase {
  17. protected _root: string;
  18. constructor(_root: string);
  19. protected _resolveCollectionPath(name: string): string;
  20. protected _resolveReferenceString(refString: string, parentPath: string): {
  21. ref: RuleFactory<{}>;
  22. path: string;
  23. } | null;
  24. protected _transformCollectionDescription(name: string, desc: Partial<FileSystemCollectionDesc>): FileSystemCollectionDesc;
  25. protected _transformSchematicDescription(name: string, _collection: FileSystemCollectionDesc, desc: Partial<FileSystemSchematicDesc>): FileSystemSchematicDesc;
  26. hasTaskExecutor(name: string): boolean;
  27. createTaskExecutor(name: string): Observable<TaskExecutor>;
  28. }