forked from github-starred/komodo
* docs: Add development POC * docs: Flesh out full build/run steps * feat: Add mergeable compose file to expose port and internal periphery url * feat: Add .devcontainer and VSCode Tasks for developing Komodo * Make cargo cache persistent in devcontainer * Add deno to devcontainer * Update tasks to include TS client copy to frontend before run * Recommend extensions for used dependencies in vscode workspace All extensions recommended are included in the devcontainer. This makes it easier for users not using devcontainer to get lang support. * Update local `run` sequence for development docs
179 lines
4.7 KiB
JSON
179 lines
4.7 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Run Core",
|
|
"command": "cargo",
|
|
"args": [
|
|
"run",
|
|
"-p",
|
|
"komodo_core",
|
|
"--release"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}",
|
|
"env": {
|
|
"KOMODO_CONFIG_PATH": "test.core.config.toml"
|
|
}
|
|
},
|
|
"problemMatcher": [
|
|
"$rustc"
|
|
]
|
|
},
|
|
{
|
|
"label": "Build Core",
|
|
"command": "cargo",
|
|
"args": [
|
|
"build",
|
|
"-p",
|
|
"komodo_core",
|
|
"--release"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}",
|
|
"env": {
|
|
"KOMODO_CONFIG_PATH": "test.core.config.toml"
|
|
}
|
|
},
|
|
"problemMatcher": [
|
|
"$rustc"
|
|
]
|
|
},
|
|
{
|
|
"label": "Run Periphery",
|
|
"command": "cargo",
|
|
"args": [
|
|
"run",
|
|
"-p",
|
|
"komodo_periphery",
|
|
"--release"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}",
|
|
"env": {
|
|
"KOMODO_CONFIG_PATH": "test.periphery.config.toml"
|
|
}
|
|
},
|
|
"problemMatcher": [
|
|
"$rustc"
|
|
]
|
|
},
|
|
{
|
|
"label": "Build Periphery",
|
|
"command": "cargo",
|
|
"args": [
|
|
"build",
|
|
"-p",
|
|
"komodo_periphery",
|
|
"--release"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}",
|
|
"env": {
|
|
"KOMODO_CONFIG_PATH": "test.periphery.config.toml"
|
|
}
|
|
},
|
|
"problemMatcher": [
|
|
"$rustc"
|
|
]
|
|
},
|
|
{
|
|
"label": "Run Backend",
|
|
"dependsOn": [
|
|
"Run Core",
|
|
"Run Periphery"
|
|
],
|
|
"problemMatcher": [
|
|
"$rustc"
|
|
]
|
|
},
|
|
{
|
|
"label": "Build TS Client Types",
|
|
"type": "process",
|
|
"command": "node",
|
|
"args": [
|
|
"./client/core/ts/generate_types.mjs"
|
|
],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Init TS Client",
|
|
"type": "shell",
|
|
"command": "yarn && yarn build && yarn link",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/client/core/ts",
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Init Frontend Client",
|
|
"type": "shell",
|
|
"command": "yarn link komodo_client && yarn install",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/frontend",
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Init Frontend",
|
|
"dependsOn": [
|
|
"Build TS Client Types",
|
|
"Init TS Client",
|
|
"Init Frontend Client"
|
|
],
|
|
"dependsOrder": "sequence",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Build Frontend",
|
|
"type": "shell",
|
|
"command": "yarn build",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/frontend",
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Prepare Frontend For Run",
|
|
"type": "shell",
|
|
"command": "cp -r ./client/core/ts/dist/. frontend/public/client/.",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}",
|
|
},
|
|
"dependsOn": [
|
|
"Build TS Client Types",
|
|
"Build Frontend"
|
|
],
|
|
"dependsOrder": "sequence",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Run Frontend",
|
|
"type": "shell",
|
|
"command": "yarn dev",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/frontend",
|
|
},
|
|
"dependsOn": ["Prepare Frontend For Run"],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Init",
|
|
"dependsOn": [
|
|
"Build Backend",
|
|
"Init Frontend"
|
|
],
|
|
"dependsOrder": "sequence",
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Run Komodo",
|
|
"dependsOn": [
|
|
"Run Core",
|
|
"Run Periphery",
|
|
"Run Frontend"
|
|
],
|
|
"problemMatcher": []
|
|
},
|
|
]
|
|
} |