From d181dd28819d3af5dca5b8aa1b4ea55e11bb102f Mon Sep 17 00:00:00 2001 From: Rory Campbell Date: Mon, 25 Jan 2021 22:08:22 +0100 Subject: [PATCH] moves example into simple example --- README.md | 4 +++- {example => examples/1-simple}/.gitignore | 0 {example => examples/1-simple}/packages.dhall | 0 {example => examples/1-simple}/server.js | 0 {example => examples/1-simple}/spago.dhall | 2 +- {example => examples/1-simple}/src/Main.purs | 0 {example => examples/1-simple}/test/Main.purs | 0 7 files changed, 4 insertions(+), 2 deletions(-) rename {example => examples/1-simple}/.gitignore (100%) rename {example => examples/1-simple}/packages.dhall (100%) rename {example => examples/1-simple}/server.js (100%) rename {example => examples/1-simple}/spago.dhall (87%) rename {example => examples/1-simple}/src/Main.purs (100%) rename {example => examples/1-simple}/test/Main.purs (100%) diff --git a/README.md b/README.md index 90f5dff0..a91d5fca 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,8 @@ name :: SProxy "name" name = SProxy ``` -You can see this full example with graphQL server in the example directory. +You can see this full example with graphQL server in the examples/simple directory. To keep schemas in sync, this library includes codegen functionality that introspects a graphql server and generates the code for the purescript schema type. You have schema and query codegen tools at this site: https://gql-query-to-purs.herokuapp.com/ + +API documentation at https://pursuit.purescript.org/packages/purescript-graphql-client \ No newline at end of file diff --git a/example/.gitignore b/examples/1-simple/.gitignore similarity index 100% rename from example/.gitignore rename to examples/1-simple/.gitignore diff --git a/example/packages.dhall b/examples/1-simple/packages.dhall similarity index 100% rename from example/packages.dhall rename to examples/1-simple/packages.dhall diff --git a/example/server.js b/examples/1-simple/server.js similarity index 100% rename from example/server.js rename to examples/1-simple/server.js diff --git a/example/spago.dhall b/examples/1-simple/spago.dhall similarity index 87% rename from example/spago.dhall rename to examples/1-simple/spago.dhall index fdec55e5..91a9578f 100644 --- a/example/spago.dhall +++ b/examples/1-simple/spago.dhall @@ -27,5 +27,5 @@ You can edit this file as you like. , "variant" ] , packages = ./packages.dhall -, sources = [ "src/**/*.purs", "test/**/*.purs", "../src/**/*.purs" ] +, sources = [ "src/**/*.purs", "test/**/*.purs", "../../src/**/*.purs" ] } diff --git a/example/src/Main.purs b/examples/1-simple/src/Main.purs similarity index 100% rename from example/src/Main.purs rename to examples/1-simple/src/Main.purs diff --git a/example/test/Main.purs b/examples/1-simple/test/Main.purs similarity index 100% rename from example/test/Main.purs rename to examples/1-simple/test/Main.purs