Browse Source
Neat loading animation for looking on GitHub
master
Leo Lamprecht
8 years ago
No known key found for this signature in database
GPG Key ID: B08517883D5E0E10
1 changed files with
16 additions and
1 deletions
-
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) { |
|
|
|