Skip to content

bafolts/tplant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Marcos Vinícius Rubido
May 9, 2019
9a5b054 · May 9, 2019

History

34 Commits
May 7, 2019
May 8, 2019
May 7, 2019
Dec 17, 2018
May 9, 2019
Dec 19, 2016
May 8, 2019
May 8, 2019
May 8, 2019
May 3, 2019
Dec 18, 2018

Repository files navigation

tplant

Typescript to PlantUML

Will convert a Typescript file to a PlantUML file. Following all inheritances.

Usage

npm install --global tplant
tplant --input sample/Classes/Greeter.ts --output sample/Classes/Greeter.puml

Options

-i, --input

Define the path of the Typescript file

-o, --output

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

-p, --project

Compile a project given a valid configuration file.
The argument can be a file path to a valid JSON configuration file, or a directory path to a directory containing a tsconfig.json file.

-C, --compositions

Create not heritage compositions.
Example:
class Wheel {
    public size: number;
}
class Car {
    public wheel: Wheel;
}
@startuml
class Wheel {
    +size: number
}
class Car {
    +wheel: Wheel
}
Car *-- Wheel
@enduml

-I, --only-interfaces

Only output interfaces

References

https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API