Skip to content

Commit aa4af59

Browse files
committed
v0.1.3 adds an option to change the folder
1 parent 38b5388 commit aa4af59

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This addon has the following prerequisites:
2727
To install this addon all you need to do is install `angular-cli-github-pages` via npm:
2828

2929
```sh
30-
npm i angular-cli-ghpages --saveDev
30+
npm install --save-dev angular-cli-ghpages
3131
```
3232

3333
## Usage
@@ -86,6 +86,16 @@ Suppress logging. With silent `true` log messages are suppressed and error messa
8686
> This option should be used if the repository URL or other information passed to git commands is sensitive and should not be logged. By default the silent mode is enabled to avoid sensitive data exposure.
8787
8888

89+
#### <a id="dir">--dir</a>
90+
* optional
91+
* default: `dist`
92+
93+
Directory for all sources, relative to the project-root.
94+
Monst probably no change is required here.
95+
96+
97+
98+
8999
## Extra
90100

91101
For your convenience, the addon will recognize the [environment variable](https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings) `REPO_USER_AND_PASS` and will replace this pattern in the `--repo` string. Please __do NOT disable the silent mode__ if you have credentials in the repository URL!

deploy.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,17 @@ module.exports = {
4141
type: Boolean,
4242
default: true,
4343
description: 'Suppress console logging. This option should be used if the repository URL or other information passed to git commands is sensitive!'
44+
}, {
45+
name: 'dir',
46+
type: String,
47+
default: 'dist',
48+
description: 'Directory for all sources, relative to the project-root. Monst probably no change is required here.'
4449
}],
4550
run: function(options, rawArgs) {
4651

4752
var ui = this.ui;
4853
var root = this.project.root;
49-
var dir = path.join(root, 'dist');
54+
var dir = path.join(root, options.dir);
5055

5156
options = options || {};
5257
if (options['name'] && options['email']) {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-cli-ghpages",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
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",
@@ -36,5 +36,5 @@
3636
"gh-pages": "^0.11.0",
3737
"rsvp": "^3.0.14"
3838
},
39-
"keywords": ["ember-addon", "angular2", "angular-cli", "git", "gh-pages", "ghpages"]
39+
"keywords": ["ember-addon", "angular2", "angular-cli", "git", "github pages", "gh-pages", "ghpages", "angular-cli-ghpages", "angular-cli-github-pages"]
4040
}

0 commit comments

Comments
 (0)