webos-helper
v1.0.3
Published
A small utility that can help you to easily setup, create and manage, and do more on WebOS TV platform
Readme
webos-helper
A helper tool for WebOS project management, simplifying tasks like installing the WebOS CLI, creating projects, pairing TVs, and building IPK files.
Installation
To install webos-helper globally, use the following command:
npm install -g webos-helperCommands
Install WebOS CLI
Checks for the required Node.js and npm versions, and installs the WebOS CLI if they are present.
webos-helper install-cliCreate a New WebOS Project
Creates a new WebOS project with the specified project name.
webos-helper create-project <project-name>Pair TV
Pairs a TV with the specified device name and IP address.
webos-helper pair-tv <device-name> <ip-address>Build WebOS IPK File
Builds an IPK file for the specified WebOS project directory.
webos-helper build-ipk <project-dir>Examples
Install WebOS CLI
webos-helper install-cliCreate a New WebOS Project
webos-helper create-project MyWebOSAppPair TV
webos-helper pair-tv MyTV 192.168.0.101Build WebOS IPK File
webos-helper build-ipk ./MyWebOSAppDevelopment
Prerequisites
Ensure you have Node.js (version > 14.15.1) and npm installed.
Build the Project
To build the TypeScript project, run:
npm run buildRun Locally
You can test the package locally using:
npm start <command>For example:
npm start install-cli
npm start create-project TestProject
npm start pair-tv TestDevice 192.168.0.101
npm start build-ipk ./TestProjectTest
To run tests, use:
npm testLicense
This project is licensed under the MIT License.
