mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-25 08:29:06 -06:00
* Revert "chore: simplify build script (#27547)" This reverts commit0a86ec686e. * Revert "chore: upgrade lerna to 6, cache build step (#26913)" This reverts commit9e60aeba8f. * [run ci] * chore: upgrade lerna to 6, cache build step (#26913) * chore: update build-npm-modules script * chore: update build-npm-modules script * chore: update build-npm-modules script * chore: update build-npm-modules script * chore: update lerna to 6 * [run ci] * try caching build step * we can't clean without building after * add dependencies on scripts for npm packages * update commands * add config for data-context build step * fix output configurations for npm packages, add gitignores * revert changes to config and data-context build steps * fix outputs * run with cache * fix outputs for cli * actually fix outputs * test with cache --------- Co-authored-by: astone123 <adams@cypress.io> * chore: simplify build script (#27547) * chore: simplify build script * update CI workflows * fix workflows * empty commit because Percy weirdness * chore: add driver, reporter, config as implicit dependencies for runner package (#27559) * run all workflows on branch * chore: parallelize test-binary-against-recipes CI step (#27570) * chore: fix some easy circular dependencies in dep graph (#27612) * chore: remove gulp tasks from postinstall (#27616) * empty commit * chore: minor improvements to node_modules_install (#27647) * chore: fix cypress:open and dev scripts * run with cache [run ci] * exclude mochaawesome assets from .yarnclean [run ci] * bump cache again [run ci] * run cached [run ci] * chore: do not cache cli build step [run ci] * update workflow command and docs for build-cli [run ci] * fix commands that use scope [run ci] * use different branch for publish repo [run ci] * percy weirdness? [run ci] * fix postbuild cli script [run ci] * try to remove typescript from production binary [run ci] * fix circular dependency [run ci] * try removing ts from node_modules [run ci] * remove typescript resolution [run ci] * remove redundant target scripts * update to lerna scoped commands * remove unneeded yarn in lerna command * try to fix Electron install in Windows workflow --------- Co-authored-by: Jordan <jordan@jpdesigning.com> Co-authored-by: Dave Kasper <dave.m.kasper@gmail.com>
132 lines
3.9 KiB
YAML
132 lines
3.9 KiB
YAML
# https://www.graphql-code-generator.com/docs/getting-started/index
|
|
|
|
documentFilters: &documentFilters
|
|
immutableTypes: true
|
|
useTypeImports: true
|
|
preResolveTypes: true
|
|
onlyOperationTypes: true
|
|
avoidOptionals: true
|
|
|
|
vueOperations: &vueOperations
|
|
schema: './schemas/schema.graphql'
|
|
config:
|
|
<<: *documentFilters
|
|
plugins:
|
|
- add:
|
|
content: '/* eslint-disable */'
|
|
- 'typescript'
|
|
- 'typescript-operations'
|
|
- 'typed-document-node':
|
|
# Intentionally specified under typed-document-node rather than top level config,
|
|
# because we don't want it flattening the types for the operations
|
|
flattenGeneratedTypes: true
|
|
|
|
vueTesting: &vueTesting
|
|
schema: './schemas/schema.graphql'
|
|
config:
|
|
<<: *documentFilters
|
|
plugins:
|
|
- add:
|
|
content: '/* eslint-disable */'
|
|
- 'typescript'
|
|
- 'typescript-operations':
|
|
# For modifying in mountFragment
|
|
immutableTypes: false
|
|
- 'typed-document-node'
|
|
|
|
overwrite: true
|
|
config:
|
|
enumsAsTypes: true
|
|
declarationKind: 'interface'
|
|
strictScalars: true
|
|
scalars:
|
|
Date: string
|
|
DateTime: string
|
|
JSON: any
|
|
generates:
|
|
###
|
|
# Generates types for us to infer the correct "source types" when we mock out on the frontend
|
|
# This ensures we have proper type checking when we're using cy.mountFragment in component tests
|
|
###
|
|
'../frontend-shared/cypress/support/generated/test-graphql-types.gen.ts':
|
|
schema: 'schemas/schema.graphql'
|
|
plugins:
|
|
- add:
|
|
content: '/* eslint-disable */'
|
|
- 'typescript':
|
|
nonOptionalTypename: true
|
|
- '../frontend-shared/script/codegen-type-map.js'
|
|
|
|
'./src/gen/test-cloud-graphql-types.gen.ts':
|
|
schema: 'schemas/cloud.graphql'
|
|
plugins:
|
|
- add:
|
|
content: '/* eslint-disable */'
|
|
- 'typescript':
|
|
nonOptionalTypename: true
|
|
- '../frontend-shared/script/codegen-type-map.js'
|
|
|
|
'./src/gen/cloud-source-types.gen.ts':
|
|
config:
|
|
useTypeImports: true
|
|
schema: 'schemas/cloud.graphql'
|
|
plugins:
|
|
- add:
|
|
content: '/* eslint-disable */'
|
|
- 'typescript'
|
|
- 'typescript-resolvers'
|
|
|
|
###
|
|
# Generates types for us to infer the correct keys for graphcache
|
|
###
|
|
'../data-context/src/gen/graphcache-config.gen.ts':
|
|
config:
|
|
useTypeImports: true
|
|
schema: 'schemas/schema.graphql'
|
|
plugins:
|
|
- add:
|
|
content: '/* eslint-disable */'
|
|
- typescript
|
|
- typescript-urql-graphcache
|
|
|
|
###
|
|
# All of the GraphQL Query/Mutation documents we import for use in the .{vue,ts,tsx,js,jsx}
|
|
# files for useQuery / useMutation, as well as types associated with the fragments
|
|
###
|
|
'../launchpad/src/generated/graphql.ts':
|
|
documents:
|
|
- '../launchpad/src/**/*.{vue,ts,tsx,js,jsx}'
|
|
- '../frontend-shared/src/**/*.{vue,ts,tsx,js,jsx}'
|
|
<<: *vueOperations
|
|
|
|
'../app/src/generated/graphql.ts':
|
|
documents:
|
|
- '../app/src/**/*.{vue,ts,tsx,js,jsx}'
|
|
- '../frontend-shared/src/**/*.{vue,ts,tsx,js,jsx}'
|
|
<<: *vueOperations
|
|
|
|
'../frontend-shared/src/generated/graphql.ts':
|
|
documents: '../frontend-shared/src/{gql-components,graphql,composables}/**/*.{vue,ts,tsx,js,jsx}'
|
|
<<: *vueOperations
|
|
###
|
|
# All GraphQL documents imported into the .spec.tsx files for component testing.
|
|
# Similar to generated/graphql.ts, except it doesn't include the flattening for the document nodes,
|
|
# so we can actually use the document in cy.mountFragment
|
|
###
|
|
'../launchpad/src/generated/graphql-test.ts':
|
|
documents:
|
|
- '../launchpad/src/**/*.{vue,ts,tsx,js,jsx}'
|
|
- '../frontend-shared/src/**/*.{vue,ts,tsx,js,jsx}'
|
|
<<: *vueTesting
|
|
|
|
'../app/src/generated/graphql-test.ts':
|
|
documents:
|
|
- '../app/src/**/*.{vue,ts,tsx,js,jsx}'
|
|
- '../frontend-shared/src/gql-components/**/*.{vue,ts,tsx,js,jsx}'
|
|
<<: *vueTesting
|
|
|
|
'../frontend-shared/src/generated/graphql-test.ts':
|
|
documents:
|
|
- '../frontend-shared/src/gql-components/**/*.{vue,ts,tsx,js,jsx}'
|
|
<<: *vueTesting
|