Skip to content

Commit

Permalink
Merge pull request #445 from cloudnativedaysjp/feat/integrate_with_we…
Browse files Browse the repository at this point in the history
…aver

Update for CNDF2023
  • Loading branch information
hrk091 authored Jul 19, 2023
2 parents 7226c03 + 4ae3e79 commit e672f67
Show file tree
Hide file tree
Showing 21 changed files with 2,577 additions and 132 deletions.
3 changes: 2 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ NEXT_PUBLIC_AUTH0_CLIENT_ID=0cWWdpGt4CpWjHJ9QIHtPm5GrJLS25lz
NEXT_PUBLIC_AUTH0_AUDIENCE=https://event.cloudnativedays.jp/
NEXT_PUBLIC_BASE_PATH=/cndt2022/ui
NEXT_PUBLIC_API_BASE_URL=http://localhost:8080/
NEXT_PUBLIC_EVENT_SALT=cndt2022
NEXT_PUBLIC_EVENT_SALT=cndt2022
NEXT_PUBLIC_WEAVER_URL=http://localhost:8088/
18 changes: 18 additions & 0 deletions 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: 'http://localhost:8088/query',
documents: ['src/**/*.tsx', 'src/**/*.ts'],
generates: {
'./src/__generated__/': {
preset: 'client',
plugins: [],
presetConfig: {
gqlTagName: 'gql',
},
},
},
ignoreNoDocuments: true,
}

export default config
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
"start": "next start",
"export": "next build && next export",
"type-check": "tsc",
"gql": "graphql-codegen",
"lint": "prettier --write '**/*.{js,jsx,ts,tsx}' && eslint --fix './**/*.{js,jsx,ts,tsx}' && eslint '*/**/*.{js,ts}' --quiet --fix",
"test": "yarn install --frozen-lockfile && jest",
"test:update": "jest -u",
"test:coverage": "jest --collect-coverage",
"rtk-query-codegen": "rtk-query-codegen-openapi ./rtk-query-codegen-openapi.config.ts"
},
"dependencies": {
"@apollo/client": "^3.7.15",
"@auth0/auth0-react": "^2.0.0",
"@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.3",
Expand All @@ -27,6 +29,7 @@
"actioncable": "^5.2.8-1",
"axios": "^1.0.0",
"dayjs": "^1.11.5",
"graphql": "^16.6.0",
"linkify-react": "^4.0.0",
"linkifyjs": "^4.0.0",
"next": "13.4.4",
Expand All @@ -44,6 +47,8 @@
"video.js": "^7.20.2"
},
"devDependencies": {
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/client-preset": "^4.0.1",
"@rtk-query/codegen-openapi": "^1.0.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
Expand Down
85 changes: 85 additions & 0 deletions src/__generated__/fragment-masking.ts

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

46 changes: 46 additions & 0 deletions 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 e672f67

Please sign in to comment.