mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
docs: update projectName
This commit is contained in:
@@ -41,7 +41,10 @@ function findPreviousChallengeFilePath(tree, path, number) {
|
||||
}
|
||||
|
||||
export async function challengeGenerator(tree: Tree, options: Schema) {
|
||||
const { appDirectory } = getProjectDir(options.name, options.directory);
|
||||
const { appProjectName, appDirectory } = getProjectDir(
|
||||
options.name,
|
||||
options.directory
|
||||
);
|
||||
|
||||
const difficulty = options.challengeDifficulty;
|
||||
|
||||
@@ -73,7 +76,7 @@ export async function challengeGenerator(tree: Tree, options: Schema) {
|
||||
|
||||
generateFiles(tree, join(__dirname, 'files', 'readme'), appDirectory, {
|
||||
tmpl: '',
|
||||
projectName: names(options.name).name,
|
||||
projectName: appProjectName,
|
||||
title: options.title,
|
||||
challengeNumber,
|
||||
docRepository: options.docRepository,
|
||||
@@ -85,7 +88,7 @@ export async function challengeGenerator(tree: Tree, options: Schema) {
|
||||
`./docs/src/content/docs/challenges/${options.docRepository}`,
|
||||
{
|
||||
tmpl: '',
|
||||
projectName: names(options.name).name,
|
||||
projectName: appProjectName,
|
||||
title: options.title,
|
||||
challengeNumber,
|
||||
difficulty,
|
||||
|
||||
Reference in New Issue
Block a user