Skip to content

Commit 4aab476

Browse files
authored
Merge pull request #12 from IKatsuba/revert-7-bc
Revert "Bc"
2 parents 02aea11 + 20a90ca commit 4aab476

File tree

81 files changed

+1894
-3939
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1894
-3939
lines changed

.gitignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,4 @@ Thumbs.db
4343

4444
# Next.js
4545
.next
46-
out
47-
vite.config.*.timestamp*
48-
vitest.config.*.timestamp*
46+
out

docs/src/app/angular/page.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ createSourceFile(
5959
);
6060

6161
// Perform some Angular-specific transformations
62-
addProviders(getComponents().at(0)!, ['AppService']);
62+
addProviders(getComponents('app.component.ts').at(0)!, ['AppService']);
6363

6464
// Save the modified file
6565
saveProject();
@@ -81,7 +81,7 @@ export function mySchematic(): Rule {
8181
createAngularProject(tree);
8282

8383
// Perform Angular-specific transformations
84-
addProviders(getComponents().at(0)!, ['AppService']);
84+
addProviders(getComponents('app.component.ts').at(0)!, ['AppService']);
8585

8686
saveProject();
8787

docs/src/app/page.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ createProject();
3232

3333
addSourceFiles(['src/**/*.ts']);
3434

35-
const componentCount = getClasses().length;
35+
const componentCount = getClasses('**/*.ts').length;
3636

3737
console.log(`Found ${componentCount} components.`);
3838
```
@@ -51,7 +51,7 @@ createProject(new InMemoryFileSystemHost());
5151

5252
createSourceFile('src/index.ts', 'export class Test {}');
5353

54-
const componentCount = getClasses().length;
54+
const componentCount = getClasses('**/*.ts').length;
5555

5656
console.log(`Found ${componentCount} components.`);
5757
```
@@ -67,7 +67,7 @@ export function ngAdd(options: scssScaffoldOptions): Rule {
6767
return (host: Tree) => {
6868
createAngularProject(host);
6969

70-
const components = getComponents();
70+
const components = getComponents('**/*.ts');
7171

7272
console.log(`Found ${components.length} components.`);
7373

nx.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,5 @@
6565
"linter": "eslint"
6666
}
6767
}
68-
},
69-
"useLegacyCache": true
68+
}
7069
}

0 commit comments

Comments
 (0)