Skip to content

Commit 8cf51e0

Browse files
committed
hello world
1 parent 56f3883 commit 8cf51e0

File tree

3 files changed

+85
-1
lines changed

3 files changed

+85
-1
lines changed

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,37 @@
11
# angular-cli-ghpages
2-
Angular CLI addon. Publish to any gh-pages branch on GitHub (or any other branch on any other remote)
2+
3+
Angular CLI addon. Publish to any gh-pages branch on GitHub (or any other branch on any other remote).
4+
This is __NOT__ [angular-cli-github-pages](https://github.com/IgorMinar/angular-cli-github-pages).
5+
6+
## WHY?
7+
8+
angular-cli-github-pages is fixed to the `gh-pages` branch of the same repository.
9+
We don't like this. So this addon pushes to any branch on any repository. It also does not require SSH to be set up. This works perfectly for Travis-CI.
10+
11+
## Installation & Setup
12+
13+
This addon has the following prerequisites:
14+
15+
- Node.js 4.x
16+
- Angular project created via [angular-cli](https://github.com/angular/angular-cli)
17+
18+
To install this addon all you need to do is install angular-cli-github-pages via npm:
19+
20+
```sh
21+
npm install --save-dev angular-cli-ghpages
22+
```
23+
24+
## Usage
25+
26+
Once that's done, you can checkout the branch you want to create the gh-page
27+
from (likely master) and run the command to build and commit it.
28+
29+
Then run `ng ghpages` in order to deploy it.
30+
31+
```sh
32+
ng build
33+
ng ghpages XXX
34+
```
35+
36+
## License
37+
Code released under the [MIT license](https://opensource.org/licenses/MIT).

index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
name: 'angular-cli-ghpages',
3+
4+
includedCommands: function() {
5+
return {
6+
'gh-pages': require('./lib/commands/deploy'),
7+
'ghpages': require('./lib/commands/deploy'),
8+
};
9+
}
10+
};

package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "angular-cli-ghpages",
3+
"version": "0.1.0",
4+
"description": "Angular CLI addon. Publish to any `gh-pages` branch on GitHub (or any other branch on any other remote).",
5+
"repository": {
6+
"type": "git",
7+
"url": "git+https://github.com/Angular2Buch/angular-cli-ghpages.git"
8+
},
9+
"bugs": {
10+
"url": "https://github.com/Angular2Buch/angular-cli-ghpages/issues"
11+
},
12+
"author": {
13+
"name": "Angular2Buch Team",
14+
"email": "[email protected]"
15+
},
16+
"maintainers": [
17+
{
18+
"name": "johanneshoppe",
19+
"email": "[email protected]"
20+
},
21+
{
22+
"name": "fmalcher",
23+
"email": "[email protected]"
24+
},
25+
{
26+
"name": "d-koppenhagen",
27+
"email": "[email protected]"
28+
},
29+
{
30+
"name": "gregonnet",
31+
"email": "[email protected]"
32+
}
33+
],
34+
"license": "MIT",
35+
"dependencies": {
36+
"gh-pages": "^0.3.1"
37+
},
38+
"keywords": ["ember-addon", "angular2", "angular-cli", "git", "gh-pages", "ghpages"]
39+
}

0 commit comments

Comments
 (0)