Skip to content

Commit

Permalink
feat: create profile lens (#269)
Browse files Browse the repository at this point in the history
feat: create profile lens (#269)
  • Loading branch information
albertfolch-redeemeum authored Oct 7, 2022
1 parent dda2398 commit db443f6
Show file tree
Hide file tree
Showing 152 changed files with 18,095 additions and 784 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ REACT_APP_DEFAULT_DISPUTE_RESOLVER_ID=1

REACT_APP_DEFAULT_RESOLUTION_PERIOD_DAYS=15

REACT_APP_CREATE_PROFILE_CONFIGURATION=LENS
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
"import/resolver": {
"typescript": {}
}
}
},
"ignorePatterns": ["src/lib/utils/hooks/lens/graphql/generated.ts"]
}
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
ENV_NAME: "testing"
UPDATE_COVERAGE: false
REACT_APP_ENABLE_CURATION_LISTS: false
REACT_APP_CREATE_PROFILE_CONFIGURATION: "LENS"
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -44,6 +45,7 @@ jobs:
ENV_NAME: "testing"
UPDATE_COVERAGE: true
REACT_APP_ENABLE_CURATION_LISTS: false
REACT_APP_CREATE_PROFILE_CONFIGURATION: "LENS"
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
FLEEK_API_KEY: ${{ secrets.FLEEK_API_KEY }}
Expand All @@ -64,6 +66,7 @@ jobs:
ENV_NAME: "staging"
UPDATE_COVERAGE: false
REACT_APP_ENABLE_CURATION_LISTS: false
REACT_APP_CREATE_PROFILE_CONFIGURATION: "LENS"
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
FLEEK_API_KEY: ${{ secrets.FLEEK_API_KEY }}
Expand All @@ -84,6 +87,7 @@ jobs:
ENV_NAME: "production"
UPDATE_COVERAGE: false
REACT_APP_ENABLE_CURATION_LISTS: false
REACT_APP_CREATE_PROFILE_CONFIGURATION: "LENS"
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
FLEEK_API_KEY: ${{ secrets.FLEEK_API_KEY }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci_reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ on:
REACT_APP_OFFER_CURATION_LIST:
required: false
type: string
REACT_APP_CREATE_PROFILE_CONFIGURATION:
required: true
type: string
secrets:
NPM_TOKEN:
required: true
Expand Down Expand Up @@ -77,6 +80,7 @@ jobs:
REACT_APP_INFURA_IPFS_PROJECT_SECRET: ${{ secrets.REACT_APP_INFURA_IPFS_PROJECT_SECRET }}
REACT_APP_DEFAULT_TOKENS_LIST_TESTING: ${{ secrets.REACT_APP_DEFAULT_TOKENS_LIST_TESTING }}
REACT_APP_DEFAULT_TOKENS_LIST_STAGING: ${{ secrets.REACT_APP_DEFAULT_TOKENS_LIST_STAGING }}
REACT_APP_CREATE_PROFILE_CONFIGURATION: ${{ inputs.REACT_APP_CREATE_PROFILE_CONFIGURATION }}
REACT_APP_DEFAULT_TOKENS_LIST_PRODUCTION: ${{ secrets.REACT_APP_DEFAULT_TOKENS_LIST_PRODUCTION }}
outputs:
jobLint: ${{ steps.lint.outputs.pass }}
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/lib/utils/hooks/lens/graphql/generated.ts
12 changes: 12 additions & 0 deletions codegen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
schema: 'https://api-mumbai.lens.dev'
documents: './src/lib/utils/hooks/lens/graphql/*.graphql'
generates:
./src/lib/utils/hooks/lens/graphql/generated.ts:
plugins:
- typescript
- typescript-operations
- typed-document-node
- fragment-matcher
config:
fetcher: fetch
dedupeFragments: true
Loading

0 comments on commit db443f6

Please sign in to comment.