Add option to install a generated distro to the local Helios data folder

* Run g distro with --installLocal to have the generated file be copied into the local helios data folder.
* New property required in the .env, HELIOS_DATA_FOLDER
* Added two launch configurations to vs code.
This commit is contained in:
Daniel Scalzi
2020-06-29 18:07:46 -04:00
parent c470c22f14
commit bac2480c1b
4 changed files with 78 additions and 11 deletions

22
.vscode/launch.json vendored
View File

@@ -7,14 +7,26 @@
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"name": "Generate Distribution",
"program": "${workspaceFolder}\\src\\index.ts",
"args": [
"g",
"distro",
"xyz"
"g", "distro"
],
"preLaunchTask": "compile",
"preLaunchTask": "build",
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"outputCapture": "std",
},
{
"type": "node",
"request": "launch",
"name": "Install Dev Distribution",
"program": "${workspaceFolder}\\src\\index.ts",
"args": [
"g", "distro", "dev_distribution", "--installLocal"
],
"preLaunchTask": "build",
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],

10
.vscode/tasks.json vendored
View File

@@ -13,6 +13,16 @@
"presentation": {
"reveal": "silent"
}
},
{
"label": "build",
"type": "npm",
"script": "build",
"group": "build",
"problemMatcher": [],
"presentation": {
"reveal": "silent"
}
}
]
}