Skip to content
Open
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
2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,4 @@ packages/graphql-codegen-cli/tests/test-files/schema-dir/error-schema.graphql
packages/graphql-codegen-cli/tests/test-files/error-document.graphql

# Ignore dev-tests with no prettier requirement
dev-test/general/githunt-invalid/invalid.graphql
dev-test/general/test-schema/flow-types.flow.js
dev-test-apollo-tooling/src/__generated__/
2 changes: 1 addition & 1 deletion dev-test/general/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SCHEMA_PATH=./dev-test/general/test-schema/schema.graphql
SCHEMA_PATH=./test-schema/schema.graphql
2 changes: 2 additions & 0 deletions dev-test/general/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
githunt-invalid/invalid.graphql
test-schema/flow-types.flow.js
264 changes: 128 additions & 136 deletions dev-test/general/codegen.ts

Large diffs are not rendered by default.

17 changes: 8 additions & 9 deletions dev-test/general/githunt/graphql-declared-modules.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
declare module '*/current-user.query.graphql' {
import { DocumentNode } from 'graphql';
const defaultDocument: DocumentNode;
export const CurrentUserForProfileFromOutsideDirectory: DocumentNode;
export const CurrentUserForProfile: DocumentNode;

export default defaultDocument;
}

declare module '*/comment-added.subscription.graphql' {
import { DocumentNode } from 'graphql';
const defaultDocument: DocumentNode;
Expand All @@ -31,6 +22,14 @@ declare module '*/comments-page-comment.fragment.graphql' {
export default defaultDocument;
}

declare module '*/current-user.query.graphql' {
import { DocumentNode } from 'graphql';
const defaultDocument: DocumentNode;
export const CurrentUserForProfile: DocumentNode;

export default defaultDocument;
}

declare module '*/feed-entry.fragment.graphql' {
import { DocumentNode } from 'graphql';
const defaultDocument: DocumentNode;
Expand Down
14 changes: 14 additions & 0 deletions dev-test/general/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "dev-test-general",
"version": "0.0.1",
"description": "Kitchen sink of various setups. For new dev-test, consider creating new project for better targetting",
"private": true,
"scripts": {
"generate": "pnpm generate:esm",
"generate:cjs": "node ../../packages/graphql-codegen-cli/dist/cjs/bin.js --require dotenv/config --config codegen.ts dotenv_config_path=.env",
"generate:esm": "node ../../packages/graphql-codegen-cli/dist/esm/bin.js --require dotenv/config --config codegen.ts dotenv_config_path=.env"
},
"devDependencies": {
"@graphql-codegen/cli": "workspace:*"
}
}
6 changes: 6 additions & 0 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ packages:
- packages/utils/*
- website
- examples/**/*
- dev-test/*
- dev-test-apollo-tooling

allowBuilds:
Expand Down
Loading