Skip to content

Commit

Permalink
init dapp as single repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dan13ram committed Jul 16, 2022
1 parent 8d69967 commit d855157
Show file tree
Hide file tree
Showing 333 changed files with 1,789 additions and 40,284 deletions.
File renamed without changes.
40 changes: 24 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,41 +1,49 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules
.pnp
/node_modules
/.pnp
.pnp.js

# testing
coverage
/coverage

# next.js
/.next/
/out/

# production
build
dist
.next
/build

# misc
.DS_Store
.env*
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# contracts
packages/contracts/cache
packages/contracts/types
packages/contracts/artifacts
packages/contracts/coverage*
# local env files
.env*
.sw[a-z]

# vercel
.vercel

# subgraph
packages/subgraph/build/
packages/subgraph/src/types/
packages/subgraph/subgraph.yaml
# songaday
layers
output

# vim
*.sw[a-z]

# typescript
*.tsbuildinfo

# graphql
graphql/types.ts

# yarn
.yarn
.yarnrc.yml
Expand Down
9 changes: 9 additions & 0 deletions packages/dapp/.gitignore → .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,12 @@ output

# graphql
graphql/types.ts

# yarn
.yarn
.yarnrc.yml
.pnp.*
package-lock.json

# contract types
/types/
10 changes: 1 addition & 9 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,5 @@
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2,
"arrowParens": "avoid",
"overrides": [
{
"files": "*.sol",
"options": {
"tabWidth": 4
}
}
]
"arrowParens": "avoid"
}
28 changes: 1 addition & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1 @@
# Quest Chains Mono Repo

## Available Scripts

In the project directory, you can run:

### Dapp

#### `yarn dapp:dev`

#### `yarn dapp:build`

#### `yarn dapp:start`

### Contracts

#### `yarn contracts:compile`

#### `yarn contracts:test`

#### `yarn contracts:deploy`

### Subgraph

#### `yarn subgraph:codegen`

#### `yarn subgraph:build`
# Quest Chains Dapp
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
redirects: [],
reactStrictMode: true,
experimental: {},
images: {},
};
110 changes: 72 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,93 @@
{
"name": "@quest-chains/mono-repo",
"version": "1.0.0",
"keywords": [
"ethereum",
"react",
"workspaces",
"yarn"
],
"private": true,
"name": "@quest-chains/dapp",
"version": "0.1.0",
"license": "MIT",
"scripts": {
"lint": "concurrently \"yarn utils:lint\" \"yarn dapp:lint\" \"yarn contracts:lint\"",
"typecheck": "concurrently \"yarn utils:typecheck\" \"yarn dapp:typecheck\" \"yarn contracts:typecheck\"",
"format": "prettier --ignore-path .gitignore --write \"{*,**/*}.{json,yml,yaml,md,css,scss,sol}\"",
"contracts:compile": "yarn workspace @quest-chains/contracts compile",
"contracts:build": "yarn workspace @quest-chains/contracts build",
"contracts:lint": "yarn workspace @quest-chains/contracts lint",
"contracts:typecheck": "yarn workspace @quest-chains/contracts typecheck",
"contracts:test": "yarn workspace @quest-chains/contracts test",
"contracts:deploy": "yarn workspace @quest-chains/contracts deploy",
"subgraph:codegen": "yarn workspace @quest-chains/subgraph codegen",
"subgraph:build": "yarn workspace @quest-chains/subgraph build",
"dapp:dev": "yarn workspace @quest-chains/dapp dev",
"dapp:lint": "yarn workspace @quest-chains/dapp lint",
"dapp:typecheck": "yarn workspace @quest-chains/dapp typecheck",
"dapp:build": "yarn workspace @quest-chains/dapp build",
"dapp:start": "yarn workspace @quest-chains/dapp start",
"dapp:generate": "yarn workspace @quest-chains/dapp generate",
"utils:lint": "yarn workspace @quest-chains/utils lint",
"utils:build": "yarn workspace @quest-chains/utils build",
"utils:typecheck": "yarn workspace @quest-chains/utils typecheck",
"root:prepare": "concurrently \"yarn utils:build\" \"yarn contracts:build\" \"yarn dapp:generate\" && patch-package && husky install",
"prepare": "yarn root:prepare"
"dev": "next dev",
"build": "yarn root:prepare && next build",
"start": "next start",
"typecheck": "tsc",
"lint": "eslint --ignore-path .gitignore \"*/**/*.{js,jsx,ts,tsx}\" --fix",
"format": "prettier --write \"{*,**/*}.{ts,tsx,js,jsx,json,yml,yaml,md,css,scss,sol}\"",
"root:prepare": "yarn --cwd ../../ root:prepare",
"prepare": "yarn generate && patch-package && husky install",
"generate": "graphql-codegen --config=codegen.yml"
},
"workspaces": {
"packages": [
"packages/*"
]
"dependencies": {
"@chakra-ui/icons": "^2.0.2",
"@chakra-ui/react": "^2.2.1",
"@davatar/react": "^1.10.4",
"@emotion/react": "^11.9.3",
"@emotion/styled": "^11.9.3",
"@gnosis.pm/safe-apps-web3modal": "^14.0.0",
"@react-three/drei": "^9.17.1",
"@react-three/fiber": "^8.0.27",
"@superfluid-finance/sdk-core": "^0.3.2",
"@types/three": "^0.141.0",
"@walletconnect/web3-provider": "^1.7.8",
"ajv": "^8.11.0",
"busboy": "^1.6.0",
"chakra-ui-markdown-renderer": "^4.1.0",
"ethers": "^5.6.9",
"fast-memoize": "^2.5.2",
"formik": "^2.2.9",
"framer-motion": "^6.4.3",
"graphql": "^16.5.0",
"graphql-request": "^4.3.0",
"graphql-tag": "^2.12.6",
"html2canvas": "^1.4.1",
"ipfs-http-client": "34.0.0",
"next": "12.2.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-dropzone": "^14.2.2",
"react-hot-toast": "^2.3.0",
"react-markdown": "^8.0.3",
"react-markdown-editor-lite": "^1.3.2",
"react-scroll": "^1.8.7",
"remark-gfm": "^3.0.1",
"remove-markdown": "^0.5.0",
"sass": "^1.53.0",
"three": "^0.142.0",
"typescript": "^4.7.4",
"urql": "^2.2.2",
"web3.storage": "^4.3.0",
"web3modal": "^1.9.8"
},
"devDependencies": {
"@graphql-codegen/add": "^3.2.0",
"@graphql-codegen/cli": "^2.7.0",
"@graphql-codegen/typescript": "^2.6.0",
"@graphql-codegen/typescript-operations": "^2.4.3",
"@graphql-codegen/typescript-urql": "^3.5.13",
"@next/eslint-plugin-next": "^12.2.1",
"@types/graceful-fs": "^4.1.5",
"@types/node": "^18.0.3",
"@types/busboy": "^1.5.0",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@types/react-scroll": "^1.8.3",
"@types/remove-markdown": "^0.3.1",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"concurrently": "^7.2.2",
"eslint": "^8.19.0",
"eslint-config-next": "^12.2.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jsx-a11y": "^6.6.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"patch-package": "^6.4.7",
"prettier": "^2.7.1",
"prettier-plugin-solidity": "^1.0.0-beta.19",
"typescript": "^4.7.4"
},
"lint-staged": {
"*.{ts,tsx,js,jsx}": [
"eslint --fix"
],
"*.{json,yml,yaml,md}": [
"prettier --write"
]
}
}
4 changes: 0 additions & 4 deletions packages/contracts/.eslintignore

This file was deleted.

22 changes: 0 additions & 22 deletions packages/contracts/.eslintrc.json

This file was deleted.

26 changes: 0 additions & 26 deletions packages/contracts/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions packages/contracts/.prettierignore

This file was deleted.

16 changes: 0 additions & 16 deletions packages/contracts/.prettierrc.json

This file was deleted.

7 changes: 0 additions & 7 deletions packages/contracts/.solhint.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/contracts/.solhintignore

This file was deleted.

16 changes: 0 additions & 16 deletions packages/contracts/README.md

This file was deleted.

Loading

0 comments on commit d855157

Please sign in to comment.