@igniteui/angular-schematics 17.1.1310-beta.0 → 17.1.1310-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igniteui/angular-schematics",
3
- "version": "17.1.1310-beta.0",
3
+ "version": "17.1.1310-beta.3",
4
4
  "description": "Ignite UI for Angular Schematics for ng new and ng generate",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,8 +22,8 @@
22
22
  "dependencies": {
23
23
  "@angular-devkit/core": "~14.0.0",
24
24
  "@angular-devkit/schematics": "~14.0.0",
25
- "@igniteui/angular-templates": "~17.1.1310-beta.0",
26
- "@igniteui/cli-core": "~13.1.0-beta.0",
25
+ "@igniteui/angular-templates": "~17.1.1310-beta.3",
26
+ "@igniteui/cli-core": "~13.1.0-beta.3",
27
27
  "@schematics/angular": "~14.0.0",
28
28
  "rxjs": "^6.6.3"
29
29
  },
@@ -0,0 +1,4 @@
1
+ export interface Options {
2
+ [key: string]: any;
3
+ applyMigrations: boolean;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,9 +2,10 @@
2
2
  "$schema": "../../../../node_modules/@angular-devkit/schematics/collection-schema.json",
3
3
  "schematics": {
4
4
  "migration-01": {
5
- "version": "XXX",
6
- "description": "Updates Ignite UI for Angular Schematics project from XXX to XXX",
7
- "factory": "./update-1"
5
+ "version": "17.1.0",
6
+ "description": "Updates Ignite UI for Angular Schematics project from 17.0.x to 17.1.x",
7
+ "factory": "./update-1",
8
+ "schema": "./schema.json"
8
9
  }
9
10
  }
10
11
  }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "igniteui-angular--schematics",
4
+ "title": "IgniteUI for Angular Schematics",
5
+ "type": "object",
6
+ "properties": {
7
+ "applyMigrations": {
8
+ "type": "boolean",
9
+ "description": "Apply migrations to the project.",
10
+ "default": true,
11
+ "x-prompt": "Would you like to apply automated migrations?"
12
+ }
13
+ }
14
+ }
@@ -1,2 +1,3 @@
1
1
  import { Rule } from "@angular-devkit/schematics";
2
- export default function (): Rule;
2
+ import { Options } from "../interfaces/options";
3
+ export default function (options: Options): Rule;
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- function default_1() {
3
+ function default_1(options) {
4
4
  return (host, context) => {
5
5
  var _a;
6
- context.logger.info("Updating project to Ignite UI CLI XXX");
6
+ if (!options.applyMigrations) {
7
+ return;
8
+ }
9
+ context.logger.info("Updating @igniteui/angular-schematics to 17.1.0");
7
10
  const igConfig = "./igniteui-cli.json";
8
11
  if (host.exists(igConfig)) {
9
12
  const content = JSON.parse(host.read(igConfig).toString());
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const path = require("path");
13
13
  const schematics_1 = require("@angular-devkit/schematics");
14
14
  const testing_1 = require("@angular-devkit/schematics/testing");
15
- describe("Update XXX", () => {
15
+ describe("Update 17.1.0", () => {
16
16
  let appTree;
17
17
  const schematicRunner = new testing_1.SchematicTestRunner("ig-migrate", path.join(__dirname, "../migration-collection.json"));
18
18
  beforeEach(() => {
@@ -43,7 +43,7 @@ describe("Update XXX", () => {
43
43
  "build": {}
44
44
  }
45
45
  `);
46
- const tree = yield schematicRunner.runSchematicAsync("migration-01", {}, appTree).toPromise();
46
+ const tree = yield schematicRunner.runSchematicAsync("migration-01", { applyMigrations: true }, appTree).toPromise();
47
47
  expect(tree.readContent("./igniteui-cli.json"))
48
48
  .toEqual(`{
49
49
  "igPackageRegistry": "https://packages.infragistics.com/npm/js-licensed/",