Skip to content

Commit acec61f

Browse files
authored
updated function buildNg
1 parent 13c12bc commit acec61f

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

documentation/Functions.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,16 +322,27 @@ downloadFile("https://bit.ly/2BCkFa9", "file", "downloads")
322322
***
323323

324324
### buildNg <a name="buildNg"></a>
325+
This function is used to build angular project.
326+
325327
#### parameter
326-
1. Path to the angular project, relative to workspace
327-
2. (Optional) Custom output directory.
328+
You need two parameter for this function.
329+
330+
Example: buildNg(1st-parameter, 2nd-parameter)
331+
332+
1st-parameter: It is the path to the angular project, relative to workspace. It is of type String.
333+
334+
2nd-parameter: It is an optional parameter. It is the Custom output directory. it is of type String.
328335
#### example
329-
buildNg("exampleAngularProject")
336+
1. buildNg("exampleAngularProject")
330337
Will build the angular project to default output directory defined in angular.json outputPath key, normally set to dist/.
331338

332-
buildNg("exampleAngularProject", "testOutput")
339+
2. buildNg("exampleAngularProject", "testOutput")
333340
Will build the angular project to output directory testOutput.
334341

342+
Note:
343+
1. To use only one parameter, you should have angular installed and the folder should exist.
344+
2. No background script will run. Katacoda user will have to manually execute this function.
345+
335346
***
336347

337348
### runClientNg <a name="runClientNg"></a>
@@ -433,4 +444,4 @@ addSetupScript("assets/createProjectScript.sh", "assets/createProjectScript.ps1"
433444
1. Path of the file to be opened (relative path to the workspace directory)
434445

435446
#### example
436-
openFile("cobigenexample/core/src/main/java/com/example/application/cobigenexample/customermanagement/dataaccess/api/CustomerEntity.java")
447+
openFile("cobigenexample/core/src/main/java/com/example/application/cobigenexample/customermanagement/dataaccess/api/CustomerEntity.java")

0 commit comments

Comments
 (0)