Skip to content

Commit

Permalink
Merge branch 'rkaraivanov/grids-restructure' of https://github.com/Ig…
Browse files Browse the repository at this point in the history
  • Loading branch information
MKirova authored and MKirova committed Oct 18, 2019
2 parents d597e4c + 86c1613 commit 080d805
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion projects/igniteui-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"web-animations-js": "^2.3.2"
},
"devDependencies": {
"igniteui-cli": "~4.2.0"
"@igniteui/angular-schematics": "^8.2.500-beta.0"
},
"ng-update": {
"migrations": "./migrations/migration-collection.json"
Expand Down
4 changes: 2 additions & 2 deletions projects/igniteui-angular/schematics/ng-add/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ describe('ng-add schematics', () => {
runner.runSchematic('ng-add', { normalizeCss: false }, tree);
const pkgJsonData = JSON.parse(tree.readContent('/package.json'));

expect(pkgJsonData.devDependencies['igniteui-cli']).toBeTruthy();
expect(pkgJsonData.dependencies['igniteui-cli']).toBeFalsy();
expect(pkgJsonData.devDependencies['@igniteui/angular-schematics']).toBeTruthy();
expect(pkgJsonData.dependencies['@igniteui/angular-schematics']).toBeFalsy();
});

it('should properly add polyfills', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { getWorkspace } from '@schematics/angular/utility/config';
import { Options } from '../interfaces/options';
import { WorkspaceProject, ProjectType, WorkspaceSchema } from '@schematics/angular/utility/workspace-models';

const schematicsPackage = '@igniteui/angular-schematics';

function logIncludingDependency(context: SchematicContext, pkg: string, version: string): void {
context.logger.info(`Including ${pkg} - Version: ${version}`);
}
Expand Down Expand Up @@ -65,7 +67,7 @@ export function addDependencies(options: Options): Rule {
}
});

addPackageToPkgJson(tree, 'igniteui-cli', pkgJson.devDependencies['igniteui-cli'], devDependencies);
addPackageToPkgJson(tree, schematicsPackage, pkgJson.devDependencies[schematicsPackage], devDependencies);
return tree;
};
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
import { RunSchematicTask, NodePackageInstallTask } from '@angular-devkit/schematics/tasks';

const extSchematicModule = 'igniteui-cli';
const extSchematicModule = '@igniteui/angular-schematics';
const schematicName = 'cli-config';

export function installPackageJsonDependencies(options: any): Rule {
Expand Down

0 comments on commit 080d805

Please sign in to comment.