Skip to content

Commit 1c39f54

Browse files
jbogarthydehansl
authored andcommitted
docs: edit run description
1 parent b07fbee commit 1c39f54

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
Architect is the tool that the CLI uses to perform complex tasks such as compilation, according to provided configurations.
2-
The CLI commands run Architect targets such as `build`, `serve`, `test` and `lint`.
3-
Each named target has a default configuration, specified by an "options" object, and an optional set of named alternate configurations in the "configurations" object.
4-
For example, the "build" target for a newly generated app has a predefined alternate configuration named "production".
2+
The CLI commands run Architect targets such as `build`, `serve`, `test` and `lint`.
3+
Each named target has a default configuration, specified by an "options" object,
4+
and an optional set of named alternate configurations in the "configurations" object.
55

6-
You can define new targets and their configuration options in the "architect" section of the `angular.json` file.
7-
If you do so, you can run them from the command line using the `ng run` command.
6+
For example, the "server" target for a newly generated app has a predefined
7+
alternate configuration named "production".
8+
9+
You can define new targets and their configuration options in the "architect" section
10+
of the `angular.json` file.
11+
If you do so, you can run them from the command line using the `ng run` command.
12+
Execute the command using the following format.
13+
14+
```
15+
ng run project:target[.configuration]
16+
```

packages/angular/cli/commands/run.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://json-schema.org/schema",
33
"$id": "ng-cli://commands/run.json",
4-
"description": "Runs an architect target with a custom builder configuration defined in your project.",
4+
"description": "Runs an architect target with an optional custom builder configuration defined in your project.",
55
"$longDescription": "./run-long.md",
66

77
"$aliases": [],
@@ -15,7 +15,7 @@
1515
"properties": {
1616
"target": {
1717
"type": "string",
18-
"description": "The target to run.",
18+
"description": "The Architect target to run.",
1919
"$default": {
2020
"$source": "argv",
2121
"index": 0

0 commit comments

Comments
 (0)