"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/angular_devkit/schematics/tools/workflow/node-workflow.ts" between
angular-cli-11.0.1.tar.gz and angular-cli-11.0.2.tar.gz

About: Angular CLI is a command line interface for Angular.

node-workflow.ts  (angular-cli-11.0.1):node-workflow.ts  (angular-cli-11.0.2)
skipping to change at line 15 skipping to change at line 15
* Use of this source code is governed by an MIT-style license that can be * 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 * found in the LICENSE file at https://angular.io/license
*/ */
import { Path, getSystemPath, normalize, schema, virtualFs } from '@angular-devk it/core'; import { Path, getSystemPath, normalize, schema, virtualFs } from '@angular-devk it/core';
import { NodeJsSyncHost } from '@angular-devkit/core/node'; import { NodeJsSyncHost } from '@angular-devkit/core/node';
import { import {
workflow, workflow,
} from '@angular-devkit/schematics'; // tslint:disable-line:no-implicit-depende ncies } from '@angular-devkit/schematics'; // tslint:disable-line:no-implicit-depende ncies
import { BuiltinTaskExecutor } from '../../tasks/node'; import { BuiltinTaskExecutor } from '../../tasks/node';
import { FileSystemEngine } from '../description'; import { FileSystemEngine } from '../description';
import { OptionTransform } from '../file-system-engine-host-base';
import { NodeModulesEngineHost } from '../node-module-engine-host'; import { NodeModulesEngineHost } from '../node-module-engine-host';
import { validateOptionsWithSchema } from '../schema-option-transform'; import { validateOptionsWithSchema } from '../schema-option-transform';
export interface NodeWorkflowOptions { export interface NodeWorkflowOptions {
force?: boolean; force?: boolean;
dryRun?: boolean; dryRun?: boolean;
packageManager?: string; packageManager?: string;
packageRegistry?: string; packageRegistry?: string;
registry?: schema.CoreSchemaRegistry; registry?: schema.CoreSchemaRegistry;
resolvePaths?: string[]; resolvePaths?: string[];
schemaValidation?: boolean; schemaValidation?: boolean;
optionTransforms?: OptionTransform<object, object>[];
} }
/** /**
* A workflow specifically for Node tools. * A workflow specifically for Node tools.
*/ */
export class NodeWorkflow extends workflow.BaseWorkflow { export class NodeWorkflow extends workflow.BaseWorkflow {
constructor(root: string, options: NodeWorkflowOptions); constructor(root: string, options: NodeWorkflowOptions);
constructor(host: virtualFs.Host, options: NodeWorkflowOptions & { root?: Path }); constructor(host: virtualFs.Host, options: NodeWorkflowOptions & { root?: Path });
skipping to change at line 69 skipping to change at line 71
packageManager: options.packageManager, packageManager: options.packageManager,
rootDirectory: root && getSystemPath(root), rootDirectory: root && getSystemPath(root),
registry: options.packageRegistry, registry: options.packageRegistry,
}); });
engineHost.registerTaskExecutor(BuiltinTaskExecutor.RepositoryInitializer, { engineHost.registerTaskExecutor(BuiltinTaskExecutor.RepositoryInitializer, {
rootDirectory: root && getSystemPath(root), rootDirectory: root && getSystemPath(root),
}); });
engineHost.registerTaskExecutor(BuiltinTaskExecutor.RunSchematic); engineHost.registerTaskExecutor(BuiltinTaskExecutor.RunSchematic);
engineHost.registerTaskExecutor(BuiltinTaskExecutor.TslintFix); engineHost.registerTaskExecutor(BuiltinTaskExecutor.TslintFix);
if (options.optionTransforms) {
for (const transform of options.optionTransforms) {
engineHost.registerOptionsTransform(transform);
}
}
if (options.schemaValidation) { if (options.schemaValidation) {
engineHost.registerOptionsTransform(validateOptionsWithSchema(this.registr y)); engineHost.registerOptionsTransform(validateOptionsWithSchema(this.registr y));
} }
this._context = []; this._context = [];
} }
get engine(): FileSystemEngine { get engine(): FileSystemEngine {
return this._engine as FileSystemEngine; return this._engine as FileSystemEngine;
} }
 End of changes. 3 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)