mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 11:44:05 +08:00
Updates for all angular.io links to the new angular.dev domain. Additionally, adjustment to new resources where the equivalent does not exist on the new site (e.g. Tour of Heroes tutorial)
35 lines
918 B
TypeScript
35 lines
918 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC 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.dev/license
|
|
*/
|
|
|
|
import { TaskConfiguration, TaskConfigurationGenerator } from '../../src';
|
|
import { NodePackageName, NodePackageTaskOptions } from './options';
|
|
|
|
/**
|
|
* @deprecated since version 18. Create a custom task if required.
|
|
*/
|
|
export class NodePackageLinkTask implements TaskConfigurationGenerator<NodePackageTaskOptions> {
|
|
quiet = true;
|
|
|
|
constructor(
|
|
public packageName?: string,
|
|
public workingDirectory?: string,
|
|
) {}
|
|
|
|
toConfiguration(): TaskConfiguration<NodePackageTaskOptions> {
|
|
return {
|
|
name: NodePackageName,
|
|
options: {
|
|
command: 'link',
|
|
quiet: this.quiet,
|
|
workingDirectory: this.workingDirectory,
|
|
packageName: this.packageName,
|
|
},
|
|
};
|
|
}
|
|
}
|