@teletron/cli
v0.9.1
Published
A CLI interface with Teletron specific functions.
Downloads
3
Readme
@teletron/cli
This is a command-line utility to support the development of Teletron extensions. You can use it to set up a local development environment that simulates an actual www.teletron.me environment in which your extension is loaded.
npx @teletron/cli
Extension
daan@laptop:~/teletron-extension$ npx @teletron/cli extension --help
cli extension <packageLocation>
Start a development environment for a teletron extension.
Positionals:
packageLocation The location to read the extension package.json from. [string] [required] [default: "./package.json"]
Options:
--help Show help [boolean]
--version Show version number [boolean]
-v, --verbose Run with verbose logging [boolean]
-c, --config The location of the config file to use; if this extension uses configuration [string]
-p, --port The port to run the development server on
[number] [default: 3000]
Development
A suggestion is to use nodemon to automatically restart the command when files changes:
npm i --save-dev nodemon @teletron/cli
package.json:
{
"scripts": {
"dev": "nodemon --exec \"npx @teletron/cli extension ./package.json\""
}
}