Skip to content
alpercelikPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Salep

Salep provides GraphQL tooling for .NET: a standalone lexer and parser, and schema-driven C# clients with MSBuild integration, and a standalone TypeScript client generator.

Component Purpose Distribution Documentation
Salep GraphQL Parser Lexing, parsing, syntax trees, diagnostics, traversal, rewriting, and printing Salep.GraphQLParser Parser guide
Salep C# Client Generator Generate typed C# clients from GraphQL schemas and operations during builds Salep.ClientGenerator Client generator guide

| Salep TypeScript Client Generator | Generate selected result types and portable fetch clients from GraphQL | Standalone executable | TypeScript guide |

The parser can be used independently. The client generator references the parser directly; generated applications have no runtime dependency on either implementation assembly. See architecture and naming for component ownership and package mapping.

Solution and projects

Open src/Salep.slnx for the complete solution, including samples. src/Salep.Core.slnf selects core projects without samples. The package-only Salep.GraphQLParser.PublicApiConsumer fixture stays outside both solution build lists; run it through scripts/verify-package-compatibility.sh or scripts/verify-package-compatibility.ps1, which pack the parser before restoring the consumer.

src/
  Salep.slnx
  Salep.Core.slnf
  Salep.GraphQLParser/
  Salep.ClientGenerator.Core/          # Shared GraphQL models and filesystem policy
  Salep.ClientGenerator/               # C# Scriban backend
  Salep.ClientGenerator.TypeScript/    # TypeScript Scriban backend
  Salep.ClientGenerator.TypeScript.Cli/ # Standalone TypeScript executable
  Salep.ClientGenerator.Cli/
  Salep.ClientGenerator.MSBuild/
  Salep.ClientGenerator.Tests/
  Salep.ClientGenerator.MSBuild.Tests/
  Salep.GraphQLParser.Tests/
    Fixtures/                         # Oracle and reference-suite data
  Salep.GraphQLParser.PublicApiConsumer/
  samples/
    Directory.Build.props
    Directory.Packages.props
    Opinionated/
    MinimalDependencies/
    Salep.Samples.GraphQLServer/
benchmarks/
  Salep.GraphQLParser.Benchmarks/

Build and verify

dotnet build src/Salep.Core.slnf
dotnet test --solution src/Salep.Core.slnf --configuration Release
Workflow Bash PowerShell
Core tests ./scripts/test.sh pwsh ./scripts/test.ps1
Parser package verification ./scripts/verify-package-compatibility.sh pwsh ./scripts/verify-package-compatibility.ps1
Generator package and sample dogfooding ./build-salep.sh pwsh ./build-salep.ps1

See script workflows for all paired commands, defaults, and environment overrides. Run npm run scripts:check after script changes and verify behavior in both shells.

NuGet packages

See packaging and releases to prepare Salep.GraphQLParser and default Scriban Salep.ClientGenerator, including parser symbols, for publication.

Contributor documentation

License

See LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages