devrepo-templates

2.1.4 • Public • Published

Download and fill Device Repository Templates CLI

This is a Command-line tool to download and fill The Things Network Device Repository templates.

Documentation

Follow instructions to install this package:

  • Create a folder.
  • Inside of the created folder install this package npm install devrepo-templates
  • Inside the folder you will have all this folders and files, follow the comments:
folder
│ package.json                  #delete this file
│ package-lock.json             #delete this file
├── node_modules
│   ├── ...
│   ├── devrepo-templates
│   │   ├── bin                 #move this folder to main folder
│   │   ├── src                 #move this folder to main folder
│   │   ├── templates           #move this folder to main folder
│   │   ├── package.json        #move this file to main folder
│   │   ├── package-lock.json.  #move this file to main folder
│   ├── ...
  • Your main folder must end with the next structure:
folder
├── bin                 
├── src                 
├── templates           
│ package.json        
│ package-lock.json.  
├── node_modules
  • Once you have this structure run 'create-project' and you can start downloading and filling device repository templates

Screen Shot 2021-08-15 at 19 55 46

  • When you finish with any template CLI will create a folder named device, inside of it will be your file.
folder
├── ...                 
├── device
│   ├── index.yaml
├── ...           

Example

Create a new folder named test6 Run 'create-project' and fill device template

Screen Shot 2021-08-15 at 20 02 26

Download template and fill the infomation: file name, name of the device, description, etc. Fill the Output path as the CLI ask.

Screen Shot 2021-08-15 at 20 04 56

Device file will be created in device folder with the information you fill.

Screen Shot 2021-08-15 at 20 09 17

Now you can use this file in device repository for adding new devices.

Package Sidebar

Install

npm i devrepo-templates

Weekly Downloads

1

Version

2.1.4

License

ISC

Unpacked Size

15.3 kB

Total Files

11

Last publish

Collaborators

  • jaimetrinidad