Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: purescript-contrib/setup-purescript@main
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not support Node 22

- uses: actions/setup-node@v6
with:
purescript: 0.15.15
psa: 0.8.2
spago: unstable
node-version: 22

- name: Cache PureScript dependencies
uses: actions/cache@v4
Expand All @@ -23,7 +21,7 @@ jobs:
# have changed. If you do not want to cache compiled output, remove
# the `output` path.
with:
key: k1-${{ runner.os }}-spago-${{ hashFiles('**/*.lock') }}
key: k2-${{ runner.os }}-spago-${{ hashFiles('**/*.lock') }}
path: |
.spago
output
Expand Down Expand Up @@ -56,9 +54,10 @@ jobs:
examples/13-error-boundaries/.spago
examples/13-error-boundaries/output

- run: spago build
- run: npm i
- run: npm exec spago build
- run: npm run bundle

- run: npm t

- name: Run Example Tests
Expand Down
1 change: 0 additions & 1 deletion codegen/schema/get-gql-schema.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fetch from "node-fetch";
import { getIntrospectionQuery } from "graphql";

export async function getGqlSchema({ moduleName, cache, url, token }) {
Expand Down
8 changes: 3 additions & 5 deletions codegen/schema/index.mjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import fs from "node:fs/promises";
import { writePursSchemas } from "./write-purs-schema.mjs";
import { getGqlSchema } from "./get-gql-schema.mjs";
import { promisify } from "util";
import mkdirp from "mkdirp";
import rimraf from "rimraf";
const rm = promisify(rimraf);
const mkdirp = (path) => fs.mkdir(path, { recursive: true });

export async function generateSchemas(opts, gqlEndpoints) {
if (!Array.isArray(gqlEndpoints)) {
gqlEndpoints = [gqlEndpoints];
}
await rm(opts.dir);
await fs.rm(opts.dir, { recursive: true, force: true });
await mkdirp(opts.dir);
await mkdirp(opts.dir + "/Schema");
await mkdirp(opts.dir + "/Enum");
Expand Down
58 changes: 8 additions & 50 deletions e2e/1-affjax/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions e2e/1-affjax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"express": "^4.17.1",
"express-graphql": "^0.12.0",
"graphql": "^15.4.0",
"isomorphic-ws": "^5.0.0",
"xhr2": "^0.2.0"
"xhr2": "^0.2.1"
}
}
76 changes: 1 addition & 75 deletions e2e/2-comments/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions e2e/2-comments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
"console": "^0.7.2",
"express": "4.17.1",
"express-graphql": "0.12.0",
"graphql": "15.4.0",
"isomorphic-ws": "^5.0.0",
"mkdirp": "1.0.4",
"rimraf": "3.0.2",
"xhr2": "0.2.0"
"graphql": "15.4.0"
},
"devDependencies": {
"exec-sh": "^0.4.0"
Expand Down
5 changes: 1 addition & 4 deletions examples/1-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
"express": "^4.17.1",
"express-graphql": "^0.12.0",
"graphql": "^15.4.0",
"graphql-ws": "^6.0.4",
"isomorphic-unfetch": "^4.0.2",
"isomorphic-ws": "^5.0.0",
"xhr2": "^0.2.0"
"graphql-ws": "^6.0.4"
},
"devDependencies": {
"exec-sh": "^0.4.0"
Expand Down
5 changes: 1 addition & 4 deletions examples/10-aliases/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
"express": "^4.17.1",
"express-graphql": "^0.12.0",
"graphql": "^15.4.0",
"graphql-ws": "^6.0.4",
"isomorphic-unfetch": "^4.0.2",
"isomorphic-ws": "^5.0.0",
"xhr2": "^0.2.0"
"graphql-ws": "^6.0.4"
},
"devDependencies": {
"exec-sh": "^0.4.0"
Expand Down
6 changes: 1 addition & 5 deletions examples/11-unions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
"console": "^0.7.2",
"express": "4.17.1",
"express-graphql": "0.12.0",
"graphql": "15.4.0",
"isomorphic-ws": "^5.0.0",
"mkdirp": "1.0.4",
"rimraf": "3.0.2",
"xhr2": "0.2.0"
"graphql": "15.4.0"
},
"devDependencies": {
"exec-sh": "^0.4.0"
Expand Down
3 changes: 1 addition & 2 deletions examples/12-directives/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"dependencies": {
"express": "^4.17.1",
"express-graphql": "^0.12.0",
"graphql": "^15.4.0",
"xhr2": "^0.2.0"
"graphql": "^15.4.0"
},
"devDependencies": {
"exec-sh": "^0.4.0"
Expand Down
4 changes: 1 addition & 3 deletions examples/13-error-boundaries/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
"dependencies": {
"express": "^4.17.1",
"express-graphql": "^0.12.0",
"graphql": "^15.4.0",
"isomorphic-ws": "^5.0.0",
"xhr2": "^0.2.0"
"graphql": "^15.4.0"
},
"devDependencies": {
"exec-sh": "^0.4.0"
Expand Down
6 changes: 1 addition & 5 deletions examples/2-codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
"dependencies": {
"express": "4.17.1",
"express-graphql": "0.12.0",
"graphql": "15.4.0",
"isomorphic-ws": "^5.0.0",
"mkdirp": "^1.0.4",
"rimraf": "3.0.2",
"xhr2": "0.2.0"
"graphql": "15.4.0"
},
"devDependencies": {
"exec-sh": "^0.4.0"
Expand Down
6 changes: 1 addition & 5 deletions examples/3-enums/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
"dependencies": {
"express": "4.17.1",
"express-graphql": "0.12.0",
"graphql": "15.4.0",
"isomorphic-ws": "^5.0.0",
"mkdirp": "^1.0.4",
"rimraf": "3.0.2",
"xhr2": "0.2.0"
"graphql": "15.4.0"
},
"devDependencies": {
"exec-sh": "^0.4.0"
Expand Down
7 changes: 1 addition & 6 deletions examples/4-mutation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@
"express": "4.17.1",
"express-graphql": "0.12.0",
"graphql": "^16.5.0",
"graphql-ws": "^5.9.1",
"isomorphic-ws": "^5.0.0",
"mkdirp": "1.0.4",
"rimraf": "3.0.2",
"subscriptions-transport-ws": "^0.11.0",
"xhr2": "0.2.0"
"graphql-ws": "^5.9.1"
},
"devDependencies": {
"exec-sh": "^0.4.0"
Expand Down
Loading
Loading