@igniteui/angular-schematics 16.0.1200-beta.0 → 16.0.1200

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": "16.0.1200-beta.0",
3
+ "version": "16.0.1200",
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": "~16.0.1200-beta.0",
26
- "@igniteui/cli-core": "~12.0.0-beta.0",
25
+ "@igniteui/angular-templates": "~16.0.1200",
26
+ "@igniteui/cli-core": "~12.0.0",
27
27
  "@schematics/angular": "~14.0.0",
28
28
  "rxjs": "^6.6.3"
29
29
  },
@@ -20,7 +20,6 @@ describe("cli-config schematic", () => {
20
20
  const sourceRoot = "src";
21
21
  // tslint:disable: object-literal-sort-keys
22
22
  const ngJsonConfig = {
23
- defaultProject: "testProj",
24
23
  projects: {
25
24
  testProj: {
26
25
  sourceRoot,
@@ -134,10 +133,9 @@ describe("cli-config schematic", () => {
134
133
  let targetImport = `node_modules/${angular_templates_1.NPM_PACKAGE}/styles/igniteui-angular.css`;
135
134
  yield runner.runSchematicAsync("cli-config", {}, tree).toPromise();
136
135
  let workspace = JSON.parse(tree.read("/angular.json").toString());
137
- let currentProjectName = workspace.defaultProject;
138
- expect(workspace.projects[currentProjectName].architect.build.options.styles.filter((s) => s.includes(targetImport)).length)
136
+ expect(workspace.projects.testProj.architect.build.options.styles.filter((s) => s.includes(targetImport)).length)
139
137
  .toBeGreaterThan(0);
140
- expect(workspace.projects[currentProjectName].architect.test.options.styles.filter((s) => s.includes(targetImport)).length)
138
+ expect(workspace.projects.testProj.architect.test.options.styles.filter((s) => s.includes(targetImport)).length)
141
139
  .toBeGreaterThan(0);
142
140
  resetTree();
143
141
  createIgPkgJson(angular_templates_1.FEED_PACKAGE);
@@ -145,10 +143,9 @@ describe("cli-config schematic", () => {
145
143
  targetImport = `node_modules/${angular_templates_1.FEED_PACKAGE}/styles/igniteui-angular.css`;
146
144
  yield runner.runSchematicAsync("cli-config", {}, tree).toPromise();
147
145
  workspace = JSON.parse(tree.read("/angular.json").toString());
148
- currentProjectName = workspace.defaultProject;
149
- expect(workspace.projects[currentProjectName].architect.build.options.styles.filter((s) => s.includes(targetImport)).length)
146
+ expect(workspace.projects.testProj.architect.build.options.styles.filter((s) => s.includes(targetImport)).length)
150
147
  .toBeGreaterThan(0);
151
- expect(workspace.projects[currentProjectName].architect.test.options.styles.filter((s) => s.includes(targetImport)).length)
148
+ expect(workspace.projects.testProj.architect.test.options.styles.filter((s) => s.includes(targetImport)).length)
152
149
  .toBeGreaterThan(0);
153
150
  }));
154
151
  it("should not add the default css theme to the workspace if the global styles file is scss", () => __awaiter(void 0, void 0, void 0, function* () {
@@ -159,11 +156,10 @@ describe("cli-config schematic", () => {
159
156
  expect(tree.exists(targetFile)).toBeTruthy();
160
157
  yield runner.runSchematicAsync("cli-config", {}, tree).toPromise();
161
158
  const workspace = JSON.parse(tree.read("/angular.json").toString());
162
- const currentProjectName = workspace.defaultProject;
163
159
  // the schematic creates the hierarchy that leads to the styles object within the workspace,
164
160
  // providing that it is not already present
165
- expect(workspace.projects[currentProjectName].architect.build.styles).toBeUndefined();
166
- expect(workspace.projects[currentProjectName].architect.test.styles).toBeUndefined();
161
+ expect(workspace.projects.testProj.architect.build.styles).toBeUndefined();
162
+ expect(workspace.projects.testProj.architect.test.styles).toBeUndefined();
167
163
  }));
168
164
  it("should add the default sass theme correctly", () => __awaiter(void 0, void 0, void 0, function* () {
169
165
  const targetFile = "/src/styles.sass";