-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ngrx dependencies for workspace and convert-to-workspace schematics
- Loading branch information
Showing
5 changed files
with
68 additions
and
10 deletions.
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
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
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,13 +1,13 @@ | ||
import {apply, branchAndMerge, chain, mergeWith, move, Rule, template, Tree, url} from '@angular-devkit/schematics'; | ||
import {Schema} from './schema'; | ||
import * as stringUtils from '@schematics/angular/strings'; | ||
import {nxVersion, schematicsVersion} from '../utility/lib-versions'; | ||
import {ngrxVersion, nxVersion, schematicsVersion} from '../utility/lib-versions'; | ||
|
||
export default function(options: Schema): Rule { | ||
const npmScope = options.npmScope ? options.npmScope : options.name; | ||
const templateSource = apply( | ||
url('./files'), | ||
[template({utils: stringUtils, dot: '.', nxVersion, schematicsVersion, ...options as object, npmScope})]); | ||
[template({utils: stringUtils, dot: '.', nxVersion, ngrxVersion, schematicsVersion, ...options as object, npmScope})]); | ||
|
||
return chain([branchAndMerge(chain([mergeWith(templateSource)]))]); | ||
} |