@igniteui/angular-schematics 14.1.1010 → 15.0.1100-rc.0
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": "
|
|
3
|
+
"version": "15.0.1100-rc.0",
|
|
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": "~
|
|
26
|
-
"@igniteui/cli-core": "~
|
|
25
|
+
"@igniteui/angular-templates": "~15.0.1100-rc.0",
|
|
26
|
+
"@igniteui/cli-core": "~11.0.0-rc.0",
|
|
27
27
|
"@schematics/angular": "~14.0.0",
|
|
28
28
|
"rxjs": "^6.6.3"
|
|
29
29
|
},
|
package/src/cli-config/index.js
CHANGED
|
@@ -57,8 +57,8 @@ Running 'ng update' will prevent potential version conflicts.\n`);
|
|
|
57
57
|
}
|
|
58
58
|
function addTypographyToProj() {
|
|
59
59
|
return (tree) => {
|
|
60
|
-
(0, cli_core_1.addClassToBody)(tree, "
|
|
61
|
-
(0, cli_core_1.addClassToBody)(tree, "
|
|
60
|
+
(0, cli_core_1.addClassToBody)(tree, "ig-typography");
|
|
61
|
+
(0, cli_core_1.addClassToBody)(tree, "ig-scrollbar");
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
function importBrowserAnimations() {
|
|
@@ -103,7 +103,7 @@ describe("cli-config schematic", () => {
|
|
|
103
103
|
const targetFile = "/src/index.html";
|
|
104
104
|
yield runner.runSchematicAsync("cli-config", {}, tree).toPromise();
|
|
105
105
|
const content = tree.readContent(targetFile);
|
|
106
|
-
expect(content.includes("<body class=\"
|
|
106
|
+
expect(content.includes("<body class=\"ig-typography ig-scrollbar\">")).toBeTruthy();
|
|
107
107
|
}));
|
|
108
108
|
it("should add Titillium and Material Icons stylesheets correctly", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
109
109
|
const targetFile = "/src/index.html";
|
|
@@ -119,14 +119,14 @@ describe("cli-config schematic", () => {
|
|
|
119
119
|
tree.create(targetFile, "");
|
|
120
120
|
yield runner.runSchematicAsync("cli-config", {}, tree).toPromise();
|
|
121
121
|
let content = tree.readContent(targetFile);
|
|
122
|
-
expect(content.includes(`@use "
|
|
122
|
+
expect(content.includes(`@use "${angular_templates_1.NPM_PACKAGE}`)).toBeTruthy();
|
|
123
123
|
tree.overwrite(targetFile, "");
|
|
124
124
|
resetTree();
|
|
125
125
|
createIgPkgJson(angular_templates_1.FEED_PACKAGE);
|
|
126
126
|
populatePkgJson(angular_templates_1.FEED_PACKAGE);
|
|
127
127
|
yield runner.runSchematicAsync("cli-config", {}, tree).toPromise();
|
|
128
128
|
content = tree.readContent(targetFile);
|
|
129
|
-
expect(content.includes(`@use "
|
|
129
|
+
expect(content.includes(`@use "${angular_templates_1.FEED_PACKAGE}`)).toBeTruthy();
|
|
130
130
|
}));
|
|
131
131
|
it("should add the default css theme to the workspace", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
132
132
|
const targetFile = "/angular.json";
|
|
@@ -170,14 +170,14 @@ describe("cli-config schematic", () => {
|
|
|
170
170
|
tree.create(targetFile, "");
|
|
171
171
|
yield runner.runSchematicAsync("cli-config", {}, tree).toPromise();
|
|
172
172
|
let content = tree.readContent(targetFile);
|
|
173
|
-
expect(content.includes(`@use "
|
|
173
|
+
expect(content.includes(`@use "${angular_templates_1.NPM_PACKAGE}`)).toBeTruthy();
|
|
174
174
|
tree.overwrite(targetFile, "");
|
|
175
175
|
resetTree();
|
|
176
176
|
createIgPkgJson(angular_templates_1.FEED_PACKAGE);
|
|
177
177
|
populatePkgJson(angular_templates_1.FEED_PACKAGE);
|
|
178
178
|
yield runner.runSchematicAsync("cli-config", {}, tree).toPromise();
|
|
179
179
|
content = tree.readContent(targetFile);
|
|
180
|
-
expect(content.includes(`@use "
|
|
180
|
+
expect(content.includes(`@use "${angular_templates_1.FEED_PACKAGE}`)).toBeTruthy();
|
|
181
181
|
}));
|
|
182
182
|
it("should add BrowserAnimationsModule to app.module.ts", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
183
183
|
const moduleContent = `import { NgModule } from '@angular/core';
|
|
@@ -62,7 +62,7 @@ exports.addFontsToIndexHtml = addFontsToIndexHtml;
|
|
|
62
62
|
function importDefaultThemeSass(tree, filePath) {
|
|
63
63
|
const igxPackage = (0, angular_templates_1.resolveIgxPackage)(angular_templates_1.NPM_PACKAGE);
|
|
64
64
|
const sassImports = `
|
|
65
|
-
@use "
|
|
65
|
+
@use "${igxPackage}/theming" as *;
|
|
66
66
|
// Uncomment the following lines if you want to add a custom palette:
|
|
67
67
|
// $primary: #731963 !default;
|
|
68
68
|
// $secondary: #ce5712 !default;
|