Skip to content

Commit

Permalink
Replaces colors with chalk.
Browse files Browse the repository at this point in the history
Turns out that a couple of dependencies were already using chalk themselves, so removing colors will actually slim the development install down a bit.
  • Loading branch information
philnash committed Jan 27, 2022
1 parent 0979e0d commit c11fc01
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 26 deletions.
29 changes: 7 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"devDependencies": {
"chai": "^4.3.4",
"colors": "^1.4.0",
"chalk": "^4.1.2",
"mocha": "^8.3.2"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions test/setup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const colors = require("colors/safe");
const chalk = require("chalk");
const env = process.env;

// travis master branch sets NGROK_FORCE_TOKENS=true and forces tokens to be present
Expand All @@ -12,7 +12,7 @@ if (

if (!env.NGROK_AUTHTOKEN_FREE)
console.log(
colors.yellow(
chalk.yellow(
`Warning: No process.env.NGROK_AUTHTOKEN_FREE found, falling back to shared authtoken.
Tests may blink if people use it simulatenously.
For stable test suite, signup at ngrok.com (free) and put your token here.`
Expand All @@ -21,7 +21,7 @@ For stable test suite, signup at ngrok.com (free) and put your token here.`

if (!env.NGROK_AUTHTOKEN_PAID)
console.log(
colors.magenta(
chalk.magenta(
"Warning: no process.env.NGROK_AUTHTOKEN_PAID found, skipping related specs"
)
);
Expand Down

0 comments on commit c11fc01

Please sign in to comment.