From b8fb880ffe4715154ac29137143057b20b342712 Mon Sep 17 00:00:00 2001 From: Jason Taylor Date: Wed, 19 Jul 2023 21:18:18 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Removed=20users=20API=20endpoint?= =?UTF-8?q?s=20from=20SPA=20templates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .template.config/template.json | 12 +++++++----- CleanArchitecture.nuspec | 4 ++-- README-template.md | 4 ++-- README.md | 2 +- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.template.config/template.json b/.template.config/template.json index d4beaf608..768f96bcb 100644 --- a/.template.config/template.json +++ b/.template.config/template.json @@ -80,18 +80,20 @@ { "condition": "(UseAngular)", "exclude": [ - "src/Web/config-react.nswag", - "src/Web/config-webapi.nswag", "src/Web/ClientApp-React/**", - "src/Web/Templates/**" + "src/Web/Endpoints/Users.cs", + "src/Web/Templates/**", + "src/Web/config-react.nswag", + "src/Web/config-webapi.nswag" ] }, { "condition": "(UseReact)", "exclude": [ + "src/Web/ClientApp/**", + "src/Web/Endpoints/Users.cs", "src/Web/config.nswag", - "src/Web/config-webapi.nswag", - "src/Web/ClientApp/**" + "src/Web/config-webapi.nswag" ], "rename": { "config-react.nswag": "config.nswag", diff --git a/CleanArchitecture.nuspec b/CleanArchitecture.nuspec index a6d23e58f..75aa45ad1 100644 --- a/CleanArchitecture.nuspec +++ b/CleanArchitecture.nuspec @@ -3,7 +3,7 @@ Clean.Architecture.Solution.Template - 8.0.0-preview.6.7 + 8.0.0-preview.6.8 Clean Architecture Solution Template JasonTaylorDev Clean Architecture Solution Template for .NET 8. @@ -11,7 +11,7 @@ A Clean Architecture Solution Template for creating a Single-Page Application (SPA) with ASP.NET Core. - Added README for solutions generated with the template. + Removed users API endpoints from SPA templates. https://github.com/JasonTaylorDev/CleanArchitecture diff --git a/README-template.md b/README-template.md index 90f0775a3..c56ea2c67 100644 --- a/README-template.md +++ b/README-template.md @@ -1,6 +1,6 @@ # CleanArchitecture -The project was generated using the [Clean.Architecture.Solution.Template](https://github.com/jasontaylordev/CleanArchitecture) version 8.0.0-preview.6.7. +The project was generated using the [Clean.Architecture.Solution.Template](https://github.com/jasontaylordev/CleanArchitecture) version 8.0.0-preview.6.8. ## Build @@ -38,7 +38,7 @@ dotnet new ca-usecase -n GetTodos -fn TodoLists -ut query -rt TodosVm If you encounter the error *"No templates or subcommands found matching: 'ca-usecase'."*, install the template and try again: ```bash -dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.6.7 +dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.6.8 ``` ## Test diff --git a/README.md b/README.md index d7b6c3a3e..cb06af6f1 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ If you find this project useful, please give it a star. Thanks! ⭐ The easiest way to get started is to install the [.NET template](https://www.nuget.org/packages/Clean.Architecture.Solution.Template): ``` -dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.6.7 +dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.6.8 ``` Once installed, create a new solution using the template. You can choose to use Angular, React, or create a Web API-only solution. Specify the client framework using the `-cf` or `--client-framework` option, and provide the output directory where your project will be created. Here are some examples: