A Brighterscript & Kopytko application template.
This codebase only supports Visual Studio Code.
- Install the project's dependencies:
$ npm install-
Install the recommended VSC extensions
-
Create a
.envwith the following in the root of the project:
ROKU_IP={YOUR.ROKU.IP}
ROKU_DEV_USER=rokudev
ROKU_DEV_PASSWORD=rokudev
# build vars
ENABLE_RALE=true
# dev | production | test
ENV=dev
/.vscode- contains the vscode configuration files/manifest- contains the code for each enviroment's manifest/plugins- contains Kopytko and BrighterScript plugins/src- contains the project source code
The app is deployed using the VSC debug launch task. See debugging in VSC.
The VSC debug launch task does the following:
- Triggers the
prevscpackage.json, which transpiles any BrighterScript/srccode - The transpiled (
/src) code is copied to/transpiled-srcand then the Kopytko packager is triggered - The app is deployed via the BrightScript Language extenstion
Any .bs files in the /src directory will be transpiled.
plugins/brighterscript/perform-string-replacements.js- Used to perform string replacements during transpilation
plugins/kopytko/include-rale.js- Includes the RALE TrackerTask.xmlplugins/kopytko/remove-test-code.js- Removes any test code