Skip to content

Commit

Permalink
Merge pull request #12 from IKatsuba/revert-7-bc
Browse files Browse the repository at this point in the history
Revert "Bc"
  • Loading branch information
IKatsuba authored Jan 21, 2025
2 parents 02aea11 + 20a90ca commit 4aab476
Show file tree
Hide file tree
Showing 81 changed files with 1,894 additions and 3,939 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,4 @@ Thumbs.db

# Next.js
.next
out
vite.config.*.timestamp*
vitest.config.*.timestamp*
out
4 changes: 2 additions & 2 deletions docs/src/app/angular/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ createSourceFile(
);

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

// Save the modified file
saveProject();
Expand All @@ -81,7 +81,7 @@ export function mySchematic(): Rule {
createAngularProject(tree);

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

saveProject();

Expand Down
6 changes: 3 additions & 3 deletions docs/src/app/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ createProject();

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

const componentCount = getClasses().length;
const componentCount = getClasses('**/*.ts').length;

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

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

const componentCount = getClasses().length;
const componentCount = getClasses('**/*.ts').length;

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

const components = getComponents();
const components = getComponents('**/*.ts');

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

Expand Down
3 changes: 1 addition & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,5 @@
"linter": "eslint"
}
}
},
"useLegacyCache": true
}
}
Loading

0 comments on commit 4aab476

Please sign in to comment.