Skip to content

Commit

Permalink
🔨 Re-add login check
Browse files Browse the repository at this point in the history
  • Loading branch information
kiliman committed Apr 10, 2020
1 parent 5ab965d commit 618de6e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,15 @@ const login = async () => {
try {
ensureDirExists(output)

await login()
const library = {}
console.log('Logging into tailwindui.com...')
const success = await login()
if (!success) {
console.log('Invalid credentials')
return 1
}
console.log('Success!')

const library = {}
const $ = await downloadPage('/components')
const links = $('.grid a')
const count = 1 //links.length
Expand Down

0 comments on commit 618de6e

Please sign in to comment.