Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TypeScript Compiler

angelozerr edited this pageMay 19, 2016 ·8 revisions

TypeScript Compiler

TypeScript IDE provides 2 means to compile ts files :

With a Launch

If you selecttsconfig.json, you can doRun As -> Compile TypeScript to executetsc with the given TypeScript project to compile ts files:

LaunchCompileRunAs

If you wish to usewatch mode withtsc, you can add watch property in the tsconfig.json:

LaunchCompileRunAs

Please note thatwatch mode doesn't work if you add new ts file. You need to stop the process and restart it.

On save

If your project is aTypeScript project, you must enableCompile on save? from the project propertiesTypeScript/Compiler:

Add TypeScript Builder

This action adds theTypeScript Builder to your project:

CompileOnSave TypeScript Builder

After that you need to activateProject / Build Automatically:

Build Automatically

to executeTypeScript Builder when any ts files are saved.

Compile on save

Compile on save means compile ts file which is saved.

Here a demo with compile on save:

CompilationOnSave Demo

Build on save

Build on save means compile the whole ts file of tsconfig.json when a ts file (which belongs to tsconfig.json) is saved. Pay attention, it can be slow, but if you use "outFile" inside your tsconfig.json, it can be helpful.

Here a demo with build on save:

BuildOnSave Demo

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp