Skip to content

Commit

Permalink
Lab #5
Browse files Browse the repository at this point in the history
  • Loading branch information
christianliebel committed Oct 7, 2024
1 parent b31a34c commit fc72a39
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const loginSteps = [];

This file was deleted.

7 changes: 6 additions & 1 deletion tools/my-plugin/src/generators/my-generator/generator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { applicationGenerator } from '@nx/angular/generators';
import { Tree } from '@nx/devkit';
import { generateFiles, joinPathFragments, readProjectConfiguration, Tree } from '@nx/devkit';
import { MyGeneratorGeneratorSchema } from './schema';

export async function myGeneratorGenerator(
Expand All @@ -12,6 +12,11 @@ export async function myGeneratorGenerator(
prefix: options.name,
style: 'scss',
});

const sourceDir = joinPathFragments(__dirname, 'files');
const projectDir = readProjectConfiguration(tree, options.name).root;
const destinationDir = joinPathFragments(projectDir, 'src', 'app');
generateFiles(tree, sourceDir, destinationDir, {});
}

export default myGeneratorGenerator;

0 comments on commit fc72a39

Please sign in to comment.