From 9d5932a01ac3dedd4f0aaf49b39b4b49bd8375d4 Mon Sep 17 00:00:00 2001 From: thomrick Date: Sat, 21 Apr 2018 11:30:55 +0200 Subject: [PATCH 1/4] docs(cli) : update cli information --- .../pages/cli/usages/usages.component.html | 37 +++++++++++++------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/src/app/homepage/pages/cli/usages/usages.component.html b/src/app/homepage/pages/cli/usages/usages.component.html index 1596d3b788..e6278f8d63 100644 --- a/src/app/homepage/pages/cli/usages/usages.component.html +++ b/src/app/homepage/pages/cli/usages/usages.component.html @@ -15,7 +15,7 @@

Options

--dry-run: allows to simulate the command execution in order to verify how it will affect your working directory -

new

+

new (alias n)

The new command generates a Nest project based on the typescript-starter as well as install the required packages. @@ -54,7 +54,14 @@

new

'' -

generate

+

+ Example usage: +

+

+$ nest new my-awesome-app
+OR 
+$ nest n my-awesome-app
+

generate (alias g)

The generate command generates a Nest architecture component. @@ -87,20 +94,26 @@

generate

A list of available architecture components:

Example usage:


-$ nest generate service users
+$ nest generate service users +OR +$ nest g s users

info

The @@ -126,4 +139,4 @@

info

common version : 5.0.0 core version : 5.0.0 - \ No newline at end of file + From 482bdfc806807fd29b588a97ea6f11420e636671 Mon Sep 17 00:00:00 2001 From: thomrick Date: Sat, 21 Apr 2018 11:42:24 +0200 Subject: [PATCH 2/4] docs(cli) : add command aliases --- src/app/homepage/pages/cli/usages/usages.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/homepage/pages/cli/usages/usages.component.html b/src/app/homepage/pages/cli/usages/usages.component.html index e6278f8d63..0e15457482 100644 --- a/src/app/homepage/pages/cli/usages/usages.component.html +++ b/src/app/homepage/pages/cli/usages/usages.component.html @@ -114,14 +114,14 @@

generate (alias g)

$ nest generate service users OR $ nest g s users -

info

+

info alias i

The info command will display your project information.


 $ nest info
-  _   _             _      ___  _____  _____  _     _____
+ _   _             _      ___  _____  _____  _     _____
 | \ | |           | |    |_  |/  ___|/  __ \| |   |_   _|
 |  \| |  ___  ___ | |_     | |\ `--. | /  \/| |     | |
 | . ` | / _ \/ __|| __|    | | `--. \| |    | |     | |

From 242b026b77aefba1c5931da84310060ebfdce1e8 Mon Sep 17 00:00:00 2001
From: thomrick 
Date: Sat, 21 Apr 2018 11:43:15 +0200
Subject: [PATCH 3/4] docs(cli) : uniformize command aliases

---
 src/app/homepage/pages/cli/usages/usages.component.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/homepage/pages/cli/usages/usages.component.html b/src/app/homepage/pages/cli/usages/usages.component.html
index 0e15457482..af76557e17 100644
--- a/src/app/homepage/pages/cli/usages/usages.component.html
+++ b/src/app/homepage/pages/cli/usages/usages.component.html
@@ -114,7 +114,7 @@ 

generate (alias g)

$ nest generate service users
OR $ nest g s users
-

info alias i

+

info (alias i)

The info command will display your project information. From 91bf4f38117fc15307484c1cd76763264c27b243 Mon Sep 17 00:00:00 2001 From: thomrick Date: Mon, 23 Apr 2018 21:51:43 +0200 Subject: [PATCH 4/4] feature(cli) : add provider in element list --- src/app/homepage/pages/cli/usages/usages.component.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/homepage/pages/cli/usages/usages.component.html b/src/app/homepage/pages/cli/usages/usages.component.html index af76557e17..41c6ebc016 100644 --- a/src/app/homepage/pages/cli/usages/usages.component.html +++ b/src/app/homepage/pages/cli/usages/usages.component.html @@ -104,7 +104,8 @@

generate (alias g)

  • interceptor (alias i)
  • middleware (alias mi)
  • module (alias mo)
  • -
  • pipe (alias p)
  • +
  • pipe (alias pi)
  • +
  • provider (alias pr)
  • service (alias s)