Skip to content

Commit 5b7b429

Browse files
authored
Merge pull request #14601 from guardian/ravi/remove-chalk
Remove chalk dependency
2 parents b243dc5 + 97d0a4c commit 5b7b429

File tree

4 files changed

+102
-60
lines changed

4 files changed

+102
-60
lines changed

dotcom-rendering/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"@guardian/eslint-config-typescript": "9.0.1",
3939
"@guardian/identity-auth": "6.0.1",
4040
"@guardian/identity-auth-frontend": "8.1.0",
41-
"@guardian/ophan-tracker-js": "2.6.1",
4241
"@guardian/libs": "26.0.0",
42+
"@guardian/ophan-tracker-js": "2.6.1",
4343
"@guardian/react-crossword": "6.3.0",
4444
"@guardian/shimport": "1.0.2",
4545
"@guardian/source": "11.3.0",
@@ -105,7 +105,6 @@
105105
"body-parser": "1.20.3",
106106
"browserslist": "4.24.4",
107107
"buffer": "6.0.3",
108-
"chalk": "4.1.2",
109108
"clean-css": "5.3.3",
110109
"compare-versions": "6.1.0",
111110
"compression": "1.7.4",

dotcom-rendering/webpack/webpack.config.dev-server.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
// @ts-check
22
const path = require('node:path');
33
const bodyParser = require('body-parser');
4-
const chalk = require('chalk');
54
const webpackHotServerMiddleware = require('webpack-hot-server-middleware');
5+
const { dim, reset, blue, underline } = require('../../scripts/log');
66

77
const port = 3030;
88

99
console.log(
10-
`${chalk.dim('DEV server running on')} ${chalk.blue.underline(
11-
`http://localhost:${port}`,
12-
)}`,
10+
`${dim}DEV server running on${reset} ${blue}${underline}http://localhost:${port}${reset}`,
1311
);
1412

1513
module.exports = {

0 commit comments

Comments
 (0)