packager: TerminalReporter: remove underline/emoji

Reviewed By: cpojer

Differential Revision: D4357225

fbshipit-source-id: 05d6b4fd9b79616a68e5fa3c4700aeac2f3552a9
This commit is contained in:
Jean Lauliac 2016-12-21 05:52:14 -08:00 committed by Facebook Github Bot
parent efc12cd5bf
commit 04fdf40c61
1 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,6 @@
'use strict'; 'use strict';
const chalk = require('chalk');
const path = require('path'); const path = require('path');
const reporting = require('./reporting'); const reporting = require('./reporting');
const terminal = require('./terminal'); const terminal = require('./terminal');
@ -32,7 +31,6 @@ type BundleProgress = {
const DARK_BLOCK_CHAR = '\u2593'; const DARK_BLOCK_CHAR = '\u2593';
const LIGHT_BLOCK_CHAR = '\u2591'; const LIGHT_BLOCK_CHAR = '\u2591';
const PACKAGE_EMOJI = '\uD83D\uDCE6';
function getProgressBar(ratio: number, length: number) { function getProgressBar(ratio: number, length: number) {
const blockCount = Math.floor(ratio * length); const blockCount = Math.floor(ratio * length);
@ -110,8 +108,8 @@ class TerminalReporter {
): string { ): string {
const localPath = path.relative('.', entryFilePath); const localPath = path.relative('.', entryFilePath);
return [ return [
chalk.underline(`Bundling ${PACKAGE_EMOJI} \`${localPath}\``), `Bundling \`${localPath}\``,
this._getFileTransformMessage(progress, build), ' ' + this._getFileTransformMessage(progress, build),
].join('\n'); ].join('\n');
} }