Skip to content

Commit

Permalink
Deprecated HotChocolate.Templates.Server (#6834)
Browse files Browse the repository at this point in the history
  • Loading branch information
glen-84 authored Jan 21, 2024
1 parent bd032fd commit 5278d90
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 186 deletions.
2 changes: 0 additions & 2 deletions .build/Build.Environment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ partial class Build
AbsolutePath StarWarsTemplateNuSpec => RootDirectory / "templates" / "StarWars" / "HotChocolate.Templates.StarWars.nuspec";
AbsolutePath HotChocolateDirectoryBuildProps => SourceDirectory / "HotChocolate" / "Directory.Build.Props";
AbsolutePath StarWarsProj => RootDirectory / "templates" / "StarWars" / "content" / "StarWars.csproj";
AbsolutePath EmptyServerTemplateNuSpec => RootDirectory / "templates" / "Server" / "HotChocolate.Templates.Server.nuspec";
AbsolutePath EmptyServerProj => RootDirectory / "templates" / "Server" / "content" / "HotChocolate.Server.Template.csproj";
AbsolutePath TemplatesNuSpec => RootDirectory / "templates" / "v12" / "HotChocolate.Templates.nuspec";
AbsolutePath EmptyServer12Proj => RootDirectory / "templates" / "v12" / "server" / "HotChocolate.Template.Server.csproj";
AbsolutePath EmptyAzf12Proj => RootDirectory / "templates" / "v12" / "function" / "HotChocolate.Template.AzureFunctions.csproj";
Expand Down
4 changes: 0 additions & 4 deletions .build/Build.Publish.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ partial class Build
var projFile = File.ReadAllText(StarWarsProj);
File.WriteAllText(StarWarsProj, projFile.Replace("11.1.0", SemVersion));

projFile = File.ReadAllText(EmptyServerProj);
File.WriteAllText(EmptyServerProj, projFile.Replace("11.1.0", SemVersion));

projFile = File.ReadAllText(EmptyServer12Proj);
File.WriteAllText(EmptyServer12Proj, projFile.Replace("11.1.0", SemVersion));

Expand Down Expand Up @@ -111,7 +108,6 @@ partial class Build
.SetConfiguration(Configuration)
.CombineWith(
t => t.SetTargetPath(StarWarsTemplateNuSpec),
t => t.SetTargetPath(EmptyServerTemplateNuSpec),
t => t.SetTargetPath(TemplatesNuSpec)));
});

Expand Down
16 changes: 0 additions & 16 deletions templates/Server/HotChocolate.Templates.Server.nuspec

This file was deleted.

48 changes: 0 additions & 48 deletions templates/Server/content/.template.config/template.json

This file was deleted.

14 changes: 0 additions & 14 deletions templates/Server/content/HotChocolate.Server.Template.csproj

This file was deleted.

20 changes: 0 additions & 20 deletions templates/Server/content/Program.cs

This file was deleted.

17 changes: 0 additions & 17 deletions templates/Server/content/Query.cs

This file was deleted.

42 changes: 0 additions & 42 deletions templates/Server/content/Startup.cs

This file was deleted.

9 changes: 0 additions & 9 deletions templates/Server/content/appsettings.Development.json

This file was deleted.

10 changes: 0 additions & 10 deletions templates/Server/content/appsettings.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ In the following tutorial, we will walk you through creating a Hot Chocolate Gra

Open your preferred terminal and select a directory where you want to add the code of this tutorial.

1. Install the Hot Chocolate GraphQL server template.
1. Install the Hot Chocolate templates.

```bash
dotnet new -i HotChocolate.Templates.Server
dotnet new install HotChocolate.Templates
```

2. Create a new Hot Chocolate GraphQL server project.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ In the following tutorial, we will walk you through creating a Hot Chocolate Gra

Open your preferred terminal and select a directory where you want to add the code of this tutorial.

1. Install the Hot Chocolate GraphQL server template.
1. Install the Hot Chocolate templates.

```bash
dotnet new -i HotChocolate.Templates.Server
dotnet new install HotChocolate.Templates
```

2. Create a new Hot Chocolate GraphQL server project.
Expand Down

0 comments on commit 5278d90

Please sign in to comment.