Compiling TypeScript applications
INFO
This documentation is for FAKE.exe before version 5 (or the non-netcore version). The documentation needs te be updated, please help!
FAKE can be used to build a variety of different application types. In this tutorial we are looking at the TypeScript support.
Consider a greetings.ts file:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: |
|
Now create a build.fsx and run it via FAKE.exe:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: |
|
This small script will run all *.ts files through the TypeScript compiler and put them into the ./out/ folder. In this case we will find a greetings.js:
1: 2: 3: 4: 5: 6: 7: |
|
If you need more details please see the API docs for the TypeScript task.
namespace System