Skip to content

Commit

Permalink
feat(signups): clear-checker cron
Browse files Browse the repository at this point in the history
  • Loading branch information
ssilve1989 committed Nov 11, 2024
1 parent c9cfda6 commit e65dd59
Show file tree
Hide file tree
Showing 26 changed files with 11,127 additions and 235 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
# Default: ''
cache: "pnpm"
- run: pnpm install
- run: pnpm graphql:codegen
env:
FFLOGS_API_ACCESS_TOKEN: ${{ secrets.FFLOGS_API_ACCESS_TOKEN }}
- run: pnpm typecheck
- run: pnpm build
- run: pnpm lint:ci
Expand Down
3 changes: 3 additions & 0 deletions .graphqlrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Config file for GraphQL VSCode Extension Plugin
schema: "src/fflogs/graphql/schema.graphql"
documents: "src/fflogs/*.{graphql,ts}"
7 changes: 6 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
"useIgnoreFile": true
},
"linter": {
"ignore": ["src/fflogs/graphql/*.ts"],
"enabled": true,
"rules": {
"correctness": {
"noUnusedImports": "error"
},
"performance": {
"all": true
},
Expand All @@ -26,7 +30,8 @@
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2
"indentWidth": 2,
"ignore": ["src/fflogs/graphql/*.ts", "src/fflogs/graphql/*.graphql"]
},
"javascript": {
"parser": {
Expand Down
41 changes: 41 additions & 0 deletions codegen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import type { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
overwrite: true,
schema: {
'https://www.fflogs.com/api/v2/client': {
headers: {
Authorization: `Bearer ${process.env.FFLOGS_API_ACCESS_TOKEN}`,
},
experimentalFragmentVariables: true,
},
},
documents: ['src/**/*.graphql', 'src/fflogs/queries.ts'],
ignoreNoDocuments: true,
emitLegacyCommonJSImports: false,
generates: {
'./src/fflogs/graphql/schema.graphql': {
plugins: ['schema-ast'],
config: {
includeDirectives: true,
includeIntrospectionTypes: true,
},
},

'./src/fflogs/graphql/sdk.ts': {
plugins: [
'typescript',
'typescript-operations',
'typescript-graphql-request',
],
config: {
enumsAsConst: true,
documentMode: 'string',
immutableTypes: true,
useTypeImports: true,
},
},
},
};

export default config;
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
"license": "UNLICENSED",
"main": "dist/main.js",
"scripts": {
"build": "rimraf dist && nest build",
"build": "rimraf dist && tsc -p tsconfig.build.json",
"check": "biome check src",
"commit": "git-cz",
"commitlint": "commitlint --edit",
"docker:build": "docker build . -t ulti-project-bot:latest",
"format": "biome format . --write",
"g:slash-command": "hygen slash-command new",
"graphql:codegen": "graphql-codegen --config codegen.ts",
"lint": "biome lint --diagnostic-level=error src",
"lint:ci": "biome ci src",
"prepare": "node scripts/prepare.js",
Expand All @@ -41,10 +42,12 @@
"cache-manager": "^5.7.6",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"cron": "^3.1.7",
"dayjs": "^1.11.13",
"discord.js": "^14.16.3",
"firebase-admin": "^12.7.0",
"google-auth-library": "^9.14.2",
"graphql-request": "^7.1.0",
"nestjs-pino": "^4.1.0",
"pino-http": "^10.3.0",
"pino-pretty": "^11.3.0",
Expand All @@ -62,6 +65,10 @@
"@commitlint/prompt-cli": "^19.5.0",
"@flydotio/dockerfile": "^0.5.9",
"@golevelup/ts-vitest": "^0.5.1",
"@graphql-codegen/cli": "5.0.3",
"@graphql-codegen/schema-ast": "^4.1.0",
"@graphql-codegen/typescript": "4.1.0",
"@graphql-codegen/typescript-graphql-request": "^6.2.0",
"@nestjs/cli": "^10.4.7",
"@nestjs/schematics": "^10.2.3",
"@nestjs/testing": "^10.4.7",
Expand Down
Loading

0 comments on commit e65dd59

Please sign in to comment.