@igniteui/angular-schematics 21.1.1492 → 21.1.14100-alpha.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": "21.1.1492",
3
+ "version": "21.1.14100-alpha.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": "^21.0.0",
24
24
  "@angular-devkit/schematics": "^21.0.0",
25
- "@igniteui/angular-templates": "~21.1.1492",
26
- "@igniteui/cli-core": "~14.9.2",
25
+ "@igniteui/angular-templates": "^21.1.14100-alpha.0",
26
+ "@igniteui/cli-core": "^14.10.0-alpha.0",
27
27
  "@schematics/angular": "^21.0.0",
28
28
  "minimatch": "^10.0.1",
29
29
  "rxjs": "~7.8.1"
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // tslint:disable-next-line:no-implicit-dependencies
4
3
  const cli_core_1 = require("@igniteui/cli-core");
5
4
  function install() {
6
- if (!!process.env.npm_config_global) {
5
+ if (process.env.npm_config_global) {
7
6
  cli_core_1.App.initialize("angular-cli");
8
7
  cli_core_1.GoogleAnalytics.post({
9
8
  t: "screenview",
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // tslint:disable-next-line:no-implicit-dependencies
4
3
  const cli_core_1 = require("@igniteui/cli-core");
5
4
  function uninstall() {
6
- if (!!process.env.npm_config_global) {
5
+ if (process.env.npm_config_global) {
7
6
  cli_core_1.App.initialize("angular-cli");
8
7
  cli_core_1.GoogleAnalytics.post({
9
8
  t: "screenview",
@@ -91,7 +91,7 @@ function importBrowserAnimations() {
91
91
  const projects = yield (0, theme_import_1.getProjects)(tree);
92
92
  projects.forEach(project => {
93
93
  // TODO: Resolve hardcoded paths instead
94
- const moduleFilePath = `${project.sourceRoot}/app/app.module.ts`;
94
+ const moduleFilePath = `${project.sourceRoot}/app/app-module.ts`;
95
95
  if (tree.exists(moduleFilePath)) {
96
96
  const mainModule = new angular_templates_1.AngularTypeScriptFileUpdate(moduleFilePath, false, {
97
97
  indentSize: 4,
@@ -136,7 +136,6 @@ function importStyles() {
136
136
  yield (0, theme_import_1.importDefaultTheme)(tree);
137
137
  });
138
138
  }
139
- // tslint:disable-next-line:space-before-function-paren
140
139
  function default_1() {
141
140
  return (tree) => {
142
141
  (0, NgFileSystem_1.setVirtual)(tree);
@@ -41,7 +41,6 @@ describe("cli-config schematic", () => {
41
41
  const runner = new testing_1.SchematicTestRunner("cli-schematics", collectionPath);
42
42
  let tree;
43
43
  const sourceRoot = "src";
44
- // tslint:disable: object-literal-sort-keys
45
44
  const ngJsonConfig = {
46
45
  projects: {
47
46
  testProj: {
@@ -199,7 +198,7 @@ describe("cli-config schematic", () => {
199
198
  content = tree.readContent(targetFile);
200
199
  expect(content.includes(`@use "${cli_core_1.FEED_ANGULAR}`)).toBeTruthy();
201
200
  }));
202
- it("should add BrowserAnimationsModule to app.module.ts", () => __awaiter(void 0, void 0, void 0, function* () {
201
+ it("should add BrowserAnimationsModule to app-module.ts", () => __awaiter(void 0, void 0, void 0, function* () {
203
202
  const moduleContent = `import { NgModule } from '@angular/core';
204
203
  @NgModule({
205
204
  imports: []
@@ -215,7 +214,7 @@ import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
215
214
  export class AppModule {
216
215
  }
217
216
  `;
218
- const targetFile = "./src/app/app.module.ts";
217
+ const targetFile = "./src/app/app-module.ts";
219
218
  tree.create(targetFile, moduleContent);
220
219
  yield runner.runSchematic("cli-config", {}, tree);
221
220
  const content = tree.readContent(targetFile);
@@ -136,7 +136,6 @@ describe("Schematics ng-new", () => {
136
136
  expect(e.files.length).toEqual(1);
137
137
  expect(e.exists(`${workingDirectory}/.gitignore`)).toBeTruthy();
138
138
  const taskOptions = runner.tasks.map(task => task.options);
139
- // tslint:disable:object-literal-sort-keys
140
139
  const expectedInstall = {
141
140
  command: "install",
142
141
  quiet: true,
@@ -186,7 +185,6 @@ describe("Schematics ng-new", () => {
186
185
  expect(e.files.length).toEqual(1);
187
186
  expect(e.exists(`${workingDirectory}/.gitignore`)).toBeTruthy();
188
187
  const taskOptions = runner.tasks.map(task => task.options);
189
- // tslint:disable:object-literal-sort-keys
190
188
  const expectedInstall = {
191
189
  command: "install",
192
190
  quiet: true,
@@ -40,7 +40,6 @@ const path = __importStar(require("path"));
40
40
  const SchematicsTemplateManager_1 = require("../SchematicsTemplateManager");
41
41
  const NgFileSystem_1 = require("../utils/NgFileSystem");
42
42
  describe("Schematics upgrade-packages", () => {
43
- // tslint:disable: object-literal-sort-keys
44
43
  let appTree;
45
44
  const collectionPath = path.join(__dirname, "../collection.json");
46
45
  const schematicName = "upgrade-packages";
package/src/tslint.json DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "extends": "../../../tslint.json",
3
- "rules": {
4
- "no-implicit-dependencies": [true, "dev"],
5
- "no-submodule-imports": [
6
- true,
7
- "@angular-devkit/core",
8
- "@angular-devkit/schematics",
9
- "rxjs"
10
- ]
11
- }
12
- }