Component Libraries

If you are working on custom component libraries you can define them in the launch.json file. The extension will automatically zip and statically host your component libraries. The library folder(s) can ether be in your project or in another workspace on your machine.

launch.json configuration options:

Example:

./project/
  ├─ .vscode
  │  ├─ launch.json
  ├─ manifest
  ├─ components/
  │  ├─ HomeScene.brs
  │  └─ HomeScene.xml
  ├─ source/
  │ └─ main.brs
  └─ customLibrary/
    ├─ manifest
    └─ components/
      ├─ CustomButton.brs
      ├─ CustomButton.xml
      ├─ CustomTextInput.brs
      └─ CustomTextInput.xml

Here's a sample launch.json for this scenario:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "brightscript",
      ...
      "rootDir": "${workspaceFolder}",
      "files": [
        "manifest",
        "source/**/*.*",
        "components/**/*.*"
      ],
      "componentLibraries": [
        {
          "rootDir": "${workspaceFolder}/customLibrary/",
          "outFile": "customLibrary.zip",
          "files": [
            "manifest",
            "components/**/*.*"
          ]
        }
      ]
    }
  ]
}