mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 20:02:40 +08:00
20 lines
529 B
TypeScript
20 lines
529 B
TypeScript
/**
|
|
* @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
|
|
*/
|
|
// tslint:disable-next-line:no-implicit-dependencies
|
|
import { SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
|
|
export default function() {
|
|
return (_: Tree, context: SchematicContext) => {
|
|
context.addTask({
|
|
toConfiguration() {
|
|
return { name: 'file-tasks/file-task.js' };
|
|
},
|
|
});
|
|
};
|
|
}
|