Skip to content

Commit 91d5982

Browse files
Fatme HavaluovaFatme Havaluova
authored andcommitted
Support for Visual studio code
1 parent da39bfd commit 91d5982

File tree

4 files changed

+243
-0
lines changed

4 files changed

+243
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ logs
2626
results
2727
scratch/
2828
.idea/
29+
.settings/
2930
test-reports.xml
3031

3132
npm-debug.log

.settings/launch.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"version": "0.1.0",
3+
// List of configurations. Add new configurations or edit existing ones.
4+
// ONLY "node" and "mono" are supported, change "type" to switch.
5+
"configurations": [
6+
{
7+
// Name of configuration; appears in the launch configuration drop down menu.
8+
"name": "build",
9+
// Type of configuration. Possible values: "node", "mono".
10+
"type": "node",
11+
// Workspace relative or absolute path to the program.
12+
"program": "bin/nativescript.js",
13+
// Automatically stop program after launch.
14+
"stopOnEntry": true,
15+
// Command line arguments passed to the program.
16+
"args": [],
17+
// Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.
18+
"cwd": ".",
19+
"isShellCommand": true,
20+
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
21+
"runtimeExecutable": null,
22+
// Environment variables passed to the program.
23+
"env": { }
24+
},
25+
{
26+
"name": "Attach",
27+
"type": "node",
28+
// TCP/IP address. Default is "localhost".
29+
"address": "localhost",
30+
// Port to attach to.
31+
"port": 5858
32+
}
33+
]
34+
}

