You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/Functions.md
+24-6Lines changed: 24 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -497,15 +497,33 @@ Note: The command for execution will be generated by Katacoda runner, so user wi
497
497
***
498
498
499
499
### buildNg <aname="buildNg"></a>
500
+
This function is used to build Angular project.
501
+
500
502
#### parameter
501
-
1. Path to the angular project, relative to workspace
502
-
2. (Optional) Custom output directory.
503
+
This function consist of two parameter.
504
+
505
+
1. First parameter:
506
+
-**Required**
507
+
-**Type**- String
508
+
-**Description**-It is the path to the Angular project, relative to workspace.
509
+
510
+
2. Second parameter:
511
+
-**optional**
512
+
-**Type**- String
513
+
-**Description**- It is the custom output directory.
503
514
#### example
504
-
buildNg("exampleAngularProject")
505
-
Will build the angular project to default output directory defined in angular.json outputPath key, normally set to dist/.
515
+
* buildNg("exampleAngularProject")
516
+
Will build the Angular project to default output directory defined in angular.json outputPath key, normally set to dist/.
517
+
518
+
* buildNg("exampleAngularProject", "testOutput")
519
+
Will build the Angular project to output directory testOutput.
520
+
521
+
Note:
522
+
1. To use only one parameter, you should have Angular CLI installed and the folder should exist. This can be done by using the devonfw-ide or by installing it manually with the npmInstall function.
523
+
524
+
2. The command for execution will be generated by Katacoda runner, so user will have to execute this command manually.
506
525
507
-
buildNg("exampleAngularProject", "testOutput")
508
-
Will build the angular project to output directory testOutput.
0 commit comments