angular-cli-ghpages
Advanced tools
Comparing version
{ | ||
"name": "angular-cli-ghpages", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Angular CLI addon. Publish to any gh-pages branch on GitHub (or any other branch on any other remote).", | ||
@@ -5,0 +5,0 @@ "repository": { |
# angular-cli-ghpages | ||
<hr> | ||
 | ||
<hr> | ||
Angular CLI addon. Publish to any gh-pages branch on GitHub (or any other branch on any other remote). | ||
This is __NOT__ [IgorMinar/angular-cli-github-pages](https://github.com/IgorMinar/angular-cli-github-pages). Brought to you by the [angular2buch.de](https://angular2buch.de/) team! | ||
Made for Travis-CI. Brought to you by the [angular2buch.de](https://angular2buch.de/) team! | ||
## WHY? | ||
[IgorMinar/angular-cli-github-pages](https://github.com/IgorMinar/angular-cli-github-pages) is limited to the `gh-pages` branch of the same repository. | ||
This is __NOT__ [IgorMinar/angular-cli-github-pages](https://github.com/IgorMinar/angular-cli-github-pages). That addon is limited to the `gh-pages` branch of the same repository. | ||
In contrast to this, the [Angular2Buch/angular-cli-ghpages](https://github.com/Angular2Buch/angular-cli-ghpages) addon is able to push to any branch on any repository. It's build on top of [tschaub/gh-pages](https://github.com/tschaub/gh-pages). | ||
__This addon works great on [Travis-CI](https://travis-ci.org/).__ No git credentials must be set up in before. Specific environment variables of Travis-CI are evaluated, too. | ||
__This addon works great on [Travis-CI](https://travis-ci.org/).__ | ||
## Installation & Setup | ||
@@ -96,3 +101,23 @@ | ||
### A hint for angular-cli | ||
Your build can break if `angular-cli` from package.json and the global `ng` command have different versions. | ||
You might want to define a run-script like this: | ||
```js | ||
"scripts": { | ||
"start": "ng server", | ||
"ng": "ng" | ||
} | ||
``` | ||
Now you can avoid a gloabl `ng` like this: | ||
```npm run ng -- ghpages --repo=https://XXX``` | ||
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!__ | ||
## License | ||
Code released under the [MIT license](https://opensource.org/licenses/MIT). |
25891
203.81%6
20%122
25.77%