2.1.4 • Published 3 years ago

devrepo-templates v2.1.4

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

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
  • 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

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

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

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

2.1.4

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago