mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-13 14:23:02 -05:00
Merge pull request #165 from DeveshChau/doc_update
docs: update start command
This commit is contained in:
@@ -33,7 +33,7 @@ The goal of this challenge is to understand what is causing this DOM refresh and
|
|||||||
---
|
---
|
||||||
|
|
||||||
:::note
|
:::note
|
||||||
Start the project by running: `npx nx serve ngfor-optimize`.
|
Start the project by running: `npx nx serve performance-ngfor-optimize`.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
:::tip[Reminder]
|
:::tip[Reminder]
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ WIP: The following documentation need to be written.
|
|||||||
---
|
---
|
||||||
|
|
||||||
:::note
|
:::note
|
||||||
Start the project by running: `npx nx serve <%= projectName %>`.
|
Start the project by running: `npx nx serve <%= appProjectName %>`.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
:::tip[Reminder]
|
:::tip[Reminder]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
### Run Application
|
### Run Application
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx nx serve <%= projectName %>
|
npx nx serve <%= appProjectName %>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Documentation and Instruction
|
### Documentation and Instruction
|
||||||
|
|||||||
@@ -41,7 +41,10 @@ function findPreviousChallengeFilePath(tree, path, number) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function challengeGenerator(tree: Tree, options: Schema) {
|
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;
|
const difficulty = options.challengeDifficulty;
|
||||||
|
|
||||||
@@ -74,6 +77,7 @@ export async function challengeGenerator(tree: Tree, options: Schema) {
|
|||||||
generateFiles(tree, join(__dirname, 'files', 'readme'), appDirectory, {
|
generateFiles(tree, join(__dirname, 'files', 'readme'), appDirectory, {
|
||||||
tmpl: '',
|
tmpl: '',
|
||||||
projectName: names(options.name).name,
|
projectName: names(options.name).name,
|
||||||
|
appProjectName: appProjectName,
|
||||||
title: options.title,
|
title: options.title,
|
||||||
challengeNumber,
|
challengeNumber,
|
||||||
docRepository: options.docRepository,
|
docRepository: options.docRepository,
|
||||||
@@ -86,6 +90,7 @@ export async function challengeGenerator(tree: Tree, options: Schema) {
|
|||||||
{
|
{
|
||||||
tmpl: '',
|
tmpl: '',
|
||||||
projectName: names(options.name).name,
|
projectName: names(options.name).name,
|
||||||
|
appProjectName: appProjectName,
|
||||||
title: options.title,
|
title: options.title,
|
||||||
challengeNumber,
|
challengeNumber,
|
||||||
difficulty,
|
difficulty,
|
||||||
|
|||||||
Reference in New Issue
Block a user