bafolts / tplant

Typescript to plantuml
https://segmentationfaults.com/tplant/default.html
GNU General Public License v3.0
270 stars 35 forks source link

Refactor for namespace support. #31

Closed bafolts closed 5 years ago

bafolts commented 5 years ago

This will add support for namespaces and close #13

Separate component classes will be created for Namespace, File, Class, Enum, Interface, Method, Property, etc. The first step will then walk the typescript abstract syntax tree and create the appropriate component classes to File. From there the second pass will convert each File to it's corresponding plantuml.

bafolts commented 5 years ago

@marcosvrs I haven't added support for namespaces yet, but this pull request has the large refactor in place. After this it should be much simpler to add namespace. I will finish the work for namespace tomorrow. If this gets merged I will do it in a separate branch to create a smaller pull request otherwise I will continue the work on this branch.

marcosvrs commented 5 years ago

I have some suggestions:

PS: we need to think already how to compile all TS files in just one JS file. Webpack? Gulp?

bafolts commented 5 years ago

Webpack works fine. I will implement these suggestions, once they are in place the webpack work and other improvements can be done in separate pull requests.

bafolts commented 5 years ago

@marcosvrs I have made the requested changes. This should be fine to merge now and then build upon the namespace support once merged.