Skip to content

Commit

Permalink
Merge pull request #7 from IKatsuba/bc
Browse files Browse the repository at this point in the history
Bc
  • Loading branch information
IKatsuba authored Jan 21, 2025
2 parents 6034b23 + 7660a83 commit 02aea11
Show file tree
Hide file tree
Showing 81 changed files with 3,898 additions and 1,853 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ Thumbs.db

# Next.js
.next
out
out
vite.config.*.timestamp*
vitest.config.*.timestamp*
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('app.component.ts').at(0)!, ['AppService']);
addProviders(getComponents().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('app.component.ts').at(0)!, ['AppService']);
addProviders(getComponents().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('**/*.ts').length;
const componentCount = getClasses().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('**/*.ts').length;
const componentCount = getClasses().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('**/*.ts');
const components = getComponents();

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

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

0 comments on commit 02aea11

Please sign in to comment.