Compare commits

...

2 Commits

Author SHA1 Message Date
e8238dc907 3.6.5 2016-03-26 17:26:48 +01:00
007e7539c8 removed redundant if 2016-03-26 17:25:45 +01:00
3 changed files with 16 additions and 26 deletions

View File

@ -1,6 +1,6 @@
{
"name": "npmts",
"version": "3.6.4",
"version": "3.6.5",
"description": "write npm modules with TypeScript",
"main": "dist/index.js",
"bin": {

View File

@ -40,7 +40,7 @@ export let publishDocs = function(configArg){
+ "\"" + gitUrl + "\" "
+ "master:gh-pages " + "> /dev/null 2>&1";
if(configArg.docs.publish){
plugins.beautylog.log("now publishing JsDoc documentation to GitHub");
if (!plugins.shelljs.which('git')) {
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!");
done.resolve(configArg);
} else {
console.log("GitHub documentation has not been uploaded.");
done.resolve(configArg);
}
return done.promise;
};

View File

@ -7,17 +7,10 @@ export let publishCoverage = function(configArg){
plugins.beautylog.log("now uploading coverage data to coveralls");
var stream = plugins.gulp.src([plugins.path.join(paths.cwd,"./coverage/lcov.info")])
.pipe(plugins.g.coveralls())
.pipe(plugins.g.gFunction([
function(){
let done = plugins.Q.defer();
.pipe(plugins.g.gFunction(function(){
plugins.beautylog.ok("Coverage data has been uploaded to Coveralls!");
done.resolve();
return done.promise;
}
],"atEnd"));
stream.on("finish",function(){
done.resolve(configArg);
});
},"atEnd"));
return done.promise;
};