TypeScript ExtJS Emitter
A fork of Typescript 1.0.3 that emits classes in a way that ExtJS understands.
#####There is a new project with TypeScript 1.4 support: https://github.com/fabioparra/TypeScript
Ext.define(CLASSNAME, MEMBERS); but Typescript emits code based around prototypes.
##ExtJS API Type Declarations
To get the most use out of this compiler you will also need some type declarations (*.d.ts files) for the ExtJS API. There is a companion project to provide these: https://github.com/Dretch/typescript-declarations-for-ext
This project is compatible with Typescript 1.0.3 and ExtJS 4 and 5. The emitted classes can be processed by Sencha CMD.
##Usage with Visual Studio
####Update tsc.js and lib.d.ts files (eg: visual studio build task)
visual studio folder C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0
####Update typescriptServices.js and lib.d.ts files (eg: visual studio plugin)
visual studio folder (vary by version) C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TypeScript
##Usage with IntelliJ IDEA
IntelliJ IDEA 14 (Ultimate Edition only) has Typescript support. The ExtJS emitter can be used instead of the regular compiler.
Follow the instructions for setting up regular Typescript support (https://www.jetbrains.com/idea/help/typescript-support.html) but ensure that you do the following:
Install the regular Typescript transpiler, version 1.0.1 (i.e.
npm install email@example.com), at the project level rather than globally, and don't add it to the
PATHvariable. This means you can still use the regular Typescript emitter for other projects.
Edit the file watcher that IntelliJ creates for Typescript so that it uses the project
node_modules/typescript/bin/tsc) rather than the global one.
Replace these files inside the project's Typescript installation (
obs: Changes made only in TypeScript.Emitter class