Giter VIP home page Giter VIP logo

purescript-graphqlclient's Introduction

purescript-graphqlclient

TODO:

  1. Circular input objects? Do we want that? (use Newtype if we want)
  2. Subscriptions

Inspiration


How to install

npm install "git+https://github.com/purescript-graphqlclient/purescript-graphqlclient#COMMIT_HASH"
# or
yarn add "git+https://github.com/purescript-graphqlclient/purescript-graphqlclient#COMMIT_HASH"

How to run generator

purescript-graphqlclient-generator --input-url … --output … --api … --custom-scalars-module …

Requirements on the $PATH to build (should be installed globally)

  • purescript: ~0.14.0
  • spago: ~0.20.0

How to bundle a new build

yarn generator:bundle
# test with
node bin/purescript-graphqlclient-generator --help

How to regenerate examples

spago install
spago --config generator-spago.dhall install
spago --config examples-spago.dhall install

# How to create "Personal access tokens"
# 1. (optional) check https://docs.github.com/en/graphql/guides/forming-calls-with-graphql#authenticating-with-graphql
# 2. go to https://github.com/settings/tokens
# 3. create with only "public repos" permissions and name "ps-graphqlclient"

export MY_GITHUB_GRAPHQL_ENDPOINT_TOKEN=xxxx

./regenerate-examples.sh
yarn run examples:test --watch
git push

How to run generator from source

yarn install

# check ./regenerate-examples.sh file
spago --config generator-spago.dhall run \
  --main GraphQLClientGenerator.Main \
  --node-args "--help"

How to run tests locally

yarn install
spago install
spago --config generator-spago.dhall install
spago --config examples-spago.dhall install
./ci-approve.sh

purescript-graphqlclient's People

Contributors

srghma avatar liam-cb avatar toastal avatar dependabot[bot] avatar kdelwat avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.