Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/taskr/lib/cli/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = function (tasks, bare) {
bare = bare || false
tasks = tasks || {}

const out = [`\n${fmt.text.dim("Available tasks")}`]
const out = [`\n${fmt.text().dim("Available tasks")}`]

// parse tasks" descriptions, if any
for (const k in tasks) {
Expand Down
16 changes: 8 additions & 8 deletions packages/taskr/lib/fmt.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use strict';

const c = require('clorox');
const k = require('kleur');

module.exports = {
complete: c.blue.bold,
title: c.bold.yellow,
error: c.bold.red,
path: c.underline.cyan,
warn: c.bold.magenta,
text: c.bold.white,
time: c.green
complete: k.blue().bold,
title: k.bold().yellow,
error: k.bold().red,
path: k.underline().cyan,
warn: k.bold().magenta,
text: k.bold().white,
time: k.green
};
6 changes: 3 additions & 3 deletions packages/taskr/lib/utils/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* - use es2015
*/

const clorox = require('clorox');
const kleur = require('kleur');
const homedir = require('os').homedir;
const getTime = require('../fn').getTime;

Expand All @@ -27,7 +27,7 @@ function stamp() {
}

// print the curr time.
process.stdout.write(clorox[this.color](getTime()) + ' ');
process.stdout.write(kleur[this.color](getTime()) + ' ');

// apply arguments to `console` method
console[this.method].apply(console, (this.custom ? [this.custom].concat(args) : args));
Expand All @@ -50,7 +50,7 @@ function error() {
function alert() {
if (process.env.VERBOSE) {
stamp.apply({
custom: clorox.yellow.bold("%s"),
custom: kleur.yellow().bold("%s"),
color: 'yellow',
method: 'log'
}, arguments);
Expand Down
2 changes: 1 addition & 1 deletion packages/taskr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
],
"dependencies": {
"bluebird": "^3.5.0",
"clorox": "^1.0.1",
"glob": "^7.1.2",
"kleur": "^4.1.3",
"mk-dirs": "^1.0.0",
"mri": "^1.1.0",
"tinydate": "^1.0.0"
Expand Down