You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sitling/.vscode/tasks.json

39 lines
1.0 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Publish schema",
"type": "shell",
"command": "npx wgc subgraph publish ${input:subgraph} --schema=${input:subgraph}/graph/schema.graphqls",
"problemMatcher": [],
"options": {
"env": {
"COSMO_API_URL": "http://localhost:3001",
"COSMO_API_KEY": "cosmo_6a71cff4085e8353d85e876114e6010b"
}
}
},
{
"label": "Check schema",
"type": "shell",
"command": "npx wgc subgraph check ${input:subgraph} --schema=${input:subgraph}/graph/schema.graphqls",
"problemMatcher": [],
"options": {
"env": {
"COSMO_API_URL": "http://localhost:3001",
"COSMO_API_KEY": "cosmo_6a71cff4085e8353d85e876114e6010b"
}
}
}
],
"inputs": [
{
"id": "subgraph",
"description": "The name of the subgraph",
"type": "promptString"
}
]
}