TypeScript Compiler
TypeScript compiler package for Sublime Text 2. You can compile fragment or whole .ts file into a new plain JavaScipt. Developed for JavaScript prototyping in mind.
Details
Installs
- Total 7K
- Win 4K
- Mac 2K
- Linux 671
Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text 2 plugin: TypeScript Compiler
TypeScript compiler integrated into Sublime Text 2. You can compile fragment or whole .ts file into a new plain JavaScript.
Developed for JavaScript prototyping in mind.
Usage
You can select a fragment of TypeScript source code (it must be language consistent) or, without any selection, take the whole file. Next, call the compiler shortcut:
- Windows: CTRL+ALT+Y
- OSX: CMD+ALT+Y
- Linux: CTRL+ALT+Y
A new file will be created in JavaScript plain format.
Installation
Install this repository via Package Control
Configuration
The package uses Node.js and TypeScript Compiler. They must be installed before running the compiler.
Default configuration, you can find in the Sublime preference menu (Preferences/Package Settings/TypeScript Compiler), is the following:
node_path: "/usr/local/bin/node"
typescript_path:"/usr/local/share/npm/bin/tsc"
You can change it in according to your operating system.
Typical exemple for windows users:
{
"node_path" : "C:\\Program Files\\nodejs\\node.exe",
"typescript_path" : "C:\\Users\\User_Name\\AppData\\Roaming\\npm\\node_modules\\typescript\\bin\\tsc"
}