Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit 82af8d2

Browse files
author
sw-yx
committed
merge
1 parent c1cae13 commit 82af8d2

File tree

3 files changed

+143
-4
lines changed

3 files changed

+143
-4
lines changed

package-lock.json

Lines changed: 136 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"@oclif/command": "^1",
1212
"@oclif/config": "^1",
1313
"ascii-table": "0.0.9",
14+
"boxen": "^3.0.0",
1415
"copy-template-dir": "^1.4.0",
1516
"execa": "^1.0.0",
1617
"fs-extra": "^7.0.1",

src/commands/dev/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const openBrowser = require('../../utils/openBrowser')
1010
const Command = require('@netlify/cli-utils')
1111
const { getAddons } = require('netlify/src/addons')
1212
const { track } = require('@netlify/cli-utils/src/utils/telemetry')
13+
const chalk = require('chalk')
14+
const boxen = require('boxen')
1315

1416
function isFunction(settings, req) {
1517
return settings.functionsPort && req.url.match(/^\/.netlify\/functions\/.+/)
@@ -150,11 +152,14 @@ class DevCommand extends Command {
150152
}
151153

152154
const url = await startProxy(settings, addonUrls)
153-
this.log(`Netlify dev server is now ready on ${url}`)
154155
// Todo hoist this telemetry `command` to CLI hook
155156
track('command', {
156157
command: 'dev'
157158
})
159+
160+
const banner = chalk.bold(`Netlify dev server is now ready on ${url}`)
161+
this.log(boxen(banner, { padding: 1, margin: 1, align: 'center', borderColor: '#00c7b7' }))
162+
158163
openBrowser(url)
159164
}
160165
}

0 commit comments

Comments
 (0)