@@ -38,33 +38,35 @@ To install the command run the following:
38
38
npm i angular-cli-ghpages --save-dev
39
39
```
40
40
41
+ Note: you can skip the permanent installation, too. The command ` npx ` is also able to install ` angular-cli-ghpages ` on the first usage, if you want.
42
+
41
43
## Usage
42
44
43
- Execute ` npx ngh ` in order to deploy the project with a build from ` dist ` folder.
45
+ Execute ` npx angular-cli-ghpages ` in order to deploy the project with a build from ` dist ` folder.
44
46
__ Note: you have to create the ` dist ` folder in before (e.g. ` ng build --prod ` )__
45
47
46
48
Usage:
47
49
48
50
``` bash
49
51
ng build --prod --base-href " https://USERNAME.github.io/REPOSITORY_NAME/"
50
- npx ngh [OPTIONS]
52
+ npx angular-cli-ghpages [OPTIONS]
51
53
```
52
54
53
55
or
54
56
55
57
``` bash
56
58
ng build --prod --base-href " /REPOSITORY_NAME/"
57
- npx ngh [OPTIONS]
59
+ npx angular-cli-ghpages [OPTIONS]
58
60
```
59
61
60
62
or (` <base href="/"> ` stays untouched)
61
63
62
64
``` bash
63
65
ng build --prod
64
- npx ngh [OPTIONS]
66
+ npx angular-cli-ghpages [OPTIONS]
65
67
```
66
68
67
- If you want to push to ` gh-pages ` on the same repository with your default credentials, then just enter ` npx ngh ` without any options.
69
+ If you want to push to ` gh-pages ` on the same repository with your default credentials, then just enter ` npx angular-cli-ghpages ` without any options.
68
70
69
71
70
72
### Usage with Angular CLI 6 or higher
@@ -74,7 +76,7 @@ Please take a look at the `dist` folder to see whether there is a subfolder with
74
76
If yes, you need to specify the deploy directory manually then when using this tool:
75
77
76
78
``` bash
77
- npx ngh --dir=dist/[PROJECTNAME]
79
+ npx angular-cli-ghpages --dir=dist/[PROJECTNAME]
78
80
```
79
81
80
82
I most cases, the ` [PROJECTNAME] ` can be found in the ` angular.json ` file at ` defaultProject ` .
0 commit comments