2021-07-04 15:31:33 +00:00
|
|
|
{
|
|
|
|
"version": "2.0.0",
|
2021-07-27 01:11:53 +00:00
|
|
|
// https://code.visualstudio.com/docs/editor/tasks
|
2021-12-26 01:23:02 +00:00
|
|
|
// https://gist.github.com/deadalusai/9e13e36d61ec7fb72148
|
|
|
|
// ${workspaceRoot}: the root folder of the team
|
|
|
|
// ${file}: the current opened file
|
|
|
|
// ${fileBasename}: the current opened file's basename
|
|
|
|
// ${fileDirname}: the current opened file's dirname
|
|
|
|
// ${fileExtname}: the current opened file's extension
|
|
|
|
// ${cwd}: the current working directory of the spawned process
|
2021-07-27 01:11:53 +00:00
|
|
|
"tasks": [
|
|
|
|
{
|
2021-12-26 01:23:02 +00:00
|
|
|
"label": "build_flowy_sdk",
|
2021-07-04 15:31:33 +00:00
|
|
|
"type": "shell",
|
2021-07-25 03:08:59 +00:00
|
|
|
"command": "sh ./scripts/build_sdk.sh",
|
2021-11-23 00:28:59 +00:00
|
|
|
"windows": {
|
|
|
|
"options": {
|
2021-12-18 03:21:11 +00:00
|
|
|
"env": {
|
|
|
|
"FLOWY_DEV_ENV": "Windows",
|
|
|
|
},
|
2021-11-23 00:28:59 +00:00
|
|
|
"shell": {
|
|
|
|
"executable": "cmd.exe",
|
|
|
|
"args": [
|
2021-12-26 01:23:02 +00:00
|
|
|
"/d",
|
|
|
|
"/c",
|
|
|
|
".\\scripts\\build_sdk.cmd"
|
2021-11-23 00:28:59 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-12-18 03:21:11 +00:00
|
|
|
"linux": {
|
|
|
|
"options": {
|
|
|
|
"env": {
|
|
|
|
"FLOWY_DEV_ENV": "Linux-x86",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"osx": {
|
|
|
|
"options": {
|
|
|
|
"env": {
|
|
|
|
"FLOWY_DEV_ENV": "macOS",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
2021-07-04 15:31:33 +00:00
|
|
|
"group": "build",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}/../"
|
2021-12-26 01:23:02 +00:00
|
|
|
},
|
2021-07-25 08:07:53 +00:00
|
|
|
// "problemMatcher": [
|
2021-12-26 01:23:02 +00:00
|
|
|
// "$rustc"
|
|
|
|
// ],
|
|
|
|
},
|
2022-02-24 08:17:02 +00:00
|
|
|
{
|
|
|
|
"label": "Code Gen",
|
|
|
|
"type": "shell",
|
|
|
|
"dependsOn": [
|
|
|
|
"Flutter Pub",
|
|
|
|
"Flutter Package Get",
|
|
|
|
"Generate Language Files",
|
|
|
|
"Generate Freezed Files"
|
|
|
|
],
|
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true,
|
|
|
|
},
|
|
|
|
"dependsOrder": "sequence",
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"panel": "new"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Flutter Pub",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "flutter pub get",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Flutter Package Get",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "flutter packages pub get",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Generate Freezed Files",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "flutter pub run build_runner build --delete-conflicting-outputs",
|
|
|
|
},
|
2021-12-26 01:23:02 +00:00
|
|
|
{
|
|
|
|
"label": "Generate Language Files",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "sh ./scripts/generate_language_files.sh",
|
|
|
|
"windows": {
|
|
|
|
"options": {
|
|
|
|
"shell": {
|
|
|
|
"executable": "cmd.exe",
|
|
|
|
"args": [
|
|
|
|
"/d",
|
|
|
|
"/c",
|
|
|
|
".\\scripts\\generate_language_files.cmd"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"group": "build",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}/../"
|
|
|
|
},
|
2022-02-15 14:35:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-02-17 08:32:10 +00:00
|
|
|
"label": "Clean",
|
2022-02-15 14:35:52 +00:00
|
|
|
"type": "shell",
|
|
|
|
"command": "sh ./scripts/clean.sh",
|
|
|
|
"windows": {
|
|
|
|
"options": {
|
|
|
|
"shell": {
|
|
|
|
"executable": "cmd.exe",
|
|
|
|
"args": [
|
|
|
|
"/d",
|
|
|
|
"/c",
|
|
|
|
".\\scripts\\clean.cmd"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}/../"
|
|
|
|
},
|
2021-12-18 03:21:11 +00:00
|
|
|
}
|
2021-07-04 15:31:33 +00:00
|
|
|
]
|
|
|
|
}
|