add some beauty
This commit is contained in:
parent
040100b73f
commit
eed1a65415
2
dist/npmts.assets.js
vendored
2
dist/npmts.assets.js
vendored
@ -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 {
|
||||||
|
2
dist/npmts.compile.js
vendored
2
dist/npmts.compile.js
vendored
@ -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);
|
||||||
});
|
});
|
||||||
|
2
dist/npmts.install.js
vendored
2
dist/npmts.install.js
vendored
@ -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
6
dist/npmts.jsdoc.js
vendored
@ -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 {
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
});
|
});
|
||||||
|
@ -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;
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user