mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 19:02:29 +03:00
66f1ddcbe9
- run `slimer fix package.json` to add a files array everywhere - manually update slimer-cli to have a files array for bin - manually update slimer to include commands or else this will break!! - update pretty-cli to use our standard /lib/ pattern - this means we only publish what we need to npm, and keeps things cleaner and safer
16 lines
386 B
JavaScript
16 lines
386 B
JavaScript
const chalk = require('chalk');
|
|
const log = (...args) => console.log(...args); // eslint-disable-line no-console
|
|
|
|
module.exports.log = log;
|
|
module.exports.log.error = (...args) => {
|
|
log(chalk.red('error'), ...args);
|
|
};
|
|
|
|
module.exports.log.info = (...args) => {
|
|
log(chalk.cyan('info'), ...args);
|
|
};
|
|
|
|
module.exports.log.ok = (...args) => {
|
|
log(chalk.green('ok'), ...args);
|
|
};
|