.settings/tasks.json

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
// Available variables which can be used inside of strings.
2+
// ${workspaceRoot}: the root folder of the team
3+
// ${file}: the current opened file
4+
// ${fileBasename}: the current opened file's basename
5+
// ${fileDirname}: the current opened file's dirname
6+
// ${fileExtname}: the current opened file's extension
7+
// ${cwd}: the current working directory of the spawned process
8+
9+
// A task runner that calls the Typescipt compiler (tsc) and
10+
// Compiles a HelloWorld.ts program
11+
{
12+
"version": "0.1.0",
13+
14+
// The command is tsc.
15+
"command": "grunt",
16+
17+
// Show the output window only if unrecognized errors occur.
18+
"showOutput": "silent",
19+
20+
// Under windows use tsc.exe. This ensures we don't need a shell.
21+
"windows": {
22+
"command": "tsc.exe"
23+
},
24+
25+
"isShellCommand": true,
26+
27+
// args is the HelloWorld program to compile.
28+
"args": ["ts:devall"],
29+
30+
// use the standard tsc problem matcher to find compile problems
31+
// in the output.
32+
"problemMatcher": "$tsc"
33+
}
34+
35+
// A task runner configuration for gulp. Gulp provides a less task
36+
// which compiles less to css.
37+
/*
38+
{
39+
"version": "0.1.0",
40+
"command": "gulp",
41+
"isShellCommand": true,
42+
"tasks": [
43+
{
44+
"taskName": "less",
45+
// Make this the default build command.
46+
"isBuildCommand": true,
47+
// Show the output window only if unrecognized errors occur.
48+
"showOutput": "silent",
49+
// Use the standard less compilation problem matcher.
50+
"problemMatcher": "$lessCompile"
51+
}
52+
]
53+
}
54+
*/
55+
56+
// Uncomment the following section to use gulp in a watching mode that compiles a
57+
// less file. The gulp task prints "[hh:mm:ss] Starting 'clean-styles'" to the console
58+
// when existing css files get deleted and "[hh:mm:ss] Finished 'styles'" when the
59+
// overall less compilation has finished. When the clean pattern is detect internal less
60+
// problems are cleaned. When the finshed pattern is detected in the output less
61+
// problems are published.
62+
/*
63+
{
64+
"version": "0.1.0",
65+
"command": "gulp",
66+
"isShellCommand": true,
67+
"tasks": [
68+
{
69+
"taskName": "watch-less",
70+
// Make this the default build command.
71+
"isBuildCommand": true,
72+
// Show the output window only if unrecognized errors occur.
73+
"showOutput": "silent",
74+
// Task is running in watching mode.
75+
"isWatching": true,
76+
"problemMatcher": {
77+
// Use the standard less compilation problem matcher as the base.
78+
"base": "$lessCompile",
79+
// A regular expression signalling that a watched task begins executing (usually triggered through file watching).
80+
"watchedTaskBeginsRegExp": "^\\[\\d+:\\d+:\\d+\\] Starting 'clean-styles'\\.\\.\\.$",
81+
// A regular expression signalling that a watched tasks ends executing.
82+
"watchedTaskEndsRegExp": "^\\[\\d+:\\d+:\\d+\\] Finished 'styles' after \\d+"
83+
}
84+
}
85+
]
86+
}
87+
*/
88+
89+
// Uncomment the following section to use jake to build a workspace
90+
// cloned from https://github.com/Microsoft/TypeScript.git
91+
/*
92+
{
93+
"version": "0.1.0",
94+
// Task runner is jake
95+
"command": "jake",
96+
// Need to be executed in shell / cmd
97+
"isShellCommand": true,
98+
"showOutput": "silent",
99+
"tasks": [
100+
{
101+
// TS build command is local.
102+
"taskName": "local",
103+
// Make this the default build command.
104+
"isBuildCommand": true,
105+
// Show the output window only if unrecognized errors occur.
106+
"showOutput": "silent",
107+
// Use the redefined Typescript output problem matcher.
108+
"problemMatcher": [
109+
"$tsc"
110+
]
111+
}
112+
]
113+
}
114+
*/
115+
116+
// Uncomment the section below to use msbuild and generate problems
117+
// for csc, cpp, tsc and vb. The configuration assumes that msbuild
118+
// is available on the path and a solution file exists in the
119+
// workspace folder root.
120+
/*
121+
{
122+
"version": "0.1.0",
123+
"command": "msbuild",
124+
"args": [
125+
// Ask msbuild to generate full paths for file names.
126+
"/property:GenerateFullPaths=true"
127+
],
128+
"taskSelector": "/t:",
129+
"showOutput": "silent",
130+
"tasks": [
131+
{
132+
"taskName": "build",
133+
// Show the output window only if unrecognized errors occur.
134+
"showOutput": "silent",
135+
// Use the standard MS compiler pattern to detect errors, warnings
136+
// and infos in the output.
137+
"problemMatcher": "$msCompile"
138+
}
139+
]
140+
}
141+
*/
142+
143+
// Uncomment the following section to use msbuild which compiles Typescript
144+
// and less files.
145+
/*
146+
{
147+
"version": "0.1.0",
148+
"command": "msbuild",
149+
"args": [
150+
// Ask msbuild to generate full paths for file names.
151+
"/property:GenerateFullPaths=true"
152+
],
153+
"taskSelector": "/t:",
154+
"showOutput": "silent",
155+
"tasks": [
156+
{
157+
"taskName": "build",
158+
// Show the output window only if unrecognized errors occur.
159+
"showOutput": "silent",
160+
// Use the standard MS compiler pattern to detect errors, warnings
161+
// and infos in the output.
162+
"problemMatcher": [
163+
"$msCompile",
164+
"$lessCompile"
165+
]
166+
}
167+
]
168+
}
169+
*/
170+
// A task runner example that defines a problemMatcher inline instead of using
171+
// a predfined one.
172+
/*
173+
{
174+
"version": "0.1.0",
175+
"command": "tsc.exe",
176+
"args": ["HelloWorld.ts"],
177+
"showOutput": "silent",
178+
"problemMatcher": {
179+
// The problem is owned by the typescript language service. Ensure that the problems
180+
// are merged with problems produced by Visual Studio's language service.
181+
"owner": "typescript",
182+
// The file name for reported problems is relative to the current working directory.
183+
"fileLocation": ["relative", "${cwd}"],
184+
// The actual pattern to match problems in the output.
185+
"pattern": {
186+
// The regular expression. Matches HelloWorld.ts(2,10): error TS2339: Property 'logg' does not exist on type 'Console'.
187+
"regexp": "^([^\\s].*)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\):\\s+(error|warning|info)\\s+(TS\\d+)\\s*:\\s*(.*)$",
188+
// The match group that denotes the file containing the problem.
189+
"file": 1,
190+
// The match group that denotes the problem location.
191+
"location": 2,
192+
// The match group that denotes the problem's severity. Can be omitted.
193+
"severity": 3,
194+
// The match group that denotes the problem code. Can be omitted.
195+
"code": 4,
196+
// The match group that denotes the problem's message.
197+
"message": 5
198+
}
199+
}
200+
}
201+
*/

tsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES5",
4+
"module": "commonjs",
5+
"sourceMap": true
6+
}
7+
}

0 commit comments

Comments
 (0)