How to use the @ngrx/store-devtools/schematics-core.addPackageToPackageJson function in @ngrx/store-devtools

To help you get started, we’ve selected a few @ngrx/store-devtools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ngrx / platform / modules / store-devtools / schematics / ng-add / index.ts View on Github external
return (host: Tree, context: SchematicContext) => {
    addPackageToPackageJson(
      host,
      'dependencies',
      '@ngrx/store-devtools',
      platformVersion
    );
    context.addTask(new NodePackageInstallTask());
    return host;
  };
}