1 | "use strict";
|
2 |
|
3 | const boxen = require(`boxen`);
|
4 |
|
5 | const defaultConfig = {
|
6 | padding: 1,
|
7 | borderColor: `blue`,
|
8 | borderStyle: `double`
|
9 | };
|
10 | const defaultMessage = `Gatsby has started collecting anonymous usage analytics\n` + `to help improve Gatsby for all users.\n` + `\n` + `If you'd like to opt-out, you can use \`gatsby telemetry --disable\`\n` + `To learn more, checkout https://gatsby.dev/telemetry`;
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | const showAnalyticsNotification = (config = defaultConfig, message = defaultMessage) => {
|
18 | console.log(boxen(message, config));
|
19 | };
|
20 |
|
21 | module.exports = showAnalyticsNotification; |
\ | No newline at end of file |