Skip to content

Instantly share code, notes, and snippets.

@enesusta
Created December 11, 2019 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enesusta/1e3615ae19a55517b3fb3f5e8afd4a91 to your computer and use it in GitHub Desktop.
Save enesusta/1e3615ae19a55517b3fb3f5e8afd4a91 to your computer and use it in GitHub Desktop.
Typescript Easy Executor
#!/bin/bash
run() {
tsc $1 --target es2015 && node $2
}
file=$(ls -1v *.js | tail -1)
filets=$(ls -1v *.ts | tail -1)
run $filets $file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment