You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,14 +49,14 @@ This command has the following prerequisites:
49
49
50
50
- Git 1.9 or higher (execute `git --version` to check your version)
51
51
- Angular project created via [Angular CLI](https://github.com/angular/angular-cli) v18 or greater
52
-
-older Angular projects can still use a v1.x version or use the standalone program. See the documentation at [README_standalone](https://github.com/angular-schule/angular-cli-ghpages/blob/master/docs/README_standalone.md).
52
+
-Older Angular projects can still use a v1.x version or use the standalone program. See the documentation at [README_standalone](https://github.com/angular-schule/angular-cli-ghpages/blob/master/docs/README_standalone.md).
53
53
54
54
## 🚀 Quick Start <aname="quickstart"></a>
55
55
56
56
`angular-cli-ghpages` compiles your app, then pushes the build output to a dedicated branch (default: `gh-pages`) – all with a single command: `ng deploy`. This branch serves as the source for your web host and works out of the box with GitHub Pages and Cloudflare Pages.
57
57
58
58
This quick start assumes that you are starting from scratch.
59
-
If you already have an existing Angular project on GitHub, skip step 1 and 2.
59
+
If you already have an existing Angular project on GitHub, skip steps 1 and 2.
60
60
61
61
1. Install the latest version of the Angular CLI globally
62
62
and create a new Angular project.
@@ -164,7 +164,7 @@ Same as `ng build --base-href=/XXX/`
164
164
165
165
##### A) You don't want to use a custom domain
166
166
167
-
If you don't want to use an own domain, then your later URL of your hosted Angular project should look like this:
167
+
If you don't want to use your own domain, then your later URL of your hosted Angular project should look like this:
In this case you have to adjust the `--base-href` accordingly:
170
170
@@ -228,8 +228,8 @@ Specifies the Angular architect target to use for prerendering instead of buildT
228
228
-**optional**
229
229
- Default: `false` (boolean)
230
230
- Example:
231
-
-`ng deploy` – Angular project is build in production mode before the deployment
232
-
-`ng deploy --no-build` – Angular project is NOT build
231
+
-`ng deploy` – Angular project is built in production mode before the deployment
232
+
-`ng deploy --no-build` – Angular project is NOT built
233
233
234
234
Skip the build process during deployment.
235
235
This can be used when you are sure that you haven't changed anything and want to deploy with the latest artifact.
@@ -250,7 +250,7 @@ you can provide the repository URL in the `repo` option.
250
250
251
251
> **ℹ️ Hint**
252
252
>
253
-
> Set an environment variable with the name `GH_TOKEN` / `PERSONAL_TOKEN` or `GITHUB_TOKEN` and it will be automatically added to the URL, if it uses the HTTPS shema (it must start with `https://github.com`).
253
+
> Set an environment variable with the name `GH_TOKEN` / `PERSONAL_TOKEN` or `GITHUB_TOKEN` and it will be automatically added to the URL, if it uses the HTTPS schema (it must start with `https://github.com`).
254
254
> Tokens are generally not supported for Git over SSH (starts with `git@github.com`).
255
255
256
256
Learn more about ["personal access tokens" here](https://help.github.com/articles/creating-an-access-token-for-command-line-use/) (`GH_TOKEN`) and about the ["installation access token" here](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token) (`GITHUB_TOKEN`). `PERSONAL_TOKEN` is an alias for `GH_TOKEN`.
@@ -346,8 +346,8 @@ A CNAME file will be created enabling you to use a custom domain.
346
346
- Example:
347
347
-`ng deploy --add=true`
348
348
349
-
If is set to `true`, it will only add, and never remove existing files.
350
-
By default, existing files in the target branch are removed before adding the ones.
349
+
If it is set to `true`, it will only add, and never remove existing files.
350
+
By default, existing files in the target branch are removed before adding new ones.
To avoid all these command-line cmd options, you can write down your configuration in the`angular.json` file in the `options`attribute of your deploy project's architect. Just change the kebab-case to lower camel case. Commonly used options in lower camel case (see `src/deploy/schema.json` for the complete list including deprecated options):
375
+
To avoid repeating command-line options, you can configure them in your`angular.json` file under the `options`key of your deploy configuration. Use camelCase instead of kebab-case. Available options:
376
376
377
377
<!-- deprecated options (noSilent) hidden per deprecation policy -->
378
378
- baseHref
@@ -427,9 +427,9 @@ Now you can just run `ng deploy` without all the options in the command line!
`angular-cli-ghpages`wurde für Sie entwickelt von der**Angular.Schule**!
430
+
🇬🇧 `angular-cli-ghpages`is brought to you by the**Angular.Schule** team – two Google Developer Experts (GDE) from Germany. We get you and your team up to speed with Angular through remote trainings in English! Visit [angular.schule](https://angular.schule) to learn more.
431
431
432
-
Wir machen Sie und Ihr Team fit für das Webframework Angular – in [offenen Gruppen](https://angular.schule/schulungen/online) oder [individuellen Inhouse-Schulungen](https://angular.schule/schulungen/online-teams). Von den Buchautoren und Google Developer Experts (GDE) Johannes Hoppe und Ferdinand Malcher.
432
+
🇩🇪 `angular-cli-ghpages` wurde für Sie entwickelt von der **Angular.Schule**! Wir machen Sie und Ihr Team fit für das Webframework Angular – in [offenen Gruppen](https://angular.schule/schulungen/online) oder [individuellen Inhouse-Schulungen](https://angular.schule/schulungen/online-teams). Von den Buchautoren und Google Developer Experts (GDE) Johannes Hoppe und Ferdinand Malcher.
0 commit comments