Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #21 from eugene-manuilov/develop
Browse files Browse the repository at this point in the history
next release
  • Loading branch information
eugene-manuilov authored Nov 16, 2020
2 parents acc8d70 + 89141ed commit 167fd23
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 73 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
working-directory: example
run: test "$(../bin/run)" = "$EXPECTED"
env:
EXPECTED: http://www.plantuml.com/plantuml/png/XP7DQiCm48Jl-nHRUh5eGqaX5sDCJ6beBZa4KteBShHjH6p9I1kmgVFkbVC7DMsYctPclXtOgMVfU5UL07UAFhKXhBVKHet0f4YRvAb8BmBBegHU8SEQMsmmIJ3A7-zdiomyWMaAiD6Aq3CvijpMv8-3YdXZbGVmMsrgwMI5PK3s3hGkQ017EgubqvTrBGhy1iI7GnlK2aMCyqKUZSSYZ8siACRtRFdobYsZvyb4mFw2gAtdw_5GlnpcmvGQZZ5__SW7iDMfb2Q_-hjVxveFbfoaS-2t71RyIzvter7N7PWtJUS_m9ICwk_u0m00
EXPECTED: http://www.plantuml.com/plantuml/png/ZLFTIyCm47_FNt4Yo0gEeR0NAMLppeyN7yOGtoHjRcjecol9ZMqu_tVJrCqo9veyzNvVTpawSYmjhwfIY3E52sqGwWAtlKq4SPh46PLaR-waBHweL6Xcf9BumXEIU12m13Rn84qEuiLUt2hFn-7yq1pulh2gJ5SnlM-kLrIejEnRpCYgKrAMQOcD4Wrhti86uXXwyyjrhXaZI18XSgqG7AD5ucsDhYrKo3af9mHJ3KoG4ZDLeBJFOar6k4ARMbfPWQMLKRu1WnQ6dNhf6sWSWQptwW0kbuhMsYnX8Kk77IINHgsjPaRp0yjAwHoy2_3dLcR5CkHEceaXZ1EGiRMqReiEvT8YcbRX7mZj4V3XnmiF19baN9BTGXGImdf1AuXkuEbvthkwYi2NlnO1HbROG2_ZsUHnFEjT3uSU_tQhoV7_dFnIoXDM7G9kkC7dqzVvSSJRLzSQtTl90HhIqt5q2-tvHx0F-DNvOzVlxtR1z4_I_bk84HhL_3gV
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
# Changelog

## [Unreleased] - TBD

-

## [v1.4.0] (2020-11-16)
- Added `--direction` flag to define a diagram direction: "top to bottom" or "left to right".
- Added `--handwritten` flag to enable handwritten mode.
- Added `--with-enum-values` flag to show enum values
- Added `<<FK>>` suffix to foreign key columns.
- Updated the default color schema and column icons.
- Fixed the current working directory issue.

## [v1.3.0] (2020-11-12)
- Added an example with a shopping cart database.
- Updated builder to throw an error if no entities have been found.
Expand Down Expand Up @@ -38,7 +47,8 @@
- Added `--include` option to include only specific entities to the diagram.
- Added `--exclude` option to exclude specific entities from the diagram.

[Unreleased]: https://github.com/eugene-manuilov/typeorm-uml/compare/v1.3.0...master
[Unreleased]: https://github.com/eugene-manuilov/typeorm-uml/compare/v1.4.0...master
[v1.4.0]: https://github.com/eugene-manuilov/typeorm-uml/compare/v1.3.0...v1.4.0
[v1.3.0]: https://github.com/eugene-manuilov/typeorm-uml/compare/v1.2.1...v1.3.0
[v1.2.1]: https://github.com/eugene-manuilov/typeorm-uml/compare/v1.2.0...v1.2.1
[v1.2.0]: https://github.com/eugene-manuilov/typeorm-uml/compare/v1.1.3...v1.2.0
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# typeorm-uml 1.3.0
# typeorm-uml 1.4.0

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/typeorm-uml.svg)](https://www.npmjs.com/package/typeorm-uml)
[![Downloads/week](https://img.shields.io/npm/dw/typeorm-uml.svg)](https://www.npmjs.com/package/typeorm-uml)
[![License](https://img.shields.io/npm/l/typeorm-uml.svg)](https://github.com/eugene-manuilov/mynewcli/blob/master/package.json)
[![License](https://img.shields.io/npm/l/typeorm-uml.svg)](https://github.com/eugene-manuilov/typeorm-uml/blob/master/package.json)

A command line tool to generate UML diagrams for Typeorm projects. It uses [plantuml](https://plantuml.com/) to render diagrams and outputs an URL to a diagram.

Expand Down Expand Up @@ -41,11 +41,14 @@ ARGUMENTS

OPTIONS
-c, --connection=connection [default: default] The connection name.
-d, --direction=direction [default: TB] Arrows directions. TB=top to bottom, LR=left to right.
-d, --download=download The filename where to download the diagram.
-e, --exclude=exclude Comma-separated list of entities to exclude from the diagram.
-f, --format=png|svg|txt|puml [default: png] The diagram file format.
-i, --include=include Comma-separated list of entities to include into the diagram.
--handwritten Whether or not to use handwritten mode.
--monochrome Whether or not to use monochrome colors.
--with-enum-values Show possible values for enum type field.
```

## Typescript
Expand All @@ -61,10 +64,10 @@ ts-node ./node_modules/.bin/typeorm-uml ormconfig.json
[**typeorm/typescript-example**](https://github.com/typeorm/typescript-example)

```sh-session
typeorm-uml --format=svg --monochrome
typeorm-uml --format=svg
```

[![typeorm/typescript-example](http://www.plantuml.com/plantuml/png/XL7DIyCm5B-_l-A9bmOTCc6NKigAEDp5moZYRQJhquOrIKdUeCNkVpVT5rhyo2s_xv2vP-bufsk0gvBUb25ijjH5hS2aIDlahaWl1CkYfe4XmuexR359CCflhnUBB1o1QGfGgPBGCpcot3NaZu0chcpf0VnMcKOwgR4EaOC2hGlS5q9ROpULipeqkXq177jn8vdUhUjGu0SWtXnseYfHnBXypgFfL0JOI4qnlcIhXwTi5TtFPWBsbuZ6UlxR7XvMZ_q1fPPZp1zVyr7O-ZHAaL__l6zGBKSb9-fi-4w7Wb-Jz_raqlU7p7z5vpl0d4mv_F0d)](http://www.plantuml.com/plantuml/png/XL7DIyCm5B-_l-A9bmOTCc6NKigAEDp5moZYRQJhquOrIKdUeCNkVpVT5rhyo2s_xv2vP-bufsk0gvBUb25ijjH5hS2aI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SWQptwW0kbuhMsYnX8Kk77IINHgsjPaRp0yjAwHoy2_3dLcR5CkHEceaXZ1EGiRMqReiEvT8YcbRX7mZj4V3XnmiF19baN9BTGXGImdf1AuXkuEbvthkwYi2NlnO1HbROG2_ZsUHnFEjT3uSU_tQhoV7_dFnIoXDM7G9kkC7dqzVvSSJRLzSQtTl90HhIqt5q2-tvHx0F-DNvOzVlxtR1z4_I_bk84HhL_3gV)

## Contribute

Expand Down
6 changes: 3 additions & 3 deletions examples/shopping-cart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The visual database design of the Shopping Cart Database is shown below.
typeorm-uml -f png --monochrome --include=Product,ProductReview,ProductMeta,User,Category,product_tag,product_category,Tag
```

[![product schema](http://www.plantuml.com/plantuml/png/lLNVRzem47xtN-6fBw2jMjkfcuGGQhR16eaogOkcxMaoyK4iuZYpdHOqu6_VET0Kd23O9eqdzDrtTz_zyEN6MAPj8LD2Nd2OY0neFeD5QzwctN5ltdqzxbK6oyOfE0jaLjW5dTDkbxQYLsU3GO2_Dktr24a41seiQ51saOFP019iehWXnCn4bZFD94qnf6DGfT6sOv0gKt6YbSICkW12Ddbfp2nCbLxGDlr5A7rPwgI2qtQ7lWy_XQEeTNNHHiiPna698VTm59r2XtuDxZ_S1lUjTzSEH6KisZTSNfHqanRJ6XYhp6Bi3etwtoAogiJbMl4YjZzSk1C4RjWrXMlqU4vvVL963Gy27ly-vudTsjQlcHKPjkNBNJ0SEl9RX-R5E1Kc0OmHXQFl3hyijMl0eV40rNyCeduKtlLtsHv-g5BBfaVB-m-pFTxYme3-rwrRDqepXPHCBpRjBULXO7my_Y3ChAZvvbh4I1mCFmSubYi7SM5YLRXITz6V1IiVTYreelAJ1bla_0_6NLuUuu6GSNFYMhXk7vt9H6XZHqo2_woau3o59alAcZtMKet5tiJAKQv1Cf7wv9mPywWqlsKcURQzAVlCk1IPrz07B5nf3zGm5UKfzLld90xLr4NPGKLcjTfR4TpSIIdvmEreFgbFQ5XlvvPHtHAFKCzGUxk7N2i2UZJ5hQIkrFdvSbc997kNTxKiZLkCU3TowxgFraYD8PvWjtIarhwjiQR99_YwN7UEc_0l8JUu8Eup_Hi0)](http://www.plantuml.com/plantuml/png/lLNVRzem47xtN-6fBw2jMjkfcuGGQhR16eaogOkcxMaoyK4iuZYpdHOqu6_VET0Kd23O9eqdzDrtTz_zyEN6MAPj8LD2Nd2OY0neFeD5QzwctN5ltdqzxbK6oyOfE0jaLjW5dTDkbxQYLsU3GO2_Dktr24a41seiQ51saOFP019iehWXnCn4bZFD94qnf6DGfT6sOv0gKt6YbSICkW12Ddbfp2nCbLxGDlr5A7rPwgI2qtQ7lWy_XQEeTNNHHiiPna698VTm59r2XtuDxZ_S1lUjTzSEH6KisZTSNfHqanRJ6XYhp6Bi3etwtoAogiJbMl4YjZzSk1C4RjWrXMlqU4vvVL963Gy27ly-vudTsjQlcHKPjkNBNJ0SEl9RX-R5E1Kc0OmHXQFl3hyijMl0eV40rNyCeduKtlLtsHv-g5BBfaVB-m-pFTxYme3-rwrRDqepXPHCBpRjBULXO7my_Y3ChAZvvbh4I1mCFmSubYi7SM5YLRXITz6V1IiVTYreelAJ1bla_0_6NLuUuu6GSNFYMhXk7vt9H6XZHqo2_woau3o59alAcZtMKet5tiJAKQv1Cf7wv9mPywWqlsKcURQzAVlCk1IPrz07B5nf3zGm5UKfzLld90xLr4NPGKLcjTfR4TpSIIdvmEreFgbFQ5XlvvPHtHAFKCzGUxk7N2i2UZJ5hQIkrFdvSbc997kNTxKiZLkCU3TowxgFraYD8PvWjtIarhwjiQR99_YwN7UEc_0l8JUu8Eup_Hi0)
[![product schema](http://www.plantuml.com/plantuml/png/pLRVRzCm47xtNs4q2RKIqtwWWJH5rG9hHqLNf14GF24tTXkhiHriPrt5zhzpJfegIPDqR3oiVQdyVNU---vyrmjZYRQfY15wHTcSIuQJ9LltxlhOcmsyKCLAdryIlRnICMNoHj61zne80-yemmRupZkQ3RR6yy8ujppmiy-EpPOF1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IMN2T54OArIII44oJG-Avt748BpY9K6NoN0H8Ig5PSBF2UnOIKa8fAkDBUMoHrCAAd2I2i1UUcKGMHPTZWabYsKNkC-_eDmNXlCAUwVum_Zg_4qw9qUzp4WcV0Od84QuphkUQFFe0OkvCOWMCmSwRj_y_6JVzDxVvPvAN0GY0HrpidnSOLaudJHXOTAGghMKOBXZm2ZXsrQYLOq3UqlTyzZKyjDzkS6x79KP_ySb6QtdAt-LrZFB4nTL4siworWVBts9nFdw5s5aAIpc9k8PLS5u-bFHpcfQg0Pj1NrCnKk_M0OZA-7ZJxQAHqwMhBOAzuBQyH75ZirJB-GnsLI8OXU5qNEyoh5u4PJUvEOPThbFD4ypCn7aoy-TCzf1QNSX30LRIlXTqhoaTmHG0IJz-aDcYRqsHsSRJxJZZD9pPFwttN9en_0d6jZfqImZfabEAKnsqEAoNu_QiPhNLVjJAroU3ZzTbsHGX0UTpXEY34hMDEVY8dAjBVLlY1KSDbUzLjGNEbsNBC5prPvHr6T2XEroAzf8d1fjMfxDJ0DvXk5sfP3uq8k3iSDXKuwrqJ33VNnsMfQ4C2WqUysr0TrU7X_luqILRRlmtq6RivGRGbkJAkdEwH65yMnUmveHxuDk1DJdL2Fowcp7uAV25r0Fxb_jdy1)


### Cart Schema
Expand All @@ -21,15 +21,15 @@ typeorm-uml -f png --monochrome --include=Product,ProductReview,ProductMeta,User
typeorm-uml -f png --monochrome --include=Product,User,Cart,CartItem
```

[![cart schema](http://www.plantuml.com/plantuml/png/jPLlZn8n4CRVzrFKt9ibUl70d2Q4a5iLF18EatDZz9Kfsu5jsBPh_o14uBFR5ZoWkyaPJtdvc-vqvdbcoeqsH1dBIuIUKPWn0RXQm3fPjN1lsb_rNaxx3m53fYNu20Z3p1glSA-7a-p5nN2OkbyBz_i85Om2rWOKIBEkGEy11rD8gX7I2oOgeWZ7fKlfJs2fNEmamAMGUQ4aTpSg2mZjxyMvA_GRCy1n2_z463yFXM96SQkBtuu-Z2PPqhbgkSX5fIIrkHdHE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plantuml/png/pLPXRzCm4FsUNs4q2RKIqzQXWJH5qG9hjugkI2KW-8JS-DfOZNt1ThfLhFyTEsctf5jIX9YW_URtxiv-ztpEkJPKcLoadlU2mOnB8Da2LftRBl6dWHzZYkhiWgh59QOCv0HPuB-qXC0_Ah20tFf7q-0-UBODBYCFmkBtAEQURnTo8QiH_O7xsmW1ZDD31J4gzbIeeTCKN2H8mysAt1BV9vterS5Wu6fsIH1uNi8P46r00PfL1hfS460IPDhp36R489cYCIW8uxQQuIWzlU0oeueAeZ2Np6v1WYAdbVNKRi5b9AXihWgW4yhmXiivcT5KGmL9g6GtYXi3yX4cK6ASA1JsN2e7kxFYT2IstVdE3GZI9JyzKZQ7S4QwP-JTy78uZZednrrYaK9vaYbaUMo6kmJV7tomUcnfBcqpPzCKeXUvetm99--lmacdTrnMsiAPuZ4umc3qCOmwlPCQohYEhNQcaV0ZfsNZBE7JTJWQkNsygL6exSQoA14DnzyStglXiG9gW8L5aOimwaV3wtwLa6UidH2ZjEqeuAZ_DIBU-bxwZPI_ANokGUrNr9utXQgcRqzh1xB6fD4kPrTtdURpLZmNWghLLhRoN9KzEDSsQ_xFcwuJUocViULPFasvJjeenL3KpJX8fl_8KyubUmsrpJFZIfin5JKpdDOvWZEMmXvIIlVdmIdVSLtTcGfBk3_-V5sJGb2UjYJEgDOtTe9VKPrKQQ_hlg1CSDdSzQLL75Kphc3EYodVqbIdmWZdPPcd25mQXKstnaw3sKQXtQQwOVfNfuG6hUqhL1ARBgB11SZMCM2eoNNBHVkl_BNFH-wzxUt1JrhmU3DqccogSCbbt7Q4Oh2fjYJFynmzV0AixmuFx-uAlprUtJnNtlRPsYmxnnLaiiQ71U_SNYZtrVSB)

### Order Schema

```sh-session
typeorm-uml -f png --monochrome --include=Product,User,Order,OrderItem,Transaction
```

[![order schema](http://www.plantuml.com/plantuml/png/jPRRRXen48Rl_HIkk06rKI5LMWaXb6q33HAXKhggsglAh0VMOcrlVKX10PwzjY61FQ2eKSBbD-Fn7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ixgwIvkCtjz-or_VlgUSIrcYf3tIdo94FxA6bZODwXRPWwkNAlcmbBRMwUIrWdmPEUWuORWsKgYRMImHoFQzz1rwIAoISHM9hMjcmnYMTDVMtfeXOpYSYouiQfTVRcn_6MKDtYSUTnCpV3dcV-FKw5DdPC9VVaaOAnb3UGKjeS1oRYtkMrVS5nIKNgou5t-s43VkJ1uzNvKmEZtbT2nRujEBsrByW_dRLYVXf7xRyihOOIxe-_N3ocv1arvXgFc0_K95NQw-qsfamALVykkC8x6NGzhlbCkCUefoo52YEObMbs4GHs1jIzgx2tfYk5DaLTlo5lR_RtRsvSSOFA6s1bTfOTzfLtKBtOjbns07Sfo2tSMO9JrAVurlWD)

## Credits

Expand Down
2 changes: 1 addition & 1 deletion examples/shopping-cart/entities/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class User {
enum: UserRole,
default: UserRole.GHOST,
} )
role: UserRole
role: UserRole;

@Column( 'varchar', { name: 'firstName', nullable: true, length: 50 } )
firstName: string | null;
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typeorm-uml",
"version": "1.3.0",
"version": "1.4.0",
"description": "Generates UML diagrams for TypeORM projects",
"author": "Eugene Manuilov <eugene.manuilov@gmail.com>",
"license": "MIT",
Expand Down
Loading

0 comments on commit 167fd23

Please sign in to comment.