Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

livingdoc-typescript-plugin

jboz122MIT0.7.0TypeScript support: included

Generate a nice living documentation for your typescript projects.

living documentation, livingdoc, class diagram, uml diagram, plantuml, typescript, uml, cli

readme

livingdoc-typescript-plugin

Living documentation plugin for typescript.

npm Version build-status js-standard-style

Usage

Install

npm install --global livingdoc

No installation

npx livingdoc ...

Generate classes diagram

livingdoc-typescript-plugin diagram -i src\domain\**\*.ts -o dist\domain-classes.svg

Result example :

Generate glossary

livingdoc-typescript-plugin glossary -i src\domain\**\*.ts -o dist\glossary.md

Result example :

ObjectName Attribute name Type Description
Access |
| phoneNumber string
| price number
| dateTime string
Bill | @RootAggregate
Monthly bill.
| month string Which month of the bill.
| contract Contract Contract concerned by the bill.
| accesses Access[] Bill contents.
| paymentState PaymentState Bill payment state
BillsService |
CallAccess |
| duration string
Contract | Telecom contract
| id number Contract identifier.
Generate by the system and communicate to client.
| customer Customer Contract customer.
Customer | Customer of the telecom service
| email string Email of the customer.
| contracts Contract[] Customer's contracts.
PaymentState | Enumeration Bill payment state values.
| WAITING | Wainting payment by the client.
| DONE | Client has payed.
SmsAccess |

Options

-i, --input <path>

Define the path of the Typescript file

-o, --output <path>

Define the path of the output file. If not defined, it'll output on the STDOUT

-d, --deep <boolean>

Indicate if program must through dependancies content or not