shenanigans-manager
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -0,1 +1,2 @@ | ||
import "colors"; | ||
import { IExecuteBeginInfo, IExecuteEndInfo, IExecuteOutInfo, ILogger, IOnSetCwdInfo } from "../logger"; | ||
@@ -2,0 +3,0 @@ /** |
"use strict"; | ||
require("colors"); | ||
/** | ||
@@ -12,3 +13,3 @@ * Logs on important events. | ||
onExecuteBegin(info) { | ||
console.log(`Executing command: ${info.command}`); | ||
console.log("Executing command: ".grey, info.command); | ||
} | ||
@@ -21,3 +22,6 @@ /** | ||
onExecuteEnd(info) { | ||
console.log(`Done executing with code ${info.code}: ${info.command}`); | ||
const codeString = info.code === 0 | ||
? "0".green | ||
: info.code.toString().red; | ||
console.log("Done executing with code".grey, codeString, info.command); | ||
} | ||
@@ -30,3 +34,3 @@ /** | ||
onExecuteError(info) { | ||
console.log(`>${this.trim(info.data, " Err: ")}`); | ||
console.log(`>${this.trim(info.data, " Err: ")}`.red); | ||
} | ||
@@ -39,3 +43,3 @@ /** | ||
onSetCwd(info) { | ||
console.log(`Now in ${info.cwd}`); | ||
console.log(`Now in ${info.cwd}`.grey.italic); | ||
} | ||
@@ -42,0 +46,0 @@ /** |
{ | ||
"name": "shenanigans-manager", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Manages large-scale operations on FullScreenShenanigans project.", | ||
@@ -26,5 +26,7 @@ "bin": { | ||
"dependencies": { | ||
"colors": "^1.1.2", | ||
"moment": "^2.17.1" | ||
}, | ||
"devDependencies": { | ||
"@types/colors": "^1.1.1", | ||
"@types/node": "^7.0.4", | ||
@@ -31,0 +33,0 @@ "del": "^2.2.2", |
@@ -0,1 +1,3 @@ | ||
import "colors"; | ||
import { | ||
@@ -17,3 +19,3 @@ IExecuteBeginInfo, IExecuteEndInfo, IExecuteOutInfo, | ||
public onExecuteBegin(info: IExecuteBeginInfo): void { | ||
console.log(`Executing command: ${info.command}`); | ||
console.log("Executing command: ".grey, info.command); | ||
} | ||
@@ -27,3 +29,7 @@ | ||
public onExecuteEnd(info: IExecuteEndInfo): void { | ||
console.log(`Done executing with code ${info.code}: ${info.command}`); | ||
const codeString: string = info.code === 0 | ||
? "0".green | ||
: info.code.toString().red; | ||
console.log("Done executing with code".grey, codeString, info.command); | ||
} | ||
@@ -37,3 +43,3 @@ | ||
public onExecuteError(info: IExecuteOutInfo): void { | ||
console.log(`>${this.trim(info.data, " Err: ")}`); | ||
console.log(`>${this.trim(info.data, " Err: ")}`.red); | ||
} | ||
@@ -47,3 +53,3 @@ | ||
public onSetCwd(info: IOnSetCwdInfo): void { | ||
console.log(`Now in ${info.cwd}`); | ||
console.log(`Now in ${info.cwd}`.grey.italic); | ||
} | ||
@@ -50,0 +56,0 @@ |
@@ -51,4 +51,2 @@ /** | ||
"WorldSeedr", | ||
// Utilities | ||
"gulp-shenanigans", | ||
// Games | ||
@@ -55,0 +53,0 @@ "FullScreenPokemon" |
86319
2675
2
10
+ Addedcolors@^1.1.2
+ Addedcolors@1.4.0(transitive)