-var chalk = require('chalk');
+var { red } = require('kleur');
module.exports = function(err) {
console.log(
- chalk.red(
+ red(
err.fileName +
(
err.loc ?
'error Babel: ' + err.message + '\n' +
err.codeFrame
);
-}
\ No newline at end of file
+}
"browserstack-runner": "^0.9.0",
"chai": "^4.1.2",
"chai-jquery": "^2.1.0",
- "chalk": "^2.4.2",
"clipboard": "^2.0.4",
"corejs-typeahead": "^1.1.1",
"cz-conventional-changelog": "^2.1.0",
"is-empty-object": "^1.1.1",
"jquery": "^3.3.1",
"js-yaml": "^3.12.1",
+ "kleur": "^3.0.2",
"mocha": "^5.0.5",
"mocha-headless-chrome": "^2.0.1",
"motion-ui": "^2.0.2",
-const chalk = require('chalk')
+const { yellow, red } = require('kleur');
const spawn = require('child_process').spawn
const args = process.argv.splice(process.execArgv.length + 2);
-console.log(chalk.yellow('🐶 Checking the commit message...'))
+console.log(yellow('🐶 Checking the commit message...'))
const child = spawn('commitlint', args, { shell: true })
})
child.on('error', function (err) {
- console.log(chalk.red(err))
+ console.log(red(err))
})
child.on('exit', function (code) {
if(code !== 0){
- console.log(chalk.yellow('🐶 ✗ Commit message is invalid.'))
- console.log(chalk.yellow(' See https://git.io/contribute for help'))
+ console.log(yellow('🐶 ✗ Commit message is invalid.'))
+ console.log(yellow(' See https://git.io/contribute for help'))
process.exit(code);
}
})
-const chalk = require('chalk')
+const { yellow, red } = require('kleur');
const spawn = require('child_process').spawn
-console.log(chalk.yellow('🐶 Checking tests before committing...'))
+console.log(yellow('🐶 Checking tests before committing...'))
const child = spawn('npm run test', [], { shell: true })
})
child.on('error', function (err) {
- console.log(chalk.red(err))
+ console.log(red(err))
})
child.on('exit', function (code) {
if(code === 0){
- console.log(chalk.yellow('🐶 ✓ Tests run well, we can commit...'))
+ console.log(yellow('🐶 ✓ Tests run well, we can commit...'))
} else {
- console.log(chalk.yellow('🐶 ✗ Tests are failing, please fix them before committing.'))
+ console.log(yellow('🐶 ✗ Tests are failing, please fix them before committing.'))
process.exit(code);
}
})
-const chalk = require('chalk')
+const { yellow, red } = require('kleur');
const spawn = require('child_process').spawn
-console.log(chalk.yellow('🐶 Checking tests before pushing...'))
+console.log(yellow('🐶 Checking tests before pushing...'))
const child = spawn('npm run test', [], { shell: true })
})
child.on('error', function (err) {
- console.log(chalk.red(err))
+ console.log(red(err))
})
child.on('exit', function (code) {
if(code === 0){
- console.log(chalk.yellow('🐶 ✓ Tests run well, we can push...'))
+ console.log(yellow('🐶 ✓ Tests run well, we can push...'))
} else {
- console.log(chalk.yellow('🐶 ✗ Tests are failing, please fix them before pushing.'))
+ console.log(yellow('🐶 ✗ Tests are failing, please fix them before pushing.'))
process.exit(code);
}
})