Skip to content

Commit 05efca3

Browse files
committed
Merge pull request #38 from exceptionless/feature/betterBuild
Feature/Stringify
2 parents 319f7a0 + 80def85 commit 05efca3

26 files changed

+395
-218
lines changed

.vscode/launch.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"version": "0.1.0",
3+
"configurations": [
4+
{
5+
"name": "Test",
6+
"request": "launch",
7+
"type": "node",
8+
"program": "node_modules/.bin/_mocha",
9+
"args": [
10+
"dist/temp/exceptionless-spec.js"
11+
],
12+
"runtimeArgs": [
13+
"--nolazy"
14+
],
15+
"sourceMaps": true,
16+
"outDir": "dist"
17+
},
18+
{
19+
"name": "Attach",
20+
"request": "attach",
21+
"type": "node",
22+
"port": 5858,
23+
"sourceMaps": true,
24+
"outDir": "dist"
25+
}
26+
]
27+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"files.insertFinalNewline": true
4+
}

.vscode/tasks.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"version": "0.1.0",
3+
"command": "gulp",
4+
"isShellCommand": true,
5+
"args": [
6+
"--no-color"
7+
],
8+
"tasks": [
9+
{
10+
"taskName": "build",
11+
"args": [],
12+
"isBuildCommand": true,
13+
"problemMatcher": {
14+
// The problem is owned by the cpp language service.
15+
"owner": "typescript",
16+
// The file name for reported problems is relative to the opened folder.
17+
"fileLocation": [
18+
"relative",
19+
"${workspaceRoot}/src"
20+
],
21+
// The actual pattern to match problems in the output.
22+
"pattern": {
23+
// The regular expression. Example to match: helloWorld.c:5:3: warning: implicit declaration of function ‘prinft’ [-Wimplicit-function-declaration]
24+
"regexp": "\\[\\d\\d:\\d\\d:\\d\\d\\] \\[gulp-tslint\\] error \\([^)]+\\) ([^\\[]+)\\[(\\d+), (\\d+)\\]: (.+)$",
25+
// The first match group matches the file name which is relative.
26+
"file": 1,
27+
// The second match group matches the line on which the problem occurred.
28+
"line": 2,
29+
// The third match group matches the column at which the problem occurred.
30+
"column": 3,
31+
// The fifth match group matches the message.
32+
"message": 4
33+
}
34+
}
35+
},
36+
{
37+
"taskName": "test",
38+
"args": [],
39+
"isBuildCommand": true,
40+
"problemMatcher": {
41+
// The problem is owned by the cpp language service.
42+
"owner": "typescript",
43+
// The file name for reported problems is relative to the opened folder.
44+
"fileLocation": [
45+
"relative",
46+
"${workspaceRoot}/src"
47+
],
48+
// The actual pattern to match problems in the output.
49+
"pattern": {
50+
// The regular expression. Example to match: helloWorld.c:5:3: warning: implicit declaration of function ‘prinft’ [-Wimplicit-function-declaration]
51+
"regexp": "\\[\\d\\d:\\d\\d:\\d\\d\\] \\[gulp-tslint\\] error \\([^)]+\\) ([^\\[]+)\\[(\\d+), (\\d+)\\]: (.+)$",
52+
// The first match group matches the file name which is relative.
53+
"file": 1,
54+
// The second match group matches the line on which the problem occurred.
55+
"line": 2,
56+
// The third match group matches the column at which the problem occurred.
57+
"column": 3,
58+
// The fifth match group matches the message.
59+
"message": 4
60+
}
61+
}
62+
}
63+
]
64+
}

dist/exceptionless.js

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.node.js

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.node.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,14 @@ gulp.task('exceptionless.test.umd', ['typescript.test'], function () {
116116
});
117117

118118
gulp.task('test', ['exceptionless.test.umd'], function(done) {
119-
var Server = require('karma').Server;
120-
new Server({
121-
configFile: __dirname + '/karma.conf.js'
122-
}, done).start();
119+
var mocha = require('gulp-mocha');
120+
return gulp.src('dist/temp/exceptionless-spec.js', { read: false })
121+
.pipe(mocha({
122+
require: ['source-map-support/register']
123+
}))
124+
.once('end', function () {
125+
process.exit();
126+
});
123127
});
124128

125129
gulp.task('format', function () {

0 commit comments

Comments
 (0)