|
7 | 7 | "scripts": { |
8 | 8 | "prepare": "husky", |
9 | 9 | "generate:typechain": "typechain --target ethers-v6 --out-dir generated/typechain './node_modules/@iexec/poco/build/contracts/*.json' --ts-nocheck", |
10 | | - "build": "dotenv -e .env -- rm -rf generated && rm -rf build && npm run generate:typechain && graph codegen && graph build --network ${NETWORK_NAME:-bellecour}", |
| 10 | + "codegen": " npm run generate:typechain && graph codegen", |
| 11 | + "build": "dotenv -e .env -- sh -c 'npm run codegen && graph build --network ${NETWORK_NAME:-bellecour}'", |
11 | 12 | "test": "npm run test:unit && npm run test:e2e", |
12 | 13 | "test:unit": "graph test unit", |
13 | 14 | "test:e2e": "mocha tests/e2e/**/*.ts", |
14 | 15 | "coverage": "graph test -- -c", |
15 | | - "create": "dotenv -e .env -- graph create ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020}", |
16 | | - "deploy": "dotenv -e .env -- graph deploy ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020} --ipfs ${IPFS_URL:-http://localhost:5001} --version-label ${VERSION_LABEL:-bellecour/poco-v5}", |
| 16 | + "create": "dotenv -e .env -- sh -c 'graph create ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020}'", |
| 17 | + "deploy": "dotenv -e .env -- sh -c 'graph deploy ${NETWORK_NAME:-bellecour}/poco --node ${GRAPHNODE_URL:-http://localhost:8020} --ipfs ${IPFS_URL:-http://localhost:5001} --network ${NETWORK_NAME:-bellecour} --version-label ${VERSION_LABEL:-bellecour/poco-v5}'", |
| 18 | + "deploy-studio": "dotenv -e .env -- sh -c 'graph deploy ${SUBGRAPH_SLUG} --deploy-key ${SUBGRAPH_DEPLOY_KEY} --network ${SUBGRAPH_NETWORK_NAME} --version-label ${VERSION_LABEL}'", |
17 | 19 | "all": "npm run build && npm run create && npm run deploy", |
18 | 20 | "stop-test-stack": "cd test-stack && docker compose down --remove-orphans --volumes", |
19 | 21 | "start-test-stack": "npm run stop-test-stack && cd test-stack && export NETWORK_NAME=${NETWORK_NAME:-bellecour} && tsx prepare-test-env.ts && docker compose build && docker compose up -d", |
|
0 commit comments