Skip to content

Commit f1d447c

Browse files
committed
minor: removes useless hint
1 parent d7e0ed0 commit f1d447c

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

README.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -107,25 +107,7 @@ In example, the following command runs [on our Travis-CI](https://travis-ci.org/
107107
ng build --environment=production
108108
ng ghpages --repo=https://[email protected]/organisation/your-repo.git --name="Displayed Username" [email protected]
109109
```
110-
> You have to treat the GH_TOKEN as secure as a password!
111-
112-
### A hint for angular-cli
113-
114-
Your build can break if `angular-cli` from package.json and the global `ng` command have different versions.
115-
You might want to define a run-script like this:
116-
117-
```js
118-
"scripts": {
119-
"start": "ng server",
120-
"ng": "ng"
121-
}
122-
```
123-
124-
Now you can avoid a gloabl `ng` like this:
125-
126-
```npm run ng -- ghpages --repo=https://XXX```
127-
128-
The special extra option `--` is used to delimit the end of the command. npm will pass all the arguments after the -- directly to your script. __Happy building!__
110+
> You have to treat the GH_TOKEN as secure as a password!
129111
130112

131113

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-cli-ghpages",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"description": "Angular CLI addon. Publish to any gh-pages branch on GitHub (or any other branch on any other remote).",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)