gulp-gh-pages
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -107,3 +107,3 @@ 'use strict' | ||
srcStream | ||
.pipe(gulp.dest(cacheDir)) | ||
.pipe(gulp.dest(repo._repo.path)) | ||
.on('end', function () { | ||
@@ -110,0 +110,0 @@ deferred.resolve(repo); |
@@ -22,8 +22,7 @@ 'use strict' | ||
var deferred = when.defer(); | ||
var repo = git(dir) | ||
// assume that if there is a .git folder it's the right folder | ||
if (fs.existsSync(repo.dot_git)) { | ||
if (fs.existsSync(path.join(dir, '.git'))) { | ||
var repo = git(dir); | ||
deferred.resolve(new Git(repo).status()); | ||
} | ||
else { | ||
} else { | ||
rimraf.sync(dir); | ||
@@ -30,0 +29,0 @@ git.clone(remoteUrl, dir, function (err, repo) { |
{ | ||
"name": "gulp-gh-pages", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Gulp plugin to publish to Github pages (gh-pages branch).", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -29,2 +29,22 @@ # gulp-gh-pages | ||
Two different signatures are supported. | ||
### deploy(remoteUrl, remote) | ||
#### remoteUrl | ||
Type: `String` | ||
_Required: `true`_ | ||
Your git remote url. Ensure you have write access to the repository. | ||
#### remote | ||
Type: `String` | ||
Default: `"origin"` | ||
Git remote. | ||
--- | ||
### deploy(options) | ||
@@ -31,0 +51,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19209
102
528