1
0
mirror of https://github.com/angular/angular-cli.git synced 2025-05-22 06:41:45 +08:00

build: remove chalk dependency

This commit is contained in:
Charles Lyding 2018-06-28 10:48:38 -04:00 committed by clydin
parent 28bbd1b2bc
commit 19f2ba1275
2 changed files with 2 additions and 4 deletions

@ -16,9 +16,7 @@
require('../lib/bootstrap-local');
const {bold, gray, red, yellow, white} = require('chalk');
const minimist = require('minimist');
const fs = require('fs');
const path = require('path');
const args = minimist(process.argv.slice(2), {
@ -34,6 +32,7 @@ process.chdir(path.join(__dirname, '..'));
let logger = null;
try {
logger = new (require('@angular-devkit/core').logging.IndentLogger)('root');
const { bold, gray, red, yellow, white } = require('@angular-devkit/core').terminal;
const filter = require('rxjs/operators').filter;
logger
@ -51,7 +50,7 @@ try {
output.write(color(entry.message) + '\n');
});
} catch (e) {
console.error(red(`Reverting to manual console logging.\nReason: ${e.message}.`));
console.error(`Reverting to manual console logging.\nReason: ${e.message}.`);
logger = {
debug: console.log.bind(console),
info: console.log.bind(console),

@ -86,7 +86,6 @@
"ajv": "~6.4.0",
"autoprefixer": "^8.4.1",
"bootstrap": "^4.0.0",
"chalk": "~2.2.2",
"chokidar": "^2.0.3",
"circular-dependency-plugin": "^5.0.2",
"clean-css": "^4.1.11",