Skip to content

Commit 266daf7

Browse files
committed
refactor: reorganize scripts in package.json for clarity and consistency
1 parent ca35c33 commit 266daf7

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

packages/subgraph/package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,17 @@
33
"version": "3.0.0",
44
"license": "UNLICENSED",
55
"scripts": {
6-
"format": "prettier --write \"(src|tests)/**/*.{ts,json}\"",
7-
"check-format": "prettier --check \"(src|tests)/**/*.ts|tests/**/*.ts\"",
86
"codegen": "graph codegen subgraph.template.yaml",
97
"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'",
1411
"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'",
1614
"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\""
1917
},
2018
"dependencies": {
2119
"@graphprotocol/graph-cli": "^0.96.0",

0 commit comments

Comments
 (0)