Skip to content

Instantly share code, notes, and snippets.

@esimov
Last active October 5, 2017 11:13
Show Gist options
  • Save esimov/4214242 to your computer and use it in GitHub Desktop.
Save esimov/4214242 to your computer and use it in GitHub Desktop.
Sublime Build System for TypeScript
//for Windows
{
"cmd": ["tsc","$file"],
"file_regex": "(.*\\.ts?)\\s\\(([0-9]+)\\,([0-9]+)\\)\\:\\s(...*?)$",
"selector": "source.ts",
"windows": {
"cmd": ["tsc.cmd", "$file"]
}
}
// for Mac OS-X
{
"cmd": ["tsc","$file"],
"file_regex": "(.*\\.ts?)\\s\\(([0-9]+)\\,([0-9]+)\\)\\:\\s(...*?)$",
"selector": "source.ts",
"osx": {
"path": "/usr/local/bin:/opt/local/bin"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment