-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: Nest CLI generate commands (#166)
* add: nestcli generate commands * update: name not to make poeple confused --------- Co-authored-by: elvis kahoro <elvis@warp.dev>
- Loading branch information
Showing
5 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Generate an app using Nest.js | ||
command: "nest g co {{appName}}" | ||
tags: | ||
- nestcli | ||
description: Generate a app with the given name. | ||
arguments: | ||
- name: appName | ||
description: the name for the app to be generated | ||
default_value: foo | ||
source_url: "https://docs.nestjs.com/cli/overview" | ||
author: nagauta | ||
author_url: "https://github.com/nagauta" | ||
shells: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Generate a class using Nest.js | ||
command: "nest g cl {{className}}" | ||
tags: | ||
- nestcli | ||
description: Generate a class with the given name. | ||
arguments: | ||
- name: className | ||
description: the name for the class to be generated | ||
default_value: foo | ||
source_url: "https://docs.nestjs.com/cli/overview" | ||
author: nagauta | ||
author_url: "https://github.com/nagauta" | ||
shells: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Generate a controller using Nest.js | ||
command: "nest g co {{controllerName}}" | ||
tags: | ||
- nestcli | ||
description: Generate a controller with the given name. | ||
arguments: | ||
- name: controllerName | ||
description: the name for the controller to be generated | ||
default_value: foo | ||
source_url: "https://docs.nestjs.com/cli/overview" | ||
author: nagauta | ||
author_url: "https://github.com/nagauta" | ||
shells: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Generate a interface using Nest.js | ||
command: "nest g itf {{interfaceName}}" | ||
tags: | ||
- nestcli | ||
description: Generate a interface with the given name. | ||
arguments: | ||
- name: interfaceName | ||
description: the name for the interface to be generated | ||
default_value: foo | ||
source_url: "https://docs.nestjs.com/cli/overview" | ||
author: nagauta | ||
author_url: "https://github.com/nagauta" | ||
shells: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Generate a service using Nest.js | ||
command: "nest g s {{serviceName}}" | ||
tags: | ||
- nestcli | ||
description: Generate a service with the given name. | ||
arguments: | ||
- name: serviceName | ||
description: the name for the service to be generated | ||
default_value: foo | ||
source_url: "https://docs.nestjs.com/cli/overview" | ||
author: nagauta | ||
author_url: "https://github.com/nagauta" | ||
shells: [] |