Permalink
Browse files

debug

  • Loading branch information...
Kikobeats committed May 22, 2018
1 parent 677d829 commit 850299e2c177a0ddce2726c8c7f43ef9e941cc1a
Showing with 6 additions and 2 deletions.
  1. +4 −1 bin/cli/create-build.js
  2. +2 −1 bin/cli/index.js
@@ -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)
}
@@ -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()
@@ -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 })

0 comments on commit 850299e

Please sign in to comment.