-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtasks.json
105 lines (102 loc) · 3.12 KB
/
tasks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
// Available variables which can be used inside of strings.
// $(workspaceRoot): the project root folder
// $(file): the current opened file
// $(fileDirname): the current opened file's dirname
// ${fileBasename): the current opened file's basename
// $(fileExtname): the current opened file's extension
// $(cwd): the current working directory of the spawned process
"version": "2.0.0",
"type": "shell",
"presentation": {
"reveal": "always",
"panel": "dedicated", // options: 'dedicated', 'shared'
"showReuseMessage": false // Controls whether to show the "Terminal will be reused by tasks, press any key to close it" message.
},
"tasks": [
{
"label": "prerequisites->poetry->install",
"command": "poetry install"
},
{
"label": "prerequisites->poetry->cleanup",
"command": "rm -rf .venv/ poetry.lock"
},
{
"label": "prerequisites->poetry->reset",
"dependsOrder": "sequence", // by default, "parallel"
"dependsOn": [
"prerequisites->poetry->cleanup",
"prerequisites->poetry->install"
]
},
{
"label": "prerequisites->venv->activate",
"command": ". .venv/bin/activate"
},
{
"label": "prerequisites->venv->deactivate",
"command": "deactivate"
},
{
"label": "web_app->show_api_routes",
"command": ". .venv/bin/activate && flask routes"
},
{
"label": "web_app->flask_shell",
"command": ". .venv/bin/activate && flask shell"
},
{
"label": "web_app->github_workflows->1.act_list",
"command": "act --list"
},
{
"label": "web_app->github_workflows->2.act_graph",
"command": "act --graph"
},
{
"label": "web_app->github_workflows->3.act_dryrun",
"command": "act --dryrun"
},
{
"label": "web_app->github_workflows->4.act_run",
"command": "act --rm --secret-file ./.github/.secrets"
},
{
"label": "web_app->github_workflows->5.act_clean",
"command": "act --dryrun"
},
{
"label": "web_app->run_on->docker_compose->up",
"command": "docker compose up --build --detach"
},
{
"label": "web_app->run_on->docker_compose->down",
"command": "docker compose down"
},
{
"label": "web_app->run_on->docker_compose->logs",
"command": "docker compose logs --timestamps --follow"
},
{
"label": "web_app->run_on->local->python",
"command": ". .venv/bin/activate && python app.py",
"dependsOrder": "sequence", // by default, "parallel"
"dependsOn": ["prerequisites->venv->activate"]
},
{
"label": "web_app->run_on->local->uwsgi",
"command": ". .venv/bin/activate && uwsgi --ini uwsgi.ini"
},
{
"label": "console_app->run",
"command": ". .venv/bin/activate && python console/main.py"
},
{
"label": "console_app->test",
"command": ". .venv/bin/activate && python -m unittest discover --start-directory './console' --pattern 'test_*.py' --verbose"
}
]
}