• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IgniteUI / igniteui-cli / 11972204609

22 Nov 2024 12:03PM UTC coverage: 70.38% (-0.07%) from 70.454%
11972204609

push

github

web-flow
chore(packages): Updating the versions for Angular 19 (#1340)

* chore(schematics, cli): Updating to 19.0.0

* chore(*): Updating the templates.

* chore(*): yarn.lock for typescript and builder change to application

* chore(PackageManager): allow legacy peer deps for DV components

* refactor(igx-templates): bump igniteui-angular to latest beta for all templates

* chore(templates): Bumping igniteui-angular and angular-eslint packages.

---------

Co-authored-by: jackofdiamond5 <jackofdiamond596@gmail.com>

919 of 1346 branches covered (68.28%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

2 existing lines in 1 file now uncovered.

4736 of 6689 relevant lines covered (70.8%)

86.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

25.0
/packages/ng-schematics/src/utils/NgFileSystem.ts
1
import { Tree } from "@angular-devkit/schematics";
2
import { App, FS_TOKEN, FS_TYPE_TOKEN, FsTypes, IFileSystem } from "@igniteui/cli-core";
1✔
3

4
export class NgTreeFileSystem implements IFileSystem {
1✔
5
        constructor(private tree: Tree) { }
20✔
6
        public fileExists(filePath: string): boolean {
7
                return this.tree.exists(filePath);
45✔
8
        }
9

10
        public readFile(filePath: string, encoding?: string): string {
11
                return (this.tree.read(filePath) || "").toString();
43!
12
        }
13

14
        public writeFile(filePath: string, text: string): void {
15
                return this.tree.overwrite(filePath, text);
5✔
16
        }
17

18
        public directoryExists(dirPath: string): boolean {
UNCOV
19
                const dir = this.tree.getDir(dirPath);
×
UNCOV
20
                return dir.subdirs.length || dir.subfiles.length ? true : false;
×
21
        }
22

23
        /**
24
         * Returns a list of file paths under a directory based on a match pattern
25
         * @param dirPath Root dir to search in
26
         * @param pattern Supports only recursive wildcard '\*\*\/\*'
27
         * @param ignorePattern Optional pattern to ignore
28
         */
29
        public glob(dirPath: string, pattern: string, ignorePattern?: string): string[] {
30
                const dir = this.tree.getDir(dirPath);
×
31
                const entries: string[] = [];
×
32
                pattern = pattern.split("**/*").pop() || pattern;
×
33

34
                dir.visit((_fullPath, entry) => {
×
35
                        if (ignorePattern && entry?.path.includes(ignorePattern)) {
×
36
                                return;
×
37
                        }
38

39
                        if (entry?.path.endsWith(pattern)) {
×
40
                                entries.push(entry.path);
×
41
                        }
42
                });
43

44
                return entries;
×
45
        }
46
}
47

48
export function setVirtual(tree: Tree) {
1✔
49
        App.container.set(FS_TOKEN, new NgTreeFileSystem(tree));
20✔
50
        App.container.set(FS_TYPE_TOKEN, FsTypes.virtual);
20✔
51
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc