Skip to content

Commit

Permalink
🐛 Removed users API endpoints from SPA templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jasontaylordev committed Jul 19, 2023
1 parent 9a167d5 commit b8fb880
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
12 changes: 7 additions & 5 deletions .template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions CleanArchitecture.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<metadata>

<id>Clean.Architecture.Solution.Template</id>
<version>8.0.0-preview.6.7</version>
<version>8.0.0-preview.6.8</version>
<title>Clean Architecture Solution Template</title>
<authors>JasonTaylorDev</authors>
<description>Clean Architecture Solution Template for .NET 8.</description>
<summary>
A Clean Architecture Solution Template for creating a Single-Page Application (SPA) with ASP.NET Core.
</summary>
<releaseNotes>
Added README for solutions generated with the template.
Removed users API endpoints from SPA templates.
</releaseNotes>

<projectUrl>https://github.com/JasonTaylorDev/CleanArchitecture</projectUrl>
Expand Down
4 changes: 2 additions & 2 deletions README-template.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b8fb880

Please sign in to comment.