Living documentation plugin for typescript.
npm install --global livingdoc
npx livingdoc ...
livingdoc-typescript-plugin diagram -i src\domain\**\*.ts -o dist\domain-classes.svg
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 | ||
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 |
Define the path of the Typescript file
Define the path of the output file. If not defined, it'll output on the STDOUT
Indicate if program must through dependancies content or not