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
{{ message }}
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.
Compodoc is a great tool for automatically generating documentation for Angular projects. In order to use it, you need to run a simple command in the terminal.
This recipe will show how to run any terminal command within the nx build-chain using Compodoc as an example.
Steps
Define the terminal command to be run
The command we want to run for each project is:
compodoc -p [path/to/tsconfig.json]
Update workspace.json
For each project for which you want to enable compodoc, add a target in workspace.json:
Run a terminal command for each affected project
Compodoc is a great tool for automatically generating documentation for Angular projects. In order to use it, you need to run a simple command in the terminal.
This recipe will show how to run any terminal command within the nx build-chain using Compodoc as an example.
Steps
The command we want to run for each project is:
compodoc -p [path/to/tsconfig.json]
For each project for which you want to enable compodoc, add a target in
workspace.json
:@nrwl/workspace:run-commands API
For more information, see the run-commands api doc.
Note: Replace apps/my-app/tsconfig.app.json with the appropriate tsconfig.json path for each project.
To run the builder for a single project:
To run the builder for all affected projects:
For more information, see the nx affected api doc.
Pass custom args to custom terminal commands
nx run my-app:compodoc --my --custom --args='foo'
While possible, at the moment it's quite cumbersome -> see nrwl/nx#2241 (comment)
The text was updated successfully, but these errors were encountered: