kyt-utils
Installation
$ yarn add --dev kyt-utils
// or
$ npm i --save-dev --save-exact kyt-utils
This package is for utilities shared across these kyt
packages:
Ensure that Node 10+ is installed:
require('kyt-utils/checkNodeVersion');
Get a map of paths used to configure kyt
:
const {
serverSrcPath,
serverBuildPath,
clientAssetsFile,
loadableAssetsFile,
} = require('kyt-utils/paths')();
The default export is a logger
- a wrapper around console
:
import logger from 'kyt-utils';
logger.log('message');
logger.task('message');
logger.info('message');
logger.debug('message');
logger.warn('message');
logger.error('message');
logger.start('message');
logger.end('message');