Node.js versions

Compodoc is tested with only LTS versions : v8.x, v6.x & v4.x ; and support also Node.js v9.x & v10.x


Compodoc supports last Angular-CLI version : 7.x

Just run Compodoc in a fresh or existing project.

Global installation

Install from npm :

npm install -g @compodoc/compodoc

If you use PowerShell on Windows, add quotes :

npm install -g "@compodoc/compodoc"

Local installation

npm install --save-dev @compodoc/compodoc


Define a script task for it in your package.json (with npm 6.x) :

"scripts": {
  "compodoc": "npx compodoc -p src/"

and run it like a normal npm script :

npm run compodoc

See usage for more details.

Position of tsconfig file in codebase

Compodoc start at the folder level of the tsconfig file provided with -p option.

Example for an Angular CLI project :

├── src
│ ├── app
│ │ ├── app.component.ts
│ │ └── app.module.ts
│ ├── main.ts
│ ├── ...
│ └──
└── tsconfig.json
compodoc -p src/