|
3 | 3 | "version": "3.0.0", |
4 | 4 | "license": "UNLICENSED", |
5 | 5 | "scripts": { |
6 | | - "format": "prettier --write \"(src|tests)/**/*.{ts,json}\"", |
7 | | - "check-format": "prettier --check \"(src|tests)/**/*.ts|tests/**/*.ts\"", |
8 | 6 | "codegen": "graph codegen subgraph.template.yaml", |
9 | 7 | "build": "dotenv -e .env -- sh -c 'graph codegen subgraph.template.yaml && graph build subgraph.template.yaml --network ${NETWORK_NAME:-bellecour}'", |
10 | | - "deploy": "graph deploy --node https://api.thegraph.com/deploy/ DataProtector", |
11 | | - "create-local": "dotenv -e .env -- sh -c 'graph create ${NETWORK_NAME:-bellecour}/DataProtector-v2 --node ${GRAPHNODE_URL:-http://localhost:8020}'", |
12 | | - "remove-local": "dotenv -e .env -- sh -c 'graph remove ${NETWORK_NAME:-bellecour}/DataProtector-v2 --node ${GRAPHNODE_URL:-http://localhost:8020}'", |
13 | | - "deploy-local": "dotenv -e .env -- sh -c 'graph deploy ${NETWORK_NAME:-bellecour}/DataProtector-v2 subgraph.template.yaml --network ${NETWORK_NAME:-bellecour} --node ${GRAPHNODE_URL:-http://localhost:8020} --ipfs ${IPFS_URL:-http://localhost:5001} --version-label ${VERSION_LABEL:-dev}'", |
| 8 | + "deploy-theGraph": "graph deploy --node https://api.thegraph.com/deploy/ DataProtector", |
| 9 | + "create": "dotenv -e .env -- sh -c 'graph create --node ${GRAPHNODE_URL:-http://localhost:8020} ${NETWORK_NAME:-bellecour}${DEPLOY_ENV:-/}DataProtector-v2'", |
| 10 | + "deploy": "dotenv -e .env -- sh -c 'graph deploy subgraph.template.yaml --node ${GRAPHNODE_URL:-http://localhost:8020} --ipfs ${IPFS_URL:-http://localhost:5001} --network ${NETWORK_NAME:-bellecour} --version-label ${VERSION_LABEL:-dev} ${NETWORK_NAME:-bellecour}${DEPLOY_ENV:-/}DataProtector-v2'", |
14 | 11 | "clean": "rm -rf generated && rm -rf build", |
15 | | - "all": " dotenv -e .env -- sh -c 'tsx ./test-stack/prepare-test-env.ts && npm run clean && npm run codegen && npm run create-local && npm run deploy-local'", |
| 12 | + "test": "npm run codegen && graph test", |
| 13 | + "all": " dotenv -e .env -- sh -c 'tsx ./test-stack/prepare-test-env.ts && npm run build && npm run clean && npm run codegen && npm run create && npm run deploy'", |
16 | 14 | "refresh-abis": "node tools/refreshAbis.mjs", |
17 | | - "test": "graph test", |
18 | | - "coverage": "graph test -- -c" |
| 15 | + "format": "prettier --write \"(src|tests)/**/*.{ts,json}\"", |
| 16 | + "check-format": "prettier --check \"(src|tests)/**/*.ts|tests/**/*.ts\"" |
19 | 17 | }, |
20 | 18 | "dependencies": { |
21 | 19 | "@graphprotocol/graph-cli": "^0.96.0", |
|
0 commit comments