-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: add deploy command doc * docs: fix json example * docs: add link to cli builder doc * docs: remove link * docs: restore link
- Loading branch information
1 parent
1a833ee
commit 35313dc
Showing
2 changed files
with
21 additions
and
8 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 |
---|---|---|
@@ -1,9 +1,22 @@ | ||
The `ng deploy` command is a shortcut for: | ||
The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file. | ||
When a project name is not supplied, executes the `deploy` builder for the default project. | ||
|
||
``` | ||
ng run [PROJECT_NAME]:deploy | ||
``` | ||
To use the `ng deploy` command, use `ng add` to add a package that implements deployment capabilities to your favorite platform. | ||
Adding the package automatically updates your workspace configuration, adding a deployment | ||
[CLI builder](guide/cli-builder). | ||
For example: | ||
|
||
It takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file. | ||
|
||
When a project name is not supplied, the CLI will execute the `deploy` builder for the default project. | ||
```json | ||
"projects": { | ||
"my-project": { | ||
... | ||
"architect": { | ||
... | ||
"deploy": { | ||
"builder": "@angular/fire:deploy", | ||
"options": {} | ||
} | ||
} | ||
} | ||
} | ||
``` |
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