Skip to content

Commit

Permalink
Remove legacy (#1621)
Browse files Browse the repository at this point in the history
Removed some projects and the SignalR link. It's probably coming back
later.
  • Loading branch information
pekkah authored Apr 3, 2023
1 parent 8185738 commit a39d25f
Show file tree
Hide file tree
Showing 65 changed files with 13 additions and 45,665 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
./artifacts/gh-pages
deploy:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
needs: build
concurrency: ci-${{ github.ref }}
steps:
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ jobs:
name: Packages
path: |
./artifacts/*.nupkg
./artifacts/*.tgz
- name: Publish to nuget
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags/')
Expand All @@ -56,22 +55,3 @@ jobs:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
run: |
dotnet nuget push "./artifacts/*.nupkg" -k $Env:NUGET_KEY -s https://api.nuget.org/v3/index.json
- uses: actions/setup-node@v2
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"

- name: Publish beta NPM package
if: github.ref_name == 'master'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_KEY }}
working-directory: ./artifacts/graphql.server.link
run: npm publish --tag beta

- name: Publish release NPM package
if: startsWith(github.ref, 'refs/tags/')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_KEY }}
working-directory: ./artifacts/graphql.server.link
run: npm publish
2 changes: 1 addition & 1 deletion .github/workflows/on-tag-do-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- '*'
jobs:
release:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v1
Expand Down
47 changes: 11 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

- Execute queries, mutations and subscriptions
- Validation (new implementation in v0.3.0)
- SignalR hub for streaming queries, mutations and subscriptions
- ApolloLink for the provided SignalR hub
- Apollo GraphQL WebSockets (apollo-link-ws) compatible web socket server (since v0.8.0)
- graphql-ws compatible web socket server (compatible with latest Apollo Client) (since v3)
- Code generation
- New and improved parser for executable and type system documents (since v2.0.0)
- Delegates as resolvers and subscriptions (also middleware) (since v3)
- New middleware based execution pipelines (since v3)
- New server and executor implementations (since v3)
- Apollo Federation subgraph support (since v3)


## Documentation and packages

Expand All @@ -17,47 +20,19 @@ Both beta and release packages are available from NuGet and NPM
![Nuget](https://img.shields.io/nuget/v/tanka.graphql?style=flat-square)
![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/tanka.graphql?style=flat-square)

![npm](https://img.shields.io/npm/v/@tanka/tanka-graphql-server-link/latest?style=flat-square)
![npm](https://img.shields.io/npm/v/@tanka/tanka-graphql-server-link/beta?style=flat-square)

## Sample
## Samples

See [Samples](https://github.com/pekkah/tanka-graphql/tree/master/samples) in the repository.

Complete sample with codegeration
See [Sample](https://github.com/pekkah/tanka-graphql-samples)

## Install

```bash
dotnet package add tanka.graphql
dotnet package add tanka.graphql.server

npm install @tanka/tanka-graphql-server-link
dotnet package add Tanka.GraphQL
dotnet package add Tanka.GraphQL.Server
```

## Develop

### Run the dev harness

This repo includes a sample application which is used for testing
and development of the SignalR client and the server.

Open the `tanka-graphql.sln` and start the `graphql.dev.chat.web` project. This will start a simple chat server using the tanka.graphql.server.

Start the client by following instructions below:

```bash
# Install dependencies
src\GraphQL.server.link> npm i

# Watch for source changes and recompile the link
src\GraphQL.server.link> npm run watch

# Install dependencies
dev\GraphQL.dev.chat.ui> npm i

# Watch for source changes and recompile the sample
dev\GraphQL.dev.chat.ui> npm start
```

### Run benchmarks

Expand Down
14 changes: 0 additions & 14 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,6 @@ if ($OnlyBuild -eq $False) {
dotnet pack -c Release -p:Version=$Version -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
EnsureLastExitCode("dotnet pack failed")

"----------------------------------------"
"Pack NPM"
$Exclude = [string[]]@("node_modules")
Copy-Item -Recurse -Exclude $Exclude ./src/graphql.server.link/ $Output/graphql.server.link
Set-Location $Output/graphql.server.link
npm i
npm run build
EnsureLastExitCode("npm run build failed")
npm --no-git-tag-version --allow-same-version version $Version
Set-Location $Location
Set-Location $Output
npm pack ./graphql.server.link
EnsureLastExitCode("npm pack failed")

Set-Location $Location

}
Expand Down
46 changes: 0 additions & 46 deletions dev/GraphQL.Dev.Chat.Data/ChatResolverService.cs

This file was deleted.

56 changes: 0 additions & 56 deletions dev/GraphQL.Dev.Chat.Data/ChatResolvers.cs

This file was deleted.

15 changes: 0 additions & 15 deletions dev/GraphQL.Dev.Chat.Data/GraphQL.Dev.Chat.Data.csproj

This file was deleted.

90 changes: 0 additions & 90 deletions dev/GraphQL.Dev.Chat.Data/IChat.cs

This file was deleted.

18 changes: 0 additions & 18 deletions dev/GraphQL.Dev.Chat.Data/IChatResolverService.cs

This file was deleted.

Loading

0 comments on commit a39d25f

Please sign in to comment.