-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
49 lines (49 loc) · 3.08 KB
/
package.json
File metadata and controls
49 lines (49 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"name": "get-protocol-subgraph",
"license": "MIT",
"scripts": {
"build": "graph build",
"check": "eslint . && prettier --check --ignore-path .gitignore .",
"clean": "rm -r generated/* build/*",
"codegen": "graph codegen",
"format": "prettier --write --ignore-path .gitignore .",
"lint": "eslint .",
"postinstall": "husky install",
"prepare:polygon-development": "mustache config/polygon-development.json subgraph.yaml.mustache > subgraph.yaml && mustache config/polygon-development.json src/constants/contracts.ts.mustache > src/constants/contracts.ts && yarn codegen",
"prepare:polygon-testing": "mustache config/polygon-testing.json subgraph.yaml.mustache > subgraph.yaml && mustache config/polygon-testing.json src/constants/contracts.ts.mustache > src/constants/contracts.ts && yarn codegen",
"prepare:polygon-playground": "mustache config/polygon-playground.json subgraph.yaml.mustache > subgraph.yaml && mustache config/polygon-playground.json src/constants/contracts.ts.mustache > src/constants/contracts.ts && yarn codegen",
"prepare:polygon-production-v1": "jq 'del(.graft,.v2)' config/polygon-production.json | mustache - subgraph.yaml.mustache > subgraph.yaml && mustache config/polygon-production.json src/constants/contracts.ts.mustache > src/constants/contracts.ts && yarn codegen",
"prepare:polygon-production": "jq 'del(.v1)' config/polygon-production.json | mustache - subgraph.yaml.mustache > subgraph.yaml && mustache config/polygon-production.json src/constants/contracts.ts.mustache > src/constants/contracts.ts && yarn codegen",
"deploy:polygon-development": "graph deploy --studio open-core-amoy-dev",
"deploy:polygon-testing": "graph deploy --studio open-core-amoy-test",
"deploy:polygon-playground": "graph deploy --studio open-core-polygon-play",
"deploy:polygon-production-v1": "graph deploy --studio open-core-polygon-v1",
"deploy:polygon-production": "graph deploy --studio open-core-polygon",
"release:polygon-development": "yarn prepare:polygon-development && yarn deploy:polygon-development",
"release:polygon-testing": "yarn prepare:polygon-testing && yarn deploy:polygon-testing",
"release:polygon-playground": "yarn prepare:polygon-playground && yarn deploy:polygon-playground",
"release:polygon-production-v1": "yarn prepare:polygon-production-v1 && yarn deploy:polygon-production-v1",
"release:polygon-production": "yarn prepare:polygon-production && yarn deploy:polygon-production"
},
"dependencies": {
"@graphprotocol/graph-cli": "0.72.1",
"@graphprotocol/graph-ts": "0.31.0"
},
"devDependencies": {
"@commitlint/cli": "^17.6.5",
"@commitlint/config-conventional": "^17.6.5",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"husky": ">=8.0.3",
"lint-staged": ">=13.2.2",
"mustache": "^4.2.0",
"prettier": "^2.8.8",
"typescript": "^5.1.3"
},
"lint-staged": {
"*.ts": "eslint --cache --fix",
"*.{js,json,md,ts,yaml,yml,graphql}": "prettier --write"
}
}