-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Structuring context & schema so it can be used on the client (#…
…17489) * wip: Structuring context & schema so it can be used on the client * chore: fix dev mode * Continuing to restructure graphql patterns * Cleaning up the server * Don't hash for now, for vite * fix for CI * WIP on integrating with vue * yarn lock * no need to return props from setup * use useResult for more concise and better type safety * fix regression * wip: migrate to apollo * Wip: mostly working with pollInterval * apollo -> urql * cleanup * continuing to cleanup * fix: updates to tests, strict type checking * Tests passing * wip: attempting rename * adding @packages/graphql * simplified fragment testing * fixing build scripts * remove --inspect-brk * fix ci scripts * fix build again * Fix tests * Add express as dep to @packages/graphql * fix packages * chore(launchpad): minor updates (#17551) * apply general improvemets from PR comments * remove unused file * comment out test for now * stub out missing story module Co-authored-by: Lachlan Miller <[email protected]>
- Loading branch information
1 parent
de85ccf
commit e2f395e
Showing
111 changed files
with
2,582 additions
and
1,487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"extends": [ | ||
"plugin:@cypress/dev/tests" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"env": { | ||
"cypress/globals": true | ||
}, | ||
"plugins": [ | ||
"cypress" | ||
], | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"./src/entities/**/*.ts" | ||
], | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": [ | ||
"error" | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
src/*.js | ||
src/**/*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if (process.env.CYPRESS_INTERNAL_ENV !== 'production') { | ||
require('@packages/ts/register') | ||
} | ||
|
||
module.exports = require('./src') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "@packages/graphql", | ||
"version": "0.0.0-development", | ||
"private": true, | ||
"main": "index.js", | ||
"browser": "src/index.ts", | ||
"scripts": { | ||
"build": "node script/build-schema.js", | ||
"types": "tsc --noEmit", | ||
"build-prod": "yarn build && tsc", | ||
"clean-deps": "rm -rf node_modules", | ||
"clean": "rm src/**/*.js && rm src/*.js || echo 'cleaned'", | ||
"postinstall": "echo '@packages/graphql needs: yarn build'" | ||
}, | ||
"dependencies": { | ||
"dedent": "^0.7.0", | ||
"express": "4.17.1", | ||
"express-graphql": "^0.12.0", | ||
"graphql": "^15.5.1", | ||
"graphql-scalars": "^1.10.0", | ||
"nexus": "^1.1.0", | ||
"nexus-decorators": "^0.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/dedent": "^0.7.0" | ||
}, | ||
"files": [ | ||
"src", | ||
"schema.graphql" | ||
], | ||
"types": "src/index.ts" | ||
} |
Oops, something went wrong.