Navigation Menu

Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed May 22, 2018
1 parent 677d829 commit 850299e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion bin/cli/create-build.js
Expand Up @@ -22,4 +22,7 @@ const noopBuild = {
error: () => {}
}

module.exports = () => (!token ? noopBuild : new Build(meta))
module.exports = () => {
console.log('token loaded?', !!token)
return !token ? noopBuild : new Build(meta)
}
3 changes: 2 additions & 1 deletion bin/cli/index.js
Expand Up @@ -79,6 +79,7 @@ if (isEmpty(cli.input)) {
const build = createBuild()

onExit(async (code, signal) => {
console.log('exiting with code', code)
if (code === 0) await build.pass()
if (code === 1) await build.fail()
await build.error()
Expand All @@ -88,7 +89,7 @@ if (isEmpty(cli.input)) {
whitelist: cli.flags.whitelist && concat(cli.flags.whitelist)
})

build.start()
await build.start()
const urls = await extractUrls(url, opts)
const emitter = await urlint(urls, opts)
view({ total: size(urls), emitter, ...opts })
Expand Down

0 comments on commit 850299e

Please sign in to comment.