7
7
8
8
![ Screenshot] ( docs/angular-cli-ghpages-deploy.gif )
9
9
10
- ** Table of contents:**
10
+ ** Table of contents:**
11
11
12
12
1 . [ 📖 Changelog] ( #changelog )
13
13
2 . [ ⚠️ Prerequisites] ( #prerequisites )
@@ -67,18 +67,18 @@ If you already have an existing Angular project on GitHub, skip step 1 and 2.
67
67
cd your-angular-project
68
68
```
69
69
70
- 2 . By default the Angular CLI initializes a Git repository for you.
70
+ 2 . By default the Angular CLI initializes a Git repository for you.
71
71
To add a new remote for GitHub, use the ` git remote add ` command:
72
72
73
73
``` sh
74
74
git remote add origin https://github.com/< username> /< repositoryname> .git
75
75
```
76
76
77
- Hints:
77
+ Hints:
78
78
* Create a new empty GitHub repository first.
79
- * Replace ` <username> ` and ` <repositoryname> ` with your username from GitHub and the name of your new repository.
80
- * Please enter the URL ` https://github.com/<username>/<repositoryname>.git ` into your browser – you should see your existing repository on GitHub.
81
- * Please double-check that you have the necessary rights to make changes to the given project!
79
+ * Replace ` <username> ` and ` <repositoryname> ` with your username from GitHub and the name of your new repository.
80
+ * Please enter the URL ` https://github.com/<username>/<repositoryname>.git ` into your browser – you should see your existing repository on GitHub.
81
+ * Please double-check that you have the necessary rights to make changes to the given project!
82
82
83
83
3 . Add ` angular-cli-ghpages ` to your project.
84
84
@@ -99,7 +99,7 @@ If you already have an existing Angular project on GitHub, skip step 1 and 2.
99
99
ng run your-angular-project:deploy
100
100
```
101
101
102
- 5 . Your project should be available at ` https://<username>.github.io/<repositoryname> ` .
102
+ 5 . Your project should be available at ` https://<username>.github.io/<repositoryname> ` .
103
103
Learn more about GitHub pages on the [ official website] ( https://pages.github.com/ ) .
104
104
105
105
@@ -195,7 +195,7 @@ Same as `ng build --configuration=XXX`.
195
195
* Default: ` Auto-generated commit ` (string)
196
196
* Example: ` ng deploy --message="What could possibly go wrong?" `
197
197
198
- The commit message __ must be wrapped in quotes__ if there are any spaces in the text.
198
+ The commit message __ must be wrapped in quotes__ if there are any spaces in the text.
199
199
Some handy additional text is always added,
200
200
if the environment variable ` TRAVIS ` exists (for Travis CI) or
201
201
if the environment variable ` CIRCLECI ` exists (for Circle CI).
@@ -205,7 +205,7 @@ if the environment variable `CIRCLECI` exists (for Circle CI).
205
205
* __ optional__
206
206
* Default: ` gh-pages ` (string)
207
207
* Example: ` ng deploy --branch=master `
208
-
208
+
209
209
The name of the branch you'll be pushing to.
210
210
The default uses GitHub's ` gh-pages ` branch,
211
211
but this can be configured to push to any branch on any remote.
@@ -265,7 +265,7 @@ This should only be necessary if your site uses files or directories that start
265
265
* ` ng deploy --cname=example.com `
266
266
267
267
A CNAME file will be created enabling you to use a custom domain.
268
- [ More information on GitHub Pages using a custom domain] ( https://help.github.com/articles/using-a-custom-domain-with-github-pages/ ) .
268
+ [ More information on GitHub Pages using a custom domain] ( https://help.github.com/articles/using-a-custom-domain-with-github-pages/ ) .
269
269
270
270
271
271
#### --dry-run <a name =" dry-run " ></a >
@@ -334,11 +334,11 @@ Code released under the [MIT license](LICENSE).
334
334
335
335
<hr >
336
336
337
- <img src =" https://assets.angular.schule/logo-angular-schule.png " height =" 60 " >
337
+ <img src =" https://assets.angular.schule/logo-angular-schule.png " height =" 60 " >
338
338
339
339
### © ; 2019 https://angular.schule
340
340
341
- This project is made on top of [ tschaub/gh-pages] ( https://github.com/tschaub/gh-pages ) .
341
+ This project is made on top of [ tschaub/gh-pages] ( https://github.com/tschaub/gh-pages ) .
342
342
Thank you very much for this great foundation!
343
343
344
344
[ npm-url ] : https://www.npmjs.com/package/angular-cli-ghpages
0 commit comments