Skip to content

Commit

Permalink
feat: upgrade cms
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Nov 28, 2024
1 parent d9ab7c0 commit f62d8f3
Show file tree
Hide file tree
Showing 115 changed files with 16,863 additions and 18,283 deletions.
5 changes: 4 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"bracketSpacing": true,
"proseWrap": "preserve",
"semi": false,
"printWidth": 80
"printWidth": 80,
"plugins": [
"prettier-plugin-organize-imports"
]
}
4 changes: 3 additions & 1 deletion apps/backend/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ build/
test/

# jest config
jest.config.js
jest.config.js

src/__generated__
18 changes: 18 additions & 0 deletions apps/backend/codegen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { CodegenConfig } from '@graphql-codegen/cli'

const config: CodegenConfig = {
schema: './schema.gql',
documents: ['src/**/*.{ts,tsx}'],
generates: {
'./src/__generated__/': {
preset: 'client',
plugins: [],
presetConfig: {
gqlTagName: 'gql'
}
}
},
ignoreNoDocuments: true
}

export default config
15 changes: 10 additions & 5 deletions apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"codecov": "node_modules/.bin/codecov -t 7b33b616-c7c6-465f-a858-91ca93071f98"
"codecov": "node_modules/.bin/codecov -t 7b33b616-c7c6-465f-a858-91ca93071f98",
"gql2ts:compile": "graphql-codegen",
"gql2ts:watch": "graphql-codegen -w"
},
"dependencies": {
"@apollo/gateway": "^0.50.0",
"@azure/storage-blob": "^12.8.0",
"@graphql-codegen/cli": "^5.0.3",
"@graphql-codegen/client-preset": "^4.5.1",
"@graphql-typed-document-node/core": "^3.2.0",
"@nestjs/apollo": "^10.0.14",
"@nestjs/axios": "^3.0.2",
"@nestjs/common": "^9.0.11",
Expand All @@ -32,14 +37,15 @@
"@nestjs/graphql": "^10.1.1",
"@nestjs/mongoose": "^9.0.1",
"@nestjs/platform-express": "^9.0.11",
"@repo/utils": "workspace:*",
"apollo-server-core": "^3.5.0",
"apollo-server-express": "^3.5.0",
"axios": "^1.7.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.13.1",
"dotenv": "^16.0.2",
"express": "^4.17.1",
"graphql": "^16.5.0",
"graphql": "^16.9.0",
"helmet": "^6.0.0",
"joi": "^17.4.2",
"keycloak-connect": "^18.0.2",
Expand All @@ -53,8 +59,7 @@
"ts-morph": "^15.1.0",
"uuid": "^8.3.2",
"winston": "^3.3.3",
"yancey-js-util": "^3.0.0",
"@repo/utils": "workspace:*"
"yancey-js-util": "^3.0.0"
},
"devDependencies": {
"@nestjs/cli": "^9.1.2",
Expand Down Expand Up @@ -85,6 +90,6 @@
"ts-loader": "^9.2.5",
"ts-node": "^10.2.1",
"tsconfig-paths": "^4.1.0",
"typescript": "^4.5.4"
"typescript": "^4.9.5"
}
}
87 changes: 87 additions & 0 deletions apps/backend/src/__generated__/fragment-masking.ts

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

24 changes: 24 additions & 0 deletions apps/backend/src/__generated__/gql.ts

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

Loading

0 comments on commit f62d8f3

Please sign in to comment.