diff --git a/tools/README.md b/tools/README.md new file mode 100644 index 00000000..1926a832 --- /dev/null +++ b/tools/README.md @@ -0,0 +1,3 @@ +# Tools + +Various scripts for various purposes. Most of them are not called directly, but from an npm shortcut `npm run COMMAND` diff --git a/tools/download-stats.js b/tools/download-stats.js index f82be043..e8dcd03e 100644 --- a/tools/download-stats.js +++ b/tools/download-stats.js @@ -1,3 +1,7 @@ +// Description: Download stats from Roku (through email) and save them to a local folder. +// This script is meant to be run daily from Github Actions. +// It will download the stats from the previous day and update repo wiki. + const fs = require('fs'); const path = require('path'); const Imap = require('imap'); diff --git a/tools/get-env-vars.js b/tools/get-env-vars.js index fbcd8cf1..f283b5f3 100644 --- a/tools/get-env-vars.js +++ b/tools/get-env-vars.js @@ -1,3 +1,5 @@ +// Description: an utility script to read env vars from OS or .env files + const dotenv = require('dotenv'); const fs = require('fs'); const path = require('path'); diff --git a/tools/screenshot.js b/tools/screenshot.js index ab3fb4ec..3cc39ff7 100644 --- a/tools/screenshot.js +++ b/tools/screenshot.js @@ -1,4 +1,5 @@ -// Description: Take a screenshot of the Roku device +// Description: Take a screenshot of the Roku device. +// Note that it can only take a screenshot of the dev channel. Production channels are not supported. const { ArgumentParser } = require('argparse') const rokuDeploy = require('roku-deploy');