2.2.1 • Published 2 years ago

lg-cli-tool v2.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago
 _     ____        ____ _     ___    _____ ___   ___  _     
| |   / ___|      / ___| |   |_ _|  |_   _/ _ \ / _ \| |    
| |  | |  _ _____| |   | |    | |_____| || | | | | | | |    
| |__| |_| |_____| |___| |___ | |_____| || |_| | |_| | |___ 
|_____\____|      \____|_____|___|    |_| \___/ \___/|_____|

A Cli to generate node boilerplates

npm    npm    GitHub issues    NPM   

Installation

npm install -g lg-cli-tool

or

yarn global add lg-cli-tool

Usage

Usage: lg-cli-tool [options] [command]

CLI to create node projects with express and typeorm

Options:
  -v, --version   show the current CLI version      
  -h, --help      display help for command

Commands:
  init [options]  Create a node project
  generate [options] <schematic>  generate template files
  help [command]  display help for command

init command

This command will make you some questions about what you want in your nodejs express project.

lg-cli-tool init 

generate command

This command will create a template schematic for you.

Schematic options: 'controller' and 'entities'

controller

Very important

The dir of controller generation always will be: src/modules/< ControllerModuleName >/< ControllerName >, so you dont need to write 'src/modules' every time

It will create a very simple controller template with the name prompted, and instantiate it in the controller index file under src/modules

The folder and the controller's name do not need to have neither 'Controller' nor '.ts', the CLI will do it for you

lg-cli-tool generate controller --dir ControllerModuleName/ControllerName

entities

Using the db credentials in .env file and connection.ts, this command will generate entities like the CLI does in init command

lg-cli-tool generate entities

Coming soon for react and react-native

1.7.0

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.6.3

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.2

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago