Skip to content

Commit

Permalink
Added Backend to Backend Profile for StrawberryShake
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Aug 30, 2022
1 parent 0a5d603 commit 3e6c7ac
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 2 deletions.
Expand Up @@ -29,8 +29,8 @@
<GenCommand>$(GenCommand) -o "$(GraphQLCodeGenerationRoot)"</GenCommand>
<GenCommand Condition="'$(RootNamespace)' != ''">$(GenCommand) -n "$(RootNamespace)"</GenCommand>
<GenCommand Condition="'$(GraphQLRequestHash)' != ''">$(GenCommand) -a "$(GraphQLRequestHash)"</GenCommand>
<GenCommand Condition="'$(GraphQLStrictSchemaValidation)' == 'enable'">$(GenCommand) -s</GenCommand>
<GenCommand Condition="'$(GraphQLClientStore)' == 'enable'">$(GenCommand) -t</GenCommand>
<GenCommand Condition="'$(GraphQLStrictSchemaValidation)' != 'enable'">$(GenCommand) -s</GenCommand>
<GenCommand Condition="'$(GraphQLClientStore)' != 'enable'">$(GenCommand) -t</GenCommand>
<GenCommand Condition="'$(GraphQLRazorComponents)' == 'enable'">$(GenCommand) -r</GenCommand>
</PropertyGroup>

Expand Down
@@ -0,0 +1,26 @@
<Project>
<PropertyGroup>
<!--enable/disable-->
<GraphQLStrictSchemaValidation>enable</GraphQLStrictSchemaValidation>
<!--enable/disable-->
<GraphQLClientStore>disable</GraphQLClientStore>
<!--enable/disable-->
<GraphQLRazorComponents>disable</GraphQLRazorComponents>
<!--md5/sha1/sha256-->
<GraphQLRequestHash>md5</GraphQLRequestHash>
<!--intermediate/project-->
<GraphQLOutput>intermediate</GraphQLOutput>
<GraphQLDebug>disable</GraphQLDebug>
</PropertyGroup>

<ItemDefinitionGroup>
<GraphQL>
<Generator>MSBuild:GenerateGraphQLCode</Generator>
</GraphQL>
</ItemDefinitionGroup>

<ItemGroup>
<None Remove="**/*.graphql"/>
<GraphQL Include="**/*.graphql"/>
</ItemGroup>
</Project>
@@ -0,0 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="Current">

<PropertyGroup>
<PackageId>StrawberryShake.Server</PackageId>
<AssemblyName>StrawberryShake.Server</AssemblyName>
<RootNamespace>StrawberryShake.Server</RootNamespace>
<Description>StrawberryShake GraphQL Client for Backend to Backend.</Description>
<NoWarn>$(NoWarn);NU5128</NoWarn>
<IncludeSymbols>false</IncludeSymbols>
<IncludeBuildOutput>false</IncludeBuildOutput>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\Client\src\Core\StrawberryShake.Core.csproj" />
<ProjectReference Include="..\..\Client\src\Transport.Http\StrawberryShake.Transport.Http.csproj" />
<ProjectReference Include="..\..\Client\src\Transport.WebSockets\StrawberryShake.Transport.WebSockets.csproj" />
<ProjectReference Include="..\..\Tooling\src\dotnet-graphql\dotnet-graphql.csproj" ReferenceOutputAssembly="false" />
</ItemGroup>

<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)MSBuild\StrawberryShake.Server.props" Pack="true" PackagePath="build/StrawberryShake.Server.props" Visible="false" />
<None Include="$(MSBuildThisFileDirectory)..\Common\MSBuild\StrawberryShake.targets" Pack="true" PackagePath="build/StrawberryShake.Server.targets" Visible="false" />
<None Include="$(MSBuildThisFileDirectory)..\Common\MSBuild\StrawberryShake.MSBuild.ContentType.xaml" Pack="true" PackagePath="build/StrawberryShake.MSBuild.ContentType.xaml" Visible="false" />
<None Include="$(MSBuildThisFileDirectory)..\Common\MSBuild\StrawberryShake.MSBuild.xaml" Pack="true" PackagePath="build/StrawberryShake.MSBuild.xaml" Visible="false" />
<None Include="$(MSBuildThisFileDirectory)..\Common\MSBuild\global.json" Pack="true" PackagePath="build/global.json" Visible="false" />
<None Include="$(MSBuildThisFileDirectory)..\..\Tooling\src\dotnet-graphql\bin\$(Configuration)\net6.0\**\*.*" Pack="true" PackagePath="tools" Visible="false" />
</ItemGroup>

</Project>

0 comments on commit 3e6c7ac

Please sign in to comment.