add some beauty

This commit is contained in:
Philipp Kunz 2016-03-14 04:53:35 +01:00
parent 040100b73f
commit eed1a65415
8 changed files with 14 additions and 10 deletions

View File

@ -5,8 +5,10 @@ var paths = require("./npmts.paths");
exports.run = function (configArg) { exports.run = function (configArg) {
var done = plugins.Q.defer(); var done = plugins.Q.defer();
var config = configArg; var config = configArg;
plugins.beautylog.log("now looking at required assets");
if (config.cli == true) { if (config.cli == true) {
plugins.smartfile.copy(plugins.path.join(paths.npmtsAssetsDir, "cli.js"), paths.distDir); plugins.smartfile.copy(plugins.path.join(paths.npmtsAssetsDir, "cli.js"), paths.distDir);
plugins.beautylog.ok("CLI asset has been installed!");
done.resolve(config); done.resolve(config);
} }
else { else {

View File

@ -51,7 +51,7 @@ exports.run = function (configArg) {
moduleStream.add(stream); moduleStream.add(stream);
} }
moduleStream.on("queueDrain", function () { moduleStream.on("queueDrain", function () {
plugins.beautylog.ok("TypeScript is compiled!"); plugins.beautylog.ok("TypeScript has been compiled!");
moduleStream.on("finish", function () { moduleStream.on("finish", function () {
done.resolve(config); done.resolve(config);
}); });

View File

@ -13,7 +13,7 @@ exports.run = function (configArg) {
plugins.gulp.src(absoluteTypingsArray) plugins.gulp.src(absoluteTypingsArray)
.pipe(plugins.g.typings()) .pipe(plugins.g.typings())
.pipe(plugins.g.gFunction(function () { .pipe(plugins.g.gFunction(function () {
plugins.beautylog.ok("typings are installed!"); plugins.beautylog.ok("typings have been installed!");
done.resolve(config); done.resolve(config);
}, "atEnd")); }, "atEnd"));
return done.promise; return done.promise;

6
dist/npmts.jsdoc.js vendored
View File

@ -14,7 +14,7 @@ var genJsdoc = function (configArg) {
destination: paths.docsDir destination: paths.docsDir
} }
}, function () { }, function () {
plugins.beautylog.ok("JsDoc has been generated!"); plugins.beautylog.ok("JsDoc documentation has been generated!");
done.resolve(configArg); done.resolve(configArg);
})); }));
return done.promise; return done.promise;
@ -35,7 +35,7 @@ var publishDocs = function (configArg) {
+ "\"" + gitUrl + "\" " + "\"" + gitUrl + "\" "
+ "master:gh-pages " + "> /dev/null 2>&1"; + "master:gh-pages " + "> /dev/null 2>&1";
if (plugins.smartenv.getEnv().isTravis && configArg.docs && configArg.docs.publish) { if (plugins.smartenv.getEnv().isTravis && configArg.docs && configArg.docs.publish) {
plugins.beautylog.log("now publishing docs 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!');
plugins.shelljs.exit(1); plugins.shelljs.exit(1);
@ -44,7 +44,7 @@ var publishDocs = function (configArg) {
plugins.beautylog.error('Git failed!'); plugins.beautylog.error('Git failed!');
plugins.shelljs.exit(1); plugins.shelljs.exit(1);
} }
plugins.beautylog.ok("JsDoc has been deployed to GitHub!"); plugins.beautylog.ok("JsDoc documentation has been deployed to GitHub!");
done.resolve(configArg); done.resolve(configArg);
} }
else { else {

View File

@ -5,8 +5,10 @@ import paths = require("./npmts.paths");
export var run = function(configArg){ export var run = function(configArg){
let done = plugins.Q.defer(); let done = plugins.Q.defer();
let config = configArg; let config = configArg;
plugins.beautylog.log("now looking at required assets");
if(config.cli == true){ if(config.cli == true){
plugins.smartfile.copy(plugins.path.join(paths.npmtsAssetsDir,"cli.js"),paths.distDir); plugins.smartfile.copy(plugins.path.join(paths.npmtsAssetsDir,"cli.js"),paths.distDir);
plugins.beautylog.ok("CLI asset has been installed!");
done.resolve(config); done.resolve(config);
} else { } else {
done.resolve(config); done.resolve(config);

View File

@ -55,7 +55,7 @@ export var run = function(configArg){
moduleStream.add(stream); moduleStream.add(stream);
} }
moduleStream.on("queueDrain",function(){ moduleStream.on("queueDrain",function(){
plugins.beautylog.ok("TypeScript is compiled!"); plugins.beautylog.ok("TypeScript has been compiled!");
moduleStream.on("finish",function(){ moduleStream.on("finish",function(){
done.resolve(config); done.resolve(config);
}); });

View File

@ -12,7 +12,7 @@ export var run = function(configArg){
plugins.gulp.src(absoluteTypingsArray) plugins.gulp.src(absoluteTypingsArray)
.pipe(plugins.g.typings()) .pipe(plugins.g.typings())
.pipe(plugins.g.gFunction(function(){ .pipe(plugins.g.gFunction(function(){
plugins.beautylog.ok("typings are installed!"); plugins.beautylog.ok("typings have been installed!");
done.resolve(config); done.resolve(config);
},"atEnd")); },"atEnd"));
return done.promise; return done.promise;

View File

@ -14,7 +14,7 @@ var genJsdoc = function(configArg){
destination: paths.docsDir destination: paths.docsDir
} }
}, function(){ }, function(){
plugins.beautylog.ok("JsDoc has been generated!"); plugins.beautylog.ok("JsDoc documentation has been generated!");
done.resolve(configArg) done.resolve(configArg)
})); }));
return done.promise; return done.promise;
@ -41,7 +41,7 @@ var publishDocs = function(configArg){
+ "master:gh-pages " + "> /dev/null 2>&1"; + "master:gh-pages " + "> /dev/null 2>&1";
if(plugins.smartenv.getEnv().isTravis && configArg.docs && configArg.docs.publish){ if(plugins.smartenv.getEnv().isTravis && configArg.docs && configArg.docs.publish){
plugins.beautylog.log("now publishing docs 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!');
plugins.shelljs.exit(1); plugins.shelljs.exit(1);
@ -49,7 +49,7 @@ var publishDocs = function(configArg){
plugins.beautylog.error('Git failed!'); plugins.beautylog.error('Git failed!');
plugins.shelljs.exit(1); plugins.shelljs.exit(1);
} }
plugins.beautylog.ok("JsDoc has been deployed to GitHub!"); plugins.beautylog.ok("JsDoc documentation has been deployed to GitHub!");
done.resolve(configArg); done.resolve(configArg);
} else { } else {
done.resolve(configArg); done.resolve(configArg);