removed redundant if
This commit is contained in:
parent
e3c2c56548
commit
007e7539c8
@ -40,7 +40,7 @@ export let publishDocs = function(configArg){
|
|||||||
+ "\"" + gitUrl + "\" "
|
+ "\"" + gitUrl + "\" "
|
||||||
+ "master:gh-pages " + "> /dev/null 2>&1";
|
+ "master:gh-pages " + "> /dev/null 2>&1";
|
||||||
|
|
||||||
if(configArg.docs.publish){
|
|
||||||
plugins.beautylog.log("now publishing JsDoc documentation to GitHub");
|
plugins.beautylog.log("now publishing JsDoc documentation to GitHub");
|
||||||
if (!plugins.shelljs.which('git')) {
|
if (!plugins.shelljs.which('git')) {
|
||||||
plugins.beautylog.error('Git is not installed!');
|
plugins.beautylog.error('Git is not installed!');
|
||||||
@ -51,10 +51,7 @@ export let publishDocs = function(configArg){
|
|||||||
}
|
}
|
||||||
plugins.beautylog.ok("JsDoc documentation has been deployed to GitHub!");
|
plugins.beautylog.ok("JsDoc documentation has been deployed to GitHub!");
|
||||||
done.resolve(configArg);
|
done.resolve(configArg);
|
||||||
} else {
|
|
||||||
console.log("GitHub documentation has not been uploaded.");
|
|
||||||
done.resolve(configArg);
|
|
||||||
}
|
|
||||||
return done.promise;
|
return done.promise;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -7,17 +7,10 @@ export let publishCoverage = function(configArg){
|
|||||||
plugins.beautylog.log("now uploading coverage data to coveralls");
|
plugins.beautylog.log("now uploading coverage data to coveralls");
|
||||||
var stream = plugins.gulp.src([plugins.path.join(paths.cwd,"./coverage/lcov.info")])
|
var stream = plugins.gulp.src([plugins.path.join(paths.cwd,"./coverage/lcov.info")])
|
||||||
.pipe(plugins.g.coveralls())
|
.pipe(plugins.g.coveralls())
|
||||||
.pipe(plugins.g.gFunction([
|
.pipe(plugins.g.gFunction(function(){
|
||||||
function(){
|
|
||||||
let done = plugins.Q.defer();
|
|
||||||
plugins.beautylog.ok("Coverage data has been uploaded to Coveralls!");
|
plugins.beautylog.ok("Coverage data has been uploaded to Coveralls!");
|
||||||
done.resolve();
|
|
||||||
return done.promise;
|
|
||||||
}
|
|
||||||
],"atEnd"));
|
|
||||||
stream.on("finish",function(){
|
|
||||||
done.resolve(configArg);
|
done.resolve(configArg);
|
||||||
});
|
},"atEnd"));
|
||||||
return done.promise;
|
return done.promise;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user