From 5332f67a574024b7fea3501079b5e796735bebf8 Mon Sep 17 00:00:00 2001 From: daiscog Date: Thu, 4 May 2023 15:26:10 +0100 Subject: [PATCH] typescript-angular tweaks to improve way of working with generated clients (#527) (#533) * Remove leading comment from typescript files so that there are fewer differences between files when regenerating with a new spec version (info moved to README). Remove licence field from package.json. * Update README with changes --- README.md | 5 ++++- .../src/main/templates/boat-angular/README.mustache | 5 +++++ .../main/templates/boat-angular/licenseInfo.mustache | 10 +--------- .../src/main/templates/boat-angular/package.mustache | 1 - 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a1ed55113..5e4f448e3 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,10 @@ The project is very much Work In Progress and will be published on maven central # Release Notes BOAT is still under development and subject to change. - +## 0.16.12 +* Boat Angular generator + * Remove leading comment from typescript files so that there are fewer differences between files when regenerating with a new spec version (info moved to README) + * Remove licence field from package.json ## 0.16.11 * Boat Angular generator * Set `removeComments: false` in generated tsconfig.json files to retain `/*#__PURE__*/` annotation in compiled JS. diff --git a/boat-scaffold/src/main/templates/boat-angular/README.mustache b/boat-scaffold/src/main/templates/boat-angular/README.mustache index 67d6b716e..9fa2473e1 100644 --- a/boat-scaffold/src/main/templates/boat-angular/README.mustache +++ b/boat-scaffold/src/main/templates/boat-angular/README.mustache @@ -1,5 +1,10 @@ ## {{npmName}}@{{npmVersion}} +{{{appName}}} +{{{appDescription}}} + +{{#version}}The version of the OpenAPI document: {{{version}}}{{/version}} + ### Building To install the required dependencies and to build the typescript sources run: diff --git a/boat-scaffold/src/main/templates/boat-angular/licenseInfo.mustache b/boat-scaffold/src/main/templates/boat-angular/licenseInfo.mustache index 869763f01..48a444d89 100644 --- a/boat-scaffold/src/main/templates/boat-angular/licenseInfo.mustache +++ b/boat-scaffold/src/main/templates/boat-angular/licenseInfo.mustache @@ -1,11 +1,3 @@ /** - * {{{appName}}} - * {{{appDescription}}} - * - * {{#version}}The version of the OpenAPI document: {{{version}}}{{/version}} - * {{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}} - * - * NOTE: This class is auto generated by OpenAPI Generator (https://github.com/Backbase/backbase-openapi-tools). - * https://github.com/Backbase/backbase-openapi-tools - * Do not edit the class manually. + * Generated code */ diff --git a/boat-scaffold/src/main/templates/boat-angular/package.mustache b/boat-scaffold/src/main/templates/boat-angular/package.mustache index 0cf20ccfb..2b1c1de1d 100644 --- a/boat-scaffold/src/main/templates/boat-angular/package.mustache +++ b/boat-scaffold/src/main/templates/boat-angular/package.mustache @@ -15,7 +15,6 @@ "openapi-client", "openapi-generator" ], - "license": "Unlicense", "scripts": { "build": "ng-packagr -p ng-package.json" },