A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://rokucommunity.github.io/vscode-brightscript-language/Debugging/component-libraries.html below:

Component Libraries

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/**/*.*"
          ]
        }
      ]
    }
  ]
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4