Memo for myself someday.
http://www.typescriptlang.org/Tutorial/
- Thinkpad X201s
- Ubuntu 12.04.1 LTS
-
Install npm
$ sudo add-apt-repository ppa:chris-lea/node.js $ sudo apt-get install npm $ sudo npm install -g typescript
nodejs was installed automatically, because npm depends on nodejs. nodejs package is too old on Ubuntu 12.04 repository.
note: http://y-anz-m.blogspot.jp/2012/11/ubuntu-typescript.html
-
Syntax highlight TypeScript on Sublime Text 2
-
Download zipped syntax file for ST2 from following url.
-
Open packages directory of ST2.
Preferences -> Browse Packages...
on ST2 window menu. -
Unzip and copy to packages directory of ST2.
Packages --- other plugins dirs |-- ... `-- TypeScript `-- typescript.tmLanguage
-
Command Set syntax
Press
Ctrl + Shift + p
thenSet syntax: TypeScript
note: http://y-anz-m.blogspot.jp/2012/11/sublime-text-2-typescript-syntax.html
-
-
Code completion on ST2
Stub
$ npm install -p tsc_completion $ cp SublimeTextTypeScriptCompletionPlugin ~/.config/sublime-text-2/Packages/
note: http://y-anz-m.blogspot.jp/2012/11/sublime-text-2-typescript_29.html
-
Build .ts files on ST2
Stub