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
Downloads
3
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-helper
Commands
Install WebOS CLI
Checks for the required Node.js and npm versions, and installs the WebOS CLI if they are present.
webos-helper install-cli
Create 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-cli
Create a New WebOS Project
webos-helper create-project MyWebOSApp
Pair TV
webos-helper pair-tv MyTV 192.168.0.101
Build WebOS IPK File
webos-helper build-ipk ./MyWebOSApp
Development
Prerequisites
Ensure you have Node.js (version > 14.15.1) and npm installed.
Build the Project
To build the TypeScript project, run:
npm run build
Run 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 ./TestProject
Test
To run tests, use:
npm test
License
This project is licensed under the MIT License.