Created
October 4, 2016 02:08
-
-
Save pawelgalazka/d81b3ec169c97e9e7fc938d0d49bd2ec to your computer and use it in GitHub Desktop.
runjs tricks example (medium article)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { run } from 'runjs' | |
export function clean () { | |
} | |
export function build () { | |
process.on('SIGINT', clean) | |
try { | |
} catch (e) { | |
throw e.stack | |
} finally { | |
clean() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment