cjwilburn / dank-memes

A CLI meme generator.
15 stars 14 forks source link

Exit process without waiting for browser to close #40

Closed colekettler closed 6 years ago

colekettler commented 6 years ago

Description

The index.js, make-meme.js, ron-swanson.js, and roulette.js scripts were returning a promise from opn, which will not resolve until the browser is exited completely. In order to preserve our precious precious tabs and free up our super sweet terminals, the process is now exited right after the meme is generated. 👋

This matches the behavior in dankest-dungeon.js, reddit.js, and yo-dawg.js. 👌

Steps to Test

  1. Run node index.js.
  2. Proceed through prompt (answering yes, selecting options, etc.)
  3. View meme.
  4. Confirm that CLI process has exited even if browser is still open.
  5. Repeat 1 through 4 with make-meme.js, ron-swanson.js, and roulette.js.

Screenshots

N/A

Deploy Notes

N/A

Checklist