Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
nitayneeman committed Aug 2, 2019
1 parent f6a8327 commit aad84ee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Expand Up @@ -28,9 +28,7 @@ import { Rule, Tree } from '@angular-devkit/schematics';
import { addPackageJsonDependency, NodeDependency, NodeDependencyType } from 'schematics-utilities';

function addDependencies(host: Tree): Tree {
const dependencies: NodeDependency[] = [
{ type: NodeDependencyType.Default, version: '4.17.10', name: 'lodash-es' }
];
const dependencies: NodeDependency[] = [{ type: NodeDependencyType.Default, version: '4.17.10', name: 'lodash-es' }];

// 2. Just use it whenever you need :)
dependencies.forEach(dependency => addPackageJsonDependency(host, dependency));
Expand All @@ -54,6 +52,6 @@ Check out the [API docs](https://nitayneeman.github.io/schematics-utilities/) fo
This repository contains code which is directly taken from:

- [Angular Schematics package](https://github.com/angular/angular-cli/tree/master/packages/schematics)
- [Angular Material](https://github.com/angular/material2/tree/master/src/lib/schematics/utils)
- [Angular Material](https://github.com/angular/components/tree/master/src/cdk/schematics/utils)

All credits go to the respective developers! 👏

0 comments on commit aad84ee

Please sign in to comment.