Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate HotChocolate.Templates.Server #6834

Merged
merged 2 commits into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -16,7 +16,7 @@
// IEnumerable<string> ChangelogSectionNotes => ExtractChangelogSectionNotes(ChangelogFile);
[Parameter("NuGet Source for Packages")] readonly string NuGetSource = "https://api.nuget.org/v3/index.json";
[Parameter("NuGet Api Key")] readonly string NuGetApiKey;
[Parameter("NuGet Source for Packages")] readonly string MyGetSource = "https://www.myget.org/F/hotchocolate/api/v3/index.json";

Check warning on line 19 in .build/Build.Publish.cs

View workflow job for this annotation

GitHub Actions / Generate Test Matrix

The field 'Build.MyGetSource' is assigned but its value is never used

Check warning on line 19 in .build/Build.Publish.cs

View workflow job for this annotation

GitHub Actions / Merge and Upload Coverage

The field 'Build.MyGetSource' is assigned but its value is never used
[Parameter("MyGet Api Key")] readonly string MyGetApiKey;

Target Pack => _ => _
Expand Down Expand Up @@ -50,9 +50,6 @@
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 @@
.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
Loading