generator-opent2t
v1.0.3
Published
Yeoman generator for an Open Translators to Things translator
Downloads
2
Readme
generator-opent2t
Yeoman generator for an Open Translators to Things translator. Gets you up and running quickly.
Installation
First, install Yeoman and generator-opent2t using npm (we assume you have pre-installed node.js).
$ npm install -g yo
$ npm install -g generator-opent2t
Then generate your new project:
$ yo opent2t
_-----_
| | .--------------------------.
|--(o)--| | Welcome to the Open |
`---------´ | Translators to Things |
( _´U`_ ) | generator! |
/___A___\ '--------------------------'
| ~ |
__'.___.'__
´ ` |° ´ Y `
? What is the human-readable name of the thing you are writing a translator for (e.g. Contoso Light)? Wink Light Bulb
? What is the node package name you want to use (e.g. translator-contoso-light)? translator-wink-light
? What schema does this translator implement? (Use arrow keys)
> org.OpenT2T.Sample.SuperPopular.Lamp
org.OpenT2T.Sample.SuperPopular.Shade
org.OpenT2T.Sample.SuperPopular.TemperatureSensor
? What onboarding model does this translator implement? (Use arrow keys)
org.OpenT2T.Onboarding.BluetoothLE
org.OpenT2T.Onboarding.Manual
org.OpenT2T.Onboarding.OAuth2
> org.OpenT2T.Onboarding.WinkHub
org.OpenT2T.Onboarding.ZWave
Writing files...
package.json generated. OpenT2T translators use the MIT license.
create dist\js\thingTranslator.js
create dist\js\manifest.xml
create dist\js\package.json
The generator will ask you some questions, and based on your answers create a starter translator under dist/js. Move to your final desired location, and enjoy!
Getting To Know Yeoman
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.
Code of Conduct
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.