-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTypeScript.sublime-settings
70 lines (61 loc) · 2.06 KB
/
TypeScript.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
/*
The directories you would like to include in $PATH environment variable.
Use this if your node installation is at a seperate location and getting errors such as `cannot find node executable`
example:
"envPATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
*/
"envPATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
/*
The directory containing your tsc binary. Usually
/usr/local/bin or /usr/bin.
*/
"binDir": "/usr/bin",
/*
Enable or disable refresh the compiled Output on Save.
Only available for watch mode.
*/
"watchOnSave": true,
/*
Enable Compiling on save. It will compile into the same folder.
*/
"compileOnSave": true,
/*
## Enable compiling to a specific directory.
#### Description
if it is a string like 'some/directory' then `-o some/directory` will be added to `tsc` compiler.
if it is false or not string then it will compile your `script.tsc` to the directory it is in.
#### Example:
Directory is relative to the file you are editing if specified such as
compileDir": "out"
Directory is absolute if specified such as
compileDir": "/home/logan/Desktop/out"
*/
"compileDir": false,
/*
## Enable compiling to a specific relative directories.
#### Example:
Set absolute path for compile dir:
"compileDir": "/home/user/projects/js"
And specified folders
"relativeDir": "/home/user/projects/tsc"
"compilePaths":
{
"/home/user/projects/tsc": "/home/user/projects/first/js",
"/home/user/projects/second/tsc": "../js",
}
So
"/home/user/projects/tsc/app.tsc" will compile to "/home/user/projects/first/js/app.js"
"/home/user/projects/tsc/models/prod.tsc" will compile to "/home/user/projects/first/js/models/prod.js"
"/home/user/projects/tsc/second/tsc/app2.tsc" will compile to "/home/user/projects/second/js/app2.js"
"/home/user/projects/main.tsc" will compile to "/home/user/projects/js/main.js"
*/
"compilePaths": false,
/* COMPILE OPTIONS */
/*
## Enable source maps support
*/
"sourceMaps":false,
"target" : "ES3",
"noImplicitAny" : false
}