1.0.0 • Published 3 years ago

trinhhuongpackagenpm v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

SDK Builder

SDK Builder is a Nodejs source for create ecofly sdk.

Installation

Make sure that you have install nodejs and npm in your enviroment, If not, install nodejs and package manager npm :

$ sudo apt install nodejs npm

Then, Install requirements

$ npm install

Usage

Create user config

$ node createConfig.js
  • Select main file in src/ folder which you need to build

  • Copy config {"t": ..., "s": ..., ..., "u": ...} in console and replace to cfg variable in the top of src/<youchoose.main.js>

  • You can also config checkingHost or ccuHost variable in this file

Finally, Build your sdk with command :

$ gulp --main "main.js_name" --output "sdk_name"
  • main.js_name is name of js file which you choose in src/ folder
  • sdk_name is name of output sdk

SDK with name sdk_name was generated in dist folder

Contact

Trinh Huong - trinhhuong244@gmail.com

License

MIT