mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
feat(generator): modify generator to create application
This commit is contained in:
@@ -37,8 +37,22 @@ export async function appGenerator(tree: Tree, options: Schema) {
|
||||
projectName: names(options.name).name,
|
||||
title: options.title,
|
||||
challengeNumber: options.challengeNumber,
|
||||
docRepository: options.docRepository,
|
||||
});
|
||||
|
||||
generateFiles(
|
||||
tree,
|
||||
join(__dirname, 'files', 'docs'),
|
||||
`./docs/src/content/docs/challenges/${options.docRepository}`,
|
||||
{
|
||||
tmpl: '',
|
||||
projectName: names(options.name).name,
|
||||
title: options.title,
|
||||
challengeNumber: options.challengeNumber,
|
||||
difficulty: options.challengeDifficulty,
|
||||
}
|
||||
);
|
||||
|
||||
if (options.addTest) {
|
||||
generateFiles(tree, join(__dirname, 'files', 'test'), appDirectory, {
|
||||
tmpl: '',
|
||||
|
||||
Reference in New Issue
Block a user