Skip to content

Commit 3b802e2

Browse files
authored
Merge pull request #5 from dataforgoodfr/chore/configure-tasks
Add VSCode tasks for building database and running Evidence; add extension to display tasks in status bar
2 parents b5ac680 + 0a41f94 commit 3b802e2

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"ms-python.python",
44
"ms-toolsai.jupyter",
55
"charliermarsh.ruff",
6-
"github.vscode-pull-request-github"
6+
"github.vscode-pull-request-github",
7+
"actboy168.tasks"
78
]
89
}

.vscode/tasks.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Build database",
6+
"type": "shell",
7+
"command": "uv run pipelines/run.py run build_database",
8+
"group": "none",
9+
"icon": {
10+
"id": "database"
11+
},
12+
"presentation": {
13+
"reveal": "always",
14+
"panel": "new"
15+
}
16+
},
17+
{
18+
"label": "Run Evidence",
19+
"type": "shell",
20+
"command": "if command -v npm > /dev/null 2>&1; then cd analytics/evidence && npm install && npm run sources && npm run dev -- --host 0.0.0.0; else echo 'NPM not installed'; fi",
21+
"group": "none",
22+
"icon": {
23+
"id": "run"
24+
},
25+
"problemMatcher": null,
26+
"presentation": {
27+
"reveal": "always",
28+
"panel": "new"
29+
}
30+
}
31+
]
32+
}

0 commit comments

Comments
 (0)