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
Deploy your Angular app to GitHub pages directly from the Angular CLI! 🚀
15
39
16
40
17
41
## 📖 Changelog <aname="changelog"></a>
@@ -23,6 +47,7 @@ This is still possible.
23
47
See the documentation at [README_standalone](docs/README_standalone).
24
48
25
49
50
+
26
51
## ⚠️ Prerequisites <aname="prerequisites"></a>
27
52
28
53
This command has the following prerequisites:
@@ -31,6 +56,7 @@ This command has the following prerequisites:
31
56
- Angular project created via [Angular CLI](https://github.com/angular/angular-cli) v8.3.0-next.0 or greater (execute `ng update @angular/cli @angular/core --next=true` to upgrade your project if necessary)
In silent mode log messages are suppressed and error messages are sanitized.
239
+
240
+
The `--no-silent` option enables extended console logging.
241
+
Keep this untouched if the repository URL or other information passed to git commands is sensitive!
242
+
243
+
> WARNING: This option should kept like it is if the repository URL or other information passed to git commands is sensitive and should not be logged (== you have a public build server and you are using the `GH_TOKEN` feature).
244
+
> By default the silent mode is enabled to avoid sensitive data exposure.
245
+
246
+
247
+
#### --no-dotfiles <aname="no-dotfiles"></a>
248
+
*__optional__
249
+
* Default: dotfiles `true` (boolean)
250
+
* Example:
251
+
*`ng deploy` -- Dotfiles are included by default.
252
+
*`ng deploy --no-dotfiles` -- Dotfiles are ignored.
253
+
254
+
The command includes dotfiles by default (e.g `.htaccess` will be committed)
255
+
With `--no-dotfiles` files starting with `.` are ignored.
256
+
257
+
**Hint:**
258
+
This is super usefull if you want to publish a `.nojekyll` file.
259
+
Create such a file in the root of your pages repo to bypass the Jekyll static site generator on Github Pages.
260
+
Static content is still delivered – even without Jekyll.
261
+
This should only be necessary if your site uses files or directories that start with **_underscores** since Jekyll considers these to be special resources and does not copy them to the final site.
262
+
→ Or just don't use underscores!
263
+
264
+
265
+
#### --cname <aname="cname"></a>
266
+
*__optional__
267
+
* Default: `undefined` (string) – No CNAME file is generated
268
+
* Example:
269
+
*`ng deploy --cname=example.com`
270
+
271
+
A CNAME file will be created enabling you to use a custom domain.
272
+
[More information on Github Pages using a custom domain](https://help.github.com/articles/using-a-custom-domain-with-github-pages/).
273
+
274
+
275
+
#### --dry-run <aname="dry-run"></a>
276
+
*__optional__
277
+
* Default: `false` (boolean)
278
+
* Example:
279
+
*`ng deploy` -- Normal behaviour: Changes are applied.
280
+
*`ng deploy --dry-run` -- No changes are applied at all.
281
+
282
+
Run through without making any changes.
283
+
This can be very usefull, because it outputs what would happend without doing anything.
284
+
104
285
105
286
106
287
## 🏁 Next milestones <aname="milestones"></a>
@@ -110,16 +291,19 @@ But we are looking forward to the following features:
110
291
111
292
* an interactive command-line prompt that guides you through the available options
112
293
* a configuration file (`angular-cli-ghpages.json`) to avoid all these command-line cmd options
294
+
* your feature that's not on the list yet?
113
295
114
296
We look forward to any help. PRs are welcome! 😃
115
297
298
+
299
+
116
300
## ⁉️ FAQ <aname="faq"></a>
117
301
118
302
Before posting any issue, [please read the FAQ first](https://github.com/angular-schule/angular-cli-ghpages/wiki/FAQ).
119
303
See the contributors documentation at [README_contributors](docs/README_contributors) if you want to debug and test this project.
120
304
121
305
122
-
## License
306
+
## License <aname="license"></a>
123
307
Code released under the [MIT license](LICENSE).
124
308
125
309
<hr>
@@ -128,5 +312,8 @@ Code released under the [MIT license](LICENSE).
0 commit comments