Doug Parker 1aac244541 docs(@angular/cli): Adds developer documentation.
I wrote down my understanding of the best ways to build/run/test/debug this repository.

A couple other random things included here:
* Removed an extraneous `debugger;` statement which I kept hitting.
* Removed the `watch` scripts which are no longer used and don't need to be supported.
* Removed `yarn test-cli-e2e`, as it alters the $PATH and can use the wrong `ng` instance.
2019-11-14 11:12:29 -08:00

21 lines
673 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(options: {}) {
return (tree: Tree, context: SchematicContext) => {
// We pass information back to the test.
tree.create(
(context.schematic.description as any).extra, // tslint:disable-line:no-any
(context.schematic.collection.description as any).extra, // tslint:disable-line:no-any
);
};
}