From 58a2a03f99b27f79d20be51837c7024dafd8a498 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Tue, 23 Oct 2018 14:44:32 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=B8=BA=20CLI=20=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/content/cli/index.md | 4 +- aio/content/navigation.json | 87 +++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+), 2 deletions(-) diff --git a/aio/content/cli/index.md b/aio/content/cli/index.md index 8a459bbd6a..437bf85bb7 100644 --- a/aio/content/cli/index.md +++ b/aio/content/cli/index.md @@ -1,6 +1,6 @@ -

CLI Command Reference

+# CLI Command Reference -

CLI 命令参考手册

+# CLI 命令参考手册 The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications. You can use the tool directly in a command shell, or indirectly through an interactive UI such as [Angular Console](https://angularconsole.com). diff --git a/aio/content/navigation.json b/aio/content/navigation.json index 8604acfb23..95dc882f4a 100644 --- a/aio/content/navigation.json +++ b/aio/content/navigation.json @@ -498,6 +498,93 @@ "tooltip": "关于环境搭建、构建、测试、部署环境与工具的信息。", "children": [ + { + "title": "CLI 命令参考手册", + "tooltip": "CLI 简介与命令列表", + "children": [ + { + "url": "cli", + "title": "CLI 简介", + "tooltip": "CLI 简介" + }, + { + "url": "cli/add", + "title": "add", + "tooltip": "为项目添加外部库支持。" + }, + { + "url": "cli/build", + "title": "build ( b )", + "tooltip": "把 Angular 应用编译到指定路径下一个名为 dist/ 的输出目录下。必须在工作空间目录下执行它。" + }, + { + "url": "cli/config", + "title": "config", + "tooltip": "接收或设置 Angular CLI 参数" + }, + { + "url": "cli/doc", + "title": "doc ( d )", + "tooltip": "在浏览器中打开 Angular 官方网站(angular.io),并搜索指定的关键字。" + }, + { + "url": "cli/e2e", + "title": "e2e ( e )", + "tooltip": "构建并启动 Angular 应用,然后使用 Protractor 运行端到端测试。" + }, + { + "url": "cli/generate", + "title": "generate ( g )", + "tooltip": "根据原理图(schematic)生成或修改文件。" + }, + { + "url": "cli/help", + "title": "help", + "tooltip": "列出可用的命令及其简写形式。" + }, + { + "url": "cli/lint", + "title": "lint ( l )", + "tooltip": "对指定项目目录下的 Angular 应用代码运行风格检查工具。" + }, + { + "url": "cli/new", + "title": "new ( n )", + "tooltip": "创建新的工作空间,并初始化 Angular 项目。" + }, + { + "url": "cli/run", + "title": "run", + "tooltip": "执行项目中定义的定制化目标。" + }, + { + "url": "cli/serve", + "title": "serve ( s )", + "tooltip": "构建并运行应用,每当文件变化时都重新构建。" + }, + { + "url": "cli/test", + "title": "test ( t )", + "tooltip": "在项目中运行单元测试。" + }, + { + "url": "cli/update", + "title": "update", + "tooltip": "升级你的应用及其依赖,参见 https://update.angular.io/。" + }, + { + "url": "cli/version", + "title": "version ( v )", + "tooltip": "输出 Angular CLI 的版本。" + }, + { + "url": "cli/xi18n", + "title": "xi18n", + "tooltip": "从源码中提取出 i18n 信息。" + } + ] + }, + { "url": "guide/setup", "title": "搭建本地开发环境",