-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(schematic-utils): schematic utils from angular schematics
- Loading branch information
1 parent
075c5c5
commit a88c2d3
Showing
23 changed files
with
3,027 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
export * from "./utils/template"; | ||
export * from "./utils/create-app-module"; | ||
export * from "./utils/get-file-content"; | ||
export * from "./utils/ast-utils"; | ||
export * from "./utils/dependencies"; | ||
export * from "./utils/find-module"; | ||
export * from "./utils/ng-ast-utils"; | ||
export * from "./utils/workspace"; | ||
export * from "./utils/workspace-models"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* @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.io/license | ||
*/ | ||
|
||
import { HostTree } from "./host-tree"; | ||
|
||
export class EmptyTree extends HostTree { | ||
constructor() { | ||
super(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { DelegateTree } from "./delegate"; | ||
|
||
export class UnitTestTree extends DelegateTree { | ||
get files(): string[] { | ||
const result: string[] = []; | ||
this.visit((path) => result.push(path)); | ||
|
||
return result; | ||
} | ||
|
||
readContent(path: string): string { | ||
const buffer = this.read(path); | ||
if (buffer === null) { | ||
return ""; | ||
} | ||
|
||
return buffer.toString(); | ||
} | ||
} |
Oops, something went wrong.