/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { TaskExecutor, TaskExecutorFactory } from '../../src'; import { NodePackageName, NodePackageTaskFactoryOptions } from '../package-manager/options'; import { RepositoryInitializerName, RepositoryInitializerTaskFactoryOptions, } from '../repo-init/options'; import { RunSchematicName } from '../run-schematic/options'; import { TslintFixName } from '../tslint-fix/options'; export class BuiltinTaskExecutor { static readonly NodePackage: TaskExecutorFactory = { name: NodePackageName, create: (options) => import('../package-manager/executor').then(mod => mod.default(options)) as Promise>, }; static readonly RepositoryInitializer: TaskExecutorFactory = { name: RepositoryInitializerName, create: (options) => import('../repo-init/executor').then(mod => mod.default(options)), }; static readonly RunSchematic: TaskExecutorFactory<{}> = { name: RunSchematicName, create: () => import('../run-schematic/executor').then(mod => mod.default()) as Promise>, }; /** @deprecated since version 11. Use `ng lint --fix` directly instead. */ static readonly TslintFix: TaskExecutorFactory<{}> = { name: TslintFixName, create: () => import('../tslint-fix/executor').then(mod => mod.default()), }; }