Browse Source

Neat loading animation for looking on GitHub

master
Leo Lamprecht 8 years ago
parent
commit
b9f9e71b9f
No known key found for this signature in database GPG Key ID: B08517883D5E0E10
  1. 17
      bin/now-deploy.js

17
bin/now-deploy.js

@ -210,8 +210,23 @@ async function sync(token) {
let repo
if (isRepoPath(rawPath)) {
console.log('> Didn\'t find directory. Searching on GitHub...')
process.stdout.write('> Didn\'t find directory. Searching on GitHub')
let dotCount = 0
const dots = setInterval(() => {
dotCount++
process.stdout.write('.')
if (dotCount === 20) {
clearInterval(dots)
}
}, 500)
repo = await onGitHub(rawPath, debug)
clearInterval(dots)
process.stdout.write('\n')
}
if (repo) {

Loading…
Cancel
Save