Skip to content

Commit

Permalink
chore: remove TS generator (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrevanveluw authored Apr 8, 2022
1 parent 72f32f5 commit 6a2ff3d
Show file tree
Hide file tree
Showing 77 changed files with 36 additions and 19,691 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
- name: Build with Maven
run: mvn -B package --file ./Kotlin/pom.xml
run: mvn -B package --file ./pom.xml
8 changes: 4 additions & 4 deletions .github/workflows/mavenpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
server-id: bintray-flock-community # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Maven
run: mvn -B package --file ./Kotlin/pom.xml
run: mvn -B package --file ./pom.xml

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml --file ./Kotlin/pom.xml
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml --file ./pom.xml
env:
GITHUB_TOKEN: ${{ github.token }}
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.idea/
example/dist
*.iml

.DS_Store
pom.xml.versionsBackup
32 changes: 0 additions & 32 deletions .graphqlconfig

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile-kt → Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM maven:3-jdk-8

WORKDIR /app/Kotlin
WORKDIR /app
6 changes: 0 additions & 6 deletions Dockerfile-ts

This file was deleted.

1 change: 0 additions & 1 deletion Kotlin/run.sh

This file was deleted.

1 change: 0 additions & 1 deletion Kotlin/test.sh

This file was deleted.

28 changes: 8 additions & 20 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
destroy-ts:
docker rmi graphql-simple-bindings-ts
.PHONY: destroy-ts

build-ts:
docker build -f Dockerfile-ts -t graphql-simple-bindings-ts .
.PHONY: build-ts

run-ts:
docker run -it --name gsb-ts --rm -v $(shell pwd)/TypeScript:/app/TypeScript -v $(shell pwd)/example:/app/example graphql-simple-bindings-ts bash
.PHONY: run-ts

destroy-kt:
destroy:
docker rmi graphql-simple-bindings-kt
.PHONY: destroy-kt
.PHONY: destroy

build-kt:
docker build -f Dockerfile-kt -t graphql-simple-bindings-kt .
.PHONY: build-kt
build:
docker build -t graphql-simple-bindings-kt .
.PHONY: build

run-kt:
docker run -p 8080:8080 -it --name gsb-kt --rm -v $(shell pwd)/Kotlin:/app/Kotlin -v $(shell pwd)/example:/app/example -v ~/.m2:/root/.m2 graphql-simple-bindings-kt bash
.PHONY: run-kt
run:
docker run -p 8080:8080 -it --name gsb-kt --rm -v $(shell pwd):/app -v $(shell pwd)/example:/app/example -v ~/.m2:/root/.m2 graphql-simple-bindings-kt bash
.PHONY: run
26 changes: 4 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
Parse a graphql schema and generate simple bindings for:
- Typescript
- Kotlin
- Scala


## Getting started

### Maven

Add the following configuration to your maven pom.xml

```xml
Expand All @@ -18,7 +17,7 @@ Add the following configuration to your maven pom.xml
<plugin>
<groupId>community.flock</groupId>
<artifactId>graphql-simple-bindings-maven-plugin</artifactId>
<version>0.2.0</version>
<version>0.7.0</version>
<configuration>
<language>All</language>
<packageName>community.flock.eco.feature.member.graphql</packageName>
Expand Down Expand Up @@ -50,29 +49,12 @@ Add the following configuration to your maven pom.xml
</project>
```

### Node
```
npm i @flock/graphql-simple-bindings -g
graphql-simple-bindings "./example/checkout/*" "./generated"
```

## Run in Docker
```
make build-kt
make run-kt
make build
make run
```
In container:
```
cd ./Kotlin
./test.sh
```
## TypeScript
```
make build-ts
make run-ts
```
In container make sure you have a directory `/app/example/dist` then in `/app/TypeScript` run:
```
npm install
npm test
```
2 changes: 0 additions & 2 deletions TypeScript/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion TypeScript/.npmignore

This file was deleted.

1 change: 0 additions & 1 deletion TypeScript/.npmrc

This file was deleted.

13 changes: 0 additions & 13 deletions TypeScript/babel.config.js

This file was deleted.

32 changes: 0 additions & 32 deletions TypeScript/bin/index.js

This file was deleted.

Loading

0 comments on commit 6a2ff3d

Please sign in to comment.