Verified Commit e4e25769 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3266274 by Spokje, nod_, xjm, lauriii: Remove chalk as a dependency

(cherry picked from commit 445ea0fe)
parent f8cbc71d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -64,7 +64,6 @@
    "@popperjs/core": "2.11.x",
    "babel-plugin-add-header-comment": "^1.0.3",
    "backbone": "1.4.x",
    "chalk": "^4.1.0",
    "chokidar": "^3.3.1",
    "chromedriver": "^98.0.1",
    "ckeditor5": "34.1.x",
+2 −3
Original line number Diff line number Diff line
const chalk = require('chalk');
const fs = require('fs');
const log = require('./log');
const compile = require('./compile');
@@ -10,12 +9,12 @@ module.exports = (filePath) => {
    const fileName = filePath.slice(0, -9);
    fs.readFile(`${fileName}.css`, function read(err, data) {
      if (err) {
        log(chalk.red(err));
        log(err);
        process.exitCode = 1;
        return;
      }
      if (code !== data.toString()) {
        log(chalk.red(`'${filePath}' is not updated.`));
        log(`'${filePath}' is not updated.`);
        process.exitCode = 1;
      }
    });
+1 −2
Original line number Diff line number Diff line
const chalk = require('chalk');
const log = require('./log');
const fs = require('fs');
const postcss = require('postcss');
@@ -81,7 +80,7 @@ module.exports = (filePath, callback) => {
      callback(result.css);
    })
    .catch(error => {
      log(chalk.red(error));
      log(error);
      process.exitCode = 1;
    });
  });
+2 −3
Original line number Diff line number Diff line
const chalk = require('chalk');
const fs = require('fs');
const log = require('./log');
const compile = require('./compile');
@@ -10,12 +9,12 @@ module.exports = (filePath) => {
    const fileName = filePath.slice(0, -7);
    fs.readFile(`${fileName}.js`, function read(err, data) {
      if (err) {
        log(chalk.red(err));
        log(err);
        process.exitCode = 1;
        return;
      }
      if (code !== data.toString()) {
        log(chalk.red(`'${filePath}' is not updated.`));
        log(`'${filePath}' is not updated.`);
        process.exitCode = 1;
      }
    });
+1 −2
Original line number Diff line number Diff line
const chalk = require('chalk');
const log = require('./log');
const babel = require('@babel/core');

@@ -20,7 +19,7 @@ module.exports = (filePath, callback) => {
    },
    (err, result) => {
      if (err) {
        log(chalk.red(err));
        log(err);
        process.exitCode = 1;
      }
      else {