Skip to content

Commit 4fba8ae

Browse files
committed
Added bundles to the build process.
1 parent f0b3506 commit 4fba8ae

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ gulp.task('clean', function (cb) {
1313
});
1414

1515
gulp.task('typescript', function() {
16-
tsProject.src('./src').pipe(gulp.dest('./dist'));
16+
tsProject.src('./src', { logLevel: 0 }).pipe(gulp.dest('./dist'));
1717
});
1818

1919
gulp.task('scripts', ['typescript'], function() {

src/tsconfig.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"compilerOptions": {
33
"declaration": true,
4-
"module": "amd",
5-
"out": "../../dist/exceptionless.js",
4+
"module": "commonjs",
65
"removeComments": true,
76
"sourceMap": true,
87
"target": "es5"
@@ -46,5 +45,19 @@
4645
"EventBuilder.ts",
4746
"ExceptionlessClient.ts",
4847
"Utils.ts"
49-
]
48+
],
49+
"bundles": {
50+
"exceptionless.es5": {
51+
"source": "ExceptionlessClient.ts",
52+
"options": {
53+
"target": "es5"
54+
}
55+
},
56+
"exceptionless.es6": {
57+
"source": "ExceptionlessClient.ts",
58+
"options": {
59+
"target": "es6"
60+
}
61+
}
62+
}
5063
}

0 commit comments

Comments
 (0)