How can I get the Typescript compiler to output the compiled js to a different directory?

I'm fairly new to TypeScript, and right now I have .ts files in several places throughought my project structure: app/ |-scripts/ |-app.ts | |-classes/ | |-classA.ts | |-cla...