-
Notifications
You must be signed in to change notification settings - Fork 0
/
notify.js
38 lines (37 loc) · 869 Bytes
/
notify.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const chalk = require('chalk');
module.exports.notify = {
noOfLabels: (labelKeys) => {
console.log(
chalk.white(
`🌍 There are ${chalk.bold(labelKeys.length)} labels in your project.`
)
);
},
extensions: (ext) => {
console.log(
chalk.white(
`⚡️ Reading files with the following extensions - ${chalk.bold(ext)}`
)
);
},
filesFound: (files) => {
console.log(
chalk.white(
`🔍 ${chalk.bold(
files.length
)} files found. Let's try to save some money!`
)
);
},
unusedLabels: (unusedLabels) => {
console.log(
chalk.white(
`💥 Seems like you have ${chalk.bold(
unusedLabels.length
)} unused labels in your project. Storing them in ${chalk.bold(
'./unused-labels.json'
)}`
)
);
},
};