Skip to content

Commit

Permalink
Merge branch 'main' of github.com:opentargets/ot-ui-apps into cc-plat…
Browse files Browse the repository at this point in the history
…form-e2e
  • Loading branch information
carcruz committed Oct 10, 2023
2 parents e5de4db + 391fed1 commit a481db8
Show file tree
Hide file tree
Showing 744 changed files with 18,727 additions and 14,762 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
language: node_js
dist: focal
node_js:
- 16
cache: yarn
- 18
cache:
directories:
- "node_modules"
install:
- yarn
before_script:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This repository holds the Open Targets web applications.

## Required stack

- [NodeJS >= v14](https://nodejs.org/en/)
- [NodeJS >= v18](https://nodejs.org/en/)
- [Yarn package manager](https://yarnpkg.com/)

## Running development
Expand Down
28 changes: 28 additions & 0 deletions apps/genetics/codegen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
schema: 'https://api.genetics.opentargets.org/graphql',
documents: [
'src/**/*.tsx',
'src/**/*.ts',
'src/**/*.graphql',
'src/**/*.gql',
],
generates: {
'./src/__generated__/': {
preset: 'client',
plugins: [],
presetConfig: {
gqlTagName: 'gql',
},
config: {
scalars: {
Long: 'number',
},
},
},
},
ignoreNoDocuments: true,
};

export default config;
6 changes: 5 additions & 1 deletion apps/genetics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"ui": "*"
},
"scripts": {
"gql:compile": "graphql-codegen",
"dev": "vite --host 0.0.0.0 --port 3001 --clearScreen false",
"build": "vite build",
"preview": "vite preview",
Expand All @@ -69,11 +70,14 @@
"not op_mini all"
],
"devDependencies": {
"@graphql-codegen/cli": "^3.3.1",
"@graphql-codegen/client-preset": "^3.0.1",
"@types/file-saver": "^2.0.5",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@types/react-helmet": "^6.1.6",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react": "^3.1.0",
"@vitejs/plugin-react": "^4.0.4",
"browserstack-local": "^1.4.5",
"cross-fetch": "^3.1.4",
"husky": ">=4",
Expand Down
2 changes: 1 addition & 1 deletion apps/genetics/public/profiles/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
var configProfile = {
/* general items */

helpdeskEmail: 'helpdesk@opentargets.org',
documentationUrl: "https://genetics-docs.opentargets.org",
communityUrl: 'https://community.opentargets.org',
communityTicketUrl: 'https://community.opentargets.org/c/community-feedback/bug-reports/34',
// config navbar main menu (hamburger)
Expand Down
48 changes: 48 additions & 0 deletions apps/genetics/src/__generated__/fragment-masking.ts

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

197 changes: 197 additions & 0 deletions apps/genetics/src/__generated__/gql.ts

Large diffs are not rendered by default.

Loading

0 comments on commit a481db8

Please sign in to comment.