1.0.8 • Published 3 years ago

@flock/graphql-simple-bindings v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

GraphQL-Simple-Bindings

Parse a graphql schema and generate simple bindings for:

  • Typescript
  • Kotlin

Getting started

Maven

Add the following configuration to your maven pom.xml

<project>
    <build>
        <plugins>
            <plugin>
                <groupId>community.flock</groupId>
                <artifactId>graphql-simple-bindings-maven-plugin</artifactId>
                <version>0.2.0</version>
                <configuration>
                    <language>All</language>
                    <packageName>community.flock.eco.feature.member.graphql</packageName>
                    <sourceDirectory>${project.basedir}/src/main/graphql</sourceDirectory>
                    <targetDirectory>${project.build.directory}/generated-sources/graphql</targetDirectory>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    ...
    <repositories>
        <repository>
            <id>bintray-flock-community</id>
            <name>bintray</name>
            <url>https://api.bintray.com/maven/flock-community/flock-maven</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

</project>

Node

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

Run in Docker

make build-kt
make run-kt

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
1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago