From 0eb1be5bbb66c54f3b7b7c07eeca8342026e17b5 Mon Sep 17 00:00:00 2001 From: Pittan Date: Sat, 3 Jun 2017 13:36:41 +0900 Subject: [PATCH] docs(@angular/cli): add details about generate command * add an explanation about what --dry-run will output * add an explanation about what --lint-fix will do * add an explanation about how to set default to use lint always * add an explanation about what --verbose will do --- docs/documentation/generate.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/docs/documentation/generate.md b/docs/documentation/generate.md index afdbb4cd717e..0c3199520680 100644 --- a/docs/documentation/generate.md +++ b/docs/documentation/generate.md @@ -15,3 +15,37 @@ - [module](generate/module) - [pipe](generate/pipe) - [service](generate/service) + +## Options +
+ dry-run +

+ --dry-run (aliases: -d) default value: false +

+

+ Run through without making any changes. Will list all files that would have been created when running ng generate. +

+
+ +
+ lint-fix +

+ --lint-fix (aliases: -lf) +

+

+ Use lint to fix files after generation. +

+

+ You can also set default true to use lint every time after generation. To do this, change the value in .angular-cli.json (apps[0].lintFix). +

+
+ +
+ verbose +

+ --verbose (aliases: -v) default value: false +

+

+ Adds more details to output logging. +

+
\ No newline at end of file