vt-generator

0.1.1 • Public • Published

vt-generator

Broadlink VT application generator

NPM Version Build Status Coverage Status

Installation

  $ sudo npm install -g vt-generator

Quick Start

The quickest way to get started building a VT application is to utilize the executable vtvt(1) to generate an application as shown below:

Create the app:

  $ vtvt ./tem && cd ./tem/Script

Test your app:

  $ node server.js
  $ node main.js

Command Line Options

This generator can also be further configured with the following command line flags.

-h, --help          output usage information
    --version       output the version number
    --git           add .gitignore
-f, --force         force on non-empty directory

Notice

device.config,Script/main.js and Script/hzBuffer.js are created and maintained by VT container. Local modifications of these files won't work in the real device. Please open pull requests or issues when you have any question.

Script/server.js is only a sample for local testing, custimze it as you like.

The app.js defines four functions: onLaunch, onDeviceControl, onUploadData and onSubscribe, which are called by the main.js in response to important events in the lifetime of your app.

License

MIT

Dependencies (3)

Dev Dependencies (5)

Package Sidebar

Install

npm i vt-generator

Weekly Downloads

3

Version

0.1.1

License

MIT

Last publish

Collaborators

  • hzwzw