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

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.3",
3
+ "version": "17.1.1310-beta.4",
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.3",
26
- "@igniteui/cli-core": "~13.1.0-beta.3",
25
+ "@igniteui/angular-templates": "~17.1.1310-beta.4",
26
+ "@igniteui/cli-core": "~13.1.0-beta.4",
27
27
  "@schematics/angular": "~14.0.0",
28
28
  "rxjs": "^6.6.3"
29
29
  },
@@ -6,9 +6,9 @@
6
6
  "properties": {
7
7
  "applyMigrations": {
8
8
  "type": "boolean",
9
- "description": "Apply migrations to the project.",
9
+ "description": "We've updated our view templates to use Standalone Components. Those are compatible with your project and you can start using them now or remain with `NgModule` dependencies.",
10
10
  "default": true,
11
- "x-prompt": "Would you like to apply automated migrations?"
11
+ "x-prompt": "Would you like to continue with Standalone Components for new views?"
12
12
  }
13
13
  }
14
14
  }
@@ -6,13 +6,13 @@ function default_1(options) {
6
6
  if (!options.applyMigrations) {
7
7
  return;
8
8
  }
9
- context.logger.info("Updating @igniteui/angular-schematics to 17.1.0");
10
- const igConfig = "./igniteui-cli.json";
9
+ context.logger.info("We've updated your project type to `igx-ts-legacy` to continue using `NgModule`-s. You can always change back to `igx-ts` should you want to start using Standalone Components.");
10
+ const igConfig = "./ignite-ui-cli.json";
11
11
  if (host.exists(igConfig)) {
12
12
  const content = JSON.parse(host.read(igConfig).toString());
13
13
  if (((_a = content === null || content === void 0 ? void 0 : content.project) === null || _a === void 0 ? void 0 : _a.projectType) === "igx-ts") {
14
14
  content.project.projectType = "igx-ts-legacy";
15
- host.overwrite(igConfig, JSON.stringify(content, null, 4));
15
+ host.overwrite(igConfig, JSON.stringify(content, null, 2));
16
16
  }
17
17
  }
18
18
  };
@@ -19,54 +19,54 @@ describe("Update 17.1.0", () => {
19
19
  appTree = new testing_1.UnitTestTree(new schematics_1.EmptyTree());
20
20
  });
21
21
  it("change projectType to legacy", (done) => __awaiter(void 0, void 0, void 0, function* () {
22
- appTree.create("./igniteui-cli.json", `{
23
- "igPackageRegistry": "https://packages.infragistics.com/npm/js-licensed/",
24
- "customTemplates": [],
25
- "skipGit": false,
26
- "skipAnalytic": false,
27
- "version": "13.0.1",
28
- "project": {
29
- "defaultPort": 4200,
30
- "framework": "angular",
31
- "projectType": "igx-ts",
32
- "projectTemplate": "side-nav",
33
- "theme": "Default",
34
- "themePath": "node_modules/igniteui-angular/styles/igniteui-angular.css",
35
- "isBundle": false,
36
- "bundleFilePath": "",
37
- "igniteuiSource": "",
38
- "components": [],
39
- "sourceFiles": [],
40
- "isShowcase": false,
41
- "version": ""
42
- },
43
- "build": {}
22
+ appTree.create("./ignite-ui-cli.json", `{
23
+ "igPackageRegistry": "https://packages.infragistics.com/npm/js-licensed/",
24
+ "customTemplates": [],
25
+ "skipGit": false,
26
+ "skipAnalytic": false,
27
+ "version": "13.0.1",
28
+ "project": {
29
+ "defaultPort": 4200,
30
+ "framework": "angular",
31
+ "projectType": "igx-ts",
32
+ "projectTemplate": "side-nav",
33
+ "theme": "Default",
34
+ "themePath": "node_modules/igniteui-angular/styles/igniteui-angular.css",
35
+ "isBundle": false,
36
+ "bundleFilePath": "",
37
+ "igniteuiSource": "",
38
+ "components": [],
39
+ "sourceFiles": [],
40
+ "isShowcase": false,
41
+ "version": ""
42
+ },
43
+ "build": {}
44
44
  }
45
45
  `);
46
46
  const tree = yield schematicRunner.runSchematicAsync("migration-01", { applyMigrations: true }, appTree).toPromise();
47
- expect(tree.readContent("./igniteui-cli.json"))
47
+ expect(tree.readContent("./ignite-ui-cli.json"))
48
48
  .toEqual(`{
49
- "igPackageRegistry": "https://packages.infragistics.com/npm/js-licensed/",
50
- "customTemplates": [],
51
- "skipGit": false,
52
- "skipAnalytic": false,
53
- "version": "13.0.1",
54
- "project": {
55
- "defaultPort": 4200,
56
- "framework": "angular",
57
- "projectType": "igx-ts-legacy",
58
- "projectTemplate": "side-nav",
59
- "theme": "Default",
60
- "themePath": "node_modules/igniteui-angular/styles/igniteui-angular.css",
61
- "isBundle": false,
62
- "bundleFilePath": "",
63
- "igniteuiSource": "",
64
- "components": [],
65
- "sourceFiles": [],
66
- "isShowcase": false,
67
- "version": ""
68
- },
69
- "build": {}
49
+ "igPackageRegistry": "https://packages.infragistics.com/npm/js-licensed/",
50
+ "customTemplates": [],
51
+ "skipGit": false,
52
+ "skipAnalytic": false,
53
+ "version": "13.0.1",
54
+ "project": {
55
+ "defaultPort": 4200,
56
+ "framework": "angular",
57
+ "projectType": "igx-ts-legacy",
58
+ "projectTemplate": "side-nav",
59
+ "theme": "Default",
60
+ "themePath": "node_modules/igniteui-angular/styles/igniteui-angular.css",
61
+ "isBundle": false,
62
+ "bundleFilePath": "",
63
+ "igniteuiSource": "",
64
+ "components": [],
65
+ "sourceFiles": [],
66
+ "isShowcase": false,
67
+ "version": ""
68
+ },
69
+ "build": {}
70
70
  }`);
71
71
  done();
72
72
  }));