Skip to content

Commit

Permalink
Ignore .generated.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-kiliushin committed Nov 8, 2023
1 parent d329f8f commit 1a9a969
Show file tree
Hide file tree
Showing 30 changed files with 46 additions and 1,639 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ts-checks-build-and-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
node-version: "18.13.0"
- name: Installing node modules
run: npm install
- name: Generating TS code from GraphQL definitions
run: npm run graphql-codegen
- name: Checking for TypeScript errors
run: npm run check-types
- name: Building app
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
**/.DS_Store
**/*.env
src/api/**/*.generated.ts
cypress/downloads/downloads.html
cypress/screenshots/**/*failed*
cypress/videos
Expand Down
6 changes: 3 additions & 3 deletions codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import type { CodegenConfig } from "@graphql-codegen/cli"
const config: CodegenConfig = {
documents: "./src/api/**/*.graphql",
generates: {
"src/api/types.ts": {
"src/api/types.generated.ts": {
plugins: ["typescript"],
},
"src/api": {
preset: "near-operation-file",
presetConfig: {
extension: ".ts",
baseTypesPath: "types.ts",
extension: ".generated.ts",
baseTypesPath: "types.generated.ts",
},
plugins: ["typescript-operations", "typescript-react-apollo"],
},
Expand Down
46 changes: 0 additions & 46 deletions src/api/authorization/index.ts

This file was deleted.

283 changes: 0 additions & 283 deletions src/api/boards/index.ts

This file was deleted.

0 comments on commit 1a9a969

Please sign in to comment.