Skip to content

Commit

Permalink
Merge pull request #321 from lenneTech/develop
Browse files Browse the repository at this point in the history
Release 10.0.7
  • Loading branch information
kaihaase authored Aug 11, 2023
2 parents 1b7dea9 + bef2980 commit 23ee072
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ schema.gql

# Documentation
documentation
model-doc.yuml
model-doc-dark.svg
model-doc-light.svg

Expand Down
4 changes: 2 additions & 2 deletions 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": "@lenne.tech/nest-server",
"version": "10.0.6",
"version": "10.0.7",
"description": "Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).",
"keywords": [
"node",
Expand Down
2 changes: 1 addition & 1 deletion spectaql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ servers:
info:
title: lT Nest Server
description: Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).
version: 10.0.6
version: 10.0.7
contact:
name: lenne.Tech GmbH
url: https://lenne.tech
Expand Down
9 changes: 8 additions & 1 deletion src/core/common/services/model-doc.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class ModelDocService implements OnApplicationBootstrap {
* @param yUmlText
* @protected
*/
protected yUmlToSvg(yUmlText: String) {
protected yUmlToSvg(yUmlText: string) {

// Create diagrams
// see https://github.com/jaime-olivares/yuml-diagram
Expand All @@ -125,6 +125,13 @@ export class ModelDocService implements OnApplicationBootstrap {
const svgLightBg = yuml.processYumlDocument(yUmlText, false);
const svgDarkBg = yuml.processYumlDocument(yUmlText, true);

// Save yuml document
fs.writeFile('model-doc.yuml', yUmlText, (err) => {
if (err) {
console.error(err);
}
});

// Save diagrams
fs.writeFile('model-doc-light.svg', svgLightBg, (err) => {
if (err) {
Expand Down

0 comments on commit 23ee072

Please sign in to comment.