From da82005e5b5f72efc1165d210b5341e5bb07f229 Mon Sep 17 00:00:00 2001 From: Jason Taylor Date: Mon, 24 Jul 2023 08:31:43 +1000 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=91=B7=20Cache=20npm=20packages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30156d472..54d519e5e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,15 @@ jobs: restore-keys: | ${{ runner.os }}-nuget- + #if (!UseApiOnly) + - name: Install Node & cache npm packages + uses: actions/setup-node@v3 + with: + node-version: '18.x' + cache: 'npm' + cache-dependency-path: src/Web/ClientApp/package-lock.json + #endif + - name: Install .NET uses: actions/setup-dotnet@v3 From b227d4ba9a882a27e19640b475f1d693381bae4c Mon Sep 17 00:00:00 2001 From: Jason Taylor Date: Mon, 24 Jul 2023 08:32:37 +1000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=90=9B=20Exclude=20Web-webapi.http=20?= =?UTF-8?q?for=20Angular=20and=20React?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .template.config/template.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.template.config/template.json b/.template.config/template.json index 768f96bcb..47b4fe017 100644 --- a/.template.config/template.json +++ b/.template.config/template.json @@ -84,7 +84,8 @@ "src/Web/Endpoints/Users.cs", "src/Web/Templates/**", "src/Web/config-react.nswag", - "src/Web/config-webapi.nswag" + "src/Web/config-webapi.nswag", + "src/Web/Web-webapi.http" ] }, { @@ -93,7 +94,8 @@ "src/Web/ClientApp/**", "src/Web/Endpoints/Users.cs", "src/Web/config.nswag", - "src/Web/config-webapi.nswag" + "src/Web/config-webapi.nswag", + "src/Web/Web-webapi.http" ], "rename": { "config-react.nswag": "config.nswag", From 835fc1aae714a87c6127b0ece33b602d6851b1ba Mon Sep 17 00:00:00 2001 From: Jason Taylor Date: Mon, 24 Jul 2023 08:37:50 +1000 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=94=96=20Release=208.0.0-preview.6.10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CleanArchitecture.nuspec | 6 +++--- README-template.md | 4 ++-- README.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CleanArchitecture.nuspec b/CleanArchitecture.nuspec index 91d54c2ea..e34721a80 100644 --- a/CleanArchitecture.nuspec +++ b/CleanArchitecture.nuspec @@ -3,15 +3,15 @@ Clean.Architecture.Solution.Template - 8.0.0-preview.6.9 + 8.0.0-preview.6.10 Clean Architecture Solution Template JasonTaylorDev Clean Architecture Solution Template for .NET 8. - A Clean Architecture Solution Template for creating a Single-Page Application (SPA) with ASP.NET Core. + A Clean Architecture Solution Template for creating apps using Angular, React, or Web API only with ASP.NET Core. - Improved implementation of web exception handling. + General improvements and bug fixes. https://github.com/JasonTaylorDev/CleanArchitecture diff --git a/README-template.md b/README-template.md index ccc912a9f..89f7b8991 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.9. +The project was generated using the [Clean.Architecture.Solution.Template](https://github.com/jasontaylordev/CleanArchitecture) version 8.0.0-preview.6.10. ## 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.9 +dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.6.10 ``` ## Test diff --git a/README.md b/README.md index e3e4358e5..80616a71b 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.9 +dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.6.10 ``` 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